Skip to content

Commit 7357efe

Browse files
committed
ASoC: SOF: topology: add support to smart amplifier
Add smart amplifier component support, which is designed as another new type of process component and used for speaker protection algorithm integration. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
1 parent 8dc1789 commit 7357efe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/sound/sof/topology.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ enum sof_comp_type {
3838
SOF_COMP_DEMUX,
3939
SOF_COMP_ASRC, /**< Asynchronous sample rate converter */
4040
SOF_COMP_DCBLOCK,
41+
SOF_COMP_SMART_AMP, /**< smart amplifier component */
4142
/* keep FILEREAD/FILEWRITE as the last ones */
4243
SOF_COMP_FILEREAD = 10000, /**< host test based file IO */
4344
SOF_COMP_FILEWRITE = 10001, /**< host test based file IO */
@@ -220,6 +221,7 @@ enum sof_ipc_process_type {
220221
SOF_PROCESS_MUX,
221222
SOF_PROCESS_DEMUX,
222223
SOF_PROCESS_DCBLOCK,
224+
SOF_PROCESS_SMART_AMP, /**< Smart Amplifier */
223225
};
224226

225227
/* generic "effect", "codec" or proprietary processing component */

sound/soc/sof/topology.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ static const struct sof_process_types sof_process[] = {
431431
{"MUX", SOF_PROCESS_MUX, SOF_COMP_MUX},
432432
{"DEMUX", SOF_PROCESS_DEMUX, SOF_COMP_DEMUX},
433433
{"DCBLOCK", SOF_PROCESS_DCBLOCK, SOF_COMP_DCBLOCK},
434+
{"SMART_AMP", SOF_PROCESS_SMART_AMP, SOF_COMP_SMART_AMP},
434435
};
435436

436437
static enum sof_ipc_process_type find_process(const char *name)

0 commit comments

Comments
 (0)