Skip to content

Commit e0a5222

Browse files
plbossartbroonie
authored andcommitted
ASoC: Intel: sof_cs42l42: always set dpcm_capture for amplifiers
The amplifier may provide hardware support for I/V feedback, or alternatively the firmware may generate an echo reference attached to the SSP and dailink used for the amplifier. To avoid any issues with invalid/NULL substreams in the latter case, always unconditionally set dpcm_capture. Link: thesofproject#4083 Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Bard Liao <[email protected]> Signed-off-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 324f065 commit e0a5222

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/intel/boards/sof_cs42l42.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ static int create_spk_amp_dai_links(struct device *dev,
336336
links[*id].platforms = platform_component;
337337
links[*id].num_platforms = ARRAY_SIZE(platform_component);
338338
links[*id].dpcm_playback = 1;
339+
/* firmware-generated echo reference */
340+
links[*id].dpcm_capture = 1;
341+
339342
links[*id].no_pcm = 1;
340343
links[*id].cpus = &cpus[*id];
341344
links[*id].num_cpus = 1;

0 commit comments

Comments
 (0)