OSDN Git Service

ASoC: SOF: topology: Add support for DC Blocker
authorSebastiano Carlucci <scarlucci@google.com>
Wed, 15 Apr 2020 20:28:00 +0000 (15:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 15 Apr 2020 23:23:05 +0000 (00:23 +0100)
This commit adds the enumerations to support the dc blocker component
from SOF.

Signed-off-by: Sebastiano Carlucci <scarlucci@google.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Curtis Malainey <curtis@malainey.com>
Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200415202816.934-9-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 402e025..8f8d1cf 100644 (file)
@@ -37,6 +37,7 @@ enum sof_comp_type {
        SOF_COMP_SELECTOR,              /**< channel selector component */
        SOF_COMP_DEMUX,
        SOF_COMP_ASRC,          /**< Asynchronous sample rate converter */
+       SOF_COMP_DCBLOCK,
        /* 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 */
@@ -206,6 +207,7 @@ enum sof_ipc_process_type {
        SOF_PROCESS_CHAN_SELECTOR,      /**< Channel Selector */
        SOF_PROCESS_MUX,
        SOF_PROCESS_DEMUX,
+       SOF_PROCESS_DCBLOCK,
 };
 
 /* generic "effect", "codec" or proprietary processing component */
index 3386886..e988e6b 100644 (file)
@@ -430,6 +430,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},
+       {"DCBLOCK", SOF_PROCESS_DCBLOCK, SOF_COMP_DCBLOCK},
 };
 
 static enum sof_ipc_process_type find_process(const char *name)