From 4dffe80591c9d56eee201eaf0573c7306fdbb1af Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Mon, 17 Aug 2020 18:48:39 +0300 Subject: [PATCH] MLK-24255-2 ASoC: SOF: Introduce POST_PROCESS component type POST_PROCESS component takes care of processing algorithms. For now, we intend to use this component for decoding/encoding library algorithms from Cadence. Current implementation assumes that we will still use ALSA PCM interface. The heavy part is done on firmware side with the help of topology files. Signed-off-by: Daniel Baluta --- include/sound/sof/topology.h | 3 +++ sound/soc/sof/topology.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/sound/sof/topology.h b/include/sound/sof/topology.h index 0f3aecad71d7..534c3e160e0d 100644 --- a/include/sound/sof/topology.h +++ b/include/sound/sof/topology.h @@ -38,6 +38,8 @@ enum sof_comp_type { SOF_COMP_DEMUX, SOF_COMP_ASRC, SOF_COMP_DCBLOCK, + SOF_COMP_PP, + /* keep FILEREAD/FILEWRITE as the last ones */ SOF_COMP_FILEREAD = 10000, /**< host test based file IO */ SOF_COMP_FILEWRITE = 10001, /**< host test based file IO */ @@ -181,6 +183,7 @@ enum sof_ipc_process_type { SOF_PROCESS_MUX, SOF_PROCESS_DEMUX, SOF_PROCESS_DCBLOCK, + SOF_PROCESS_PP, /** < Post process */ }; /* generic "effect", "codec" or proprietary processing component */ diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 5e86072e057a..bbe9069e8464 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -406,6 +406,7 @@ static const struct sof_process_types sof_process[] = { {"CHAN_SELECTOR", SOF_PROCESS_CHAN_SELECTOR, SOF_COMP_SELECTOR}, {"MUX", SOF_PROCESS_MUX, SOF_COMP_MUX}, {"DEMUX", SOF_PROCESS_DEMUX, SOF_COMP_DEMUX}, + {"POST_PROCESS", SOF_PROCESS_PP, SOF_COMP_PP}, }; static enum sof_ipc_process_type find_process(const char *name)