ASoC: SOF: topology: add support for mux/demux component
authorJaska Uimonen <jaska.uimonen@intel.com>
Mon, 3 Jun 2019 16:18:21 +0000 (11:18 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 17:00:06 +0000 (18:00 +0100)
Add enumerations to support mux/demux processing component.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof/topology.h
sound/soc/sof/topology.c

index 46b2a7e63167bb1a437f28f6df6f9eedc9ebd91a..4978999fd362c6210b95f4fad2353ab400da930a 100644 (file)
@@ -35,6 +35,7 @@ enum sof_comp_type {
        SOF_COMP_KEYWORD_DETECT,
        SOF_COMP_KPB,                   /* A key phrase buffer component */
        SOF_COMP_SELECTOR,              /**< channel selector component */
+       SOF_COMP_DEMUX,
        /* 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 */
@@ -175,6 +176,8 @@ enum sof_ipc_process_type {
        SOF_PROCESS_KEYWORD_DETECT,     /**< Keyword Detection */
        SOF_PROCESS_KPB,                /**< KeyPhrase Buffer Manager */
        SOF_PROCESS_CHAN_SELECTOR,      /**< Channel Selector */
+       SOF_PROCESS_MUX,
+       SOF_PROCESS_DEMUX,
 };
 
 /* generic "effect", "codec" or proprietary processing component */
index 745cb875863c107d3bac0afac07e250da78e821c..b969686f954f47727b92bc88f96c6ce0fcf27f47 100644 (file)
@@ -394,6 +394,8 @@ static const struct sof_process_types sof_process[] = {
        {"KEYWORD_DETECT", SOF_PROCESS_KEYWORD_DETECT, SOF_COMP_KEYWORD_DETECT},
        {"KPB", SOF_PROCESS_KPB, SOF_COMP_KPB},
        {"CHAN_SELECTOR", SOF_PROCESS_CHAN_SELECTOR, SOF_COMP_SELECTOR},
+       {"MUX", SOF_PROCESS_MUX, SOF_COMP_MUX},
+       {"DEMUX", SOF_PROCESS_DEMUX, SOF_COMP_DEMUX},
 };
 
 static enum sof_ipc_process_type find_process(const char *name)