Skip to content

Commit b3c0031

Browse files
plbossartbroonie
authored andcommitted
ASoC: Intel: sof_ssp_amp: 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 36a71a0 commit b3c0031

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/soc/intel/boards/sof_ssp_amp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,12 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev,
258258
sof_rt1308_dai_link(&links[id]);
259259
} else if (sof_ssp_amp_quirk & SOF_CS35L41_SPEAKER_AMP_PRESENT) {
260260
cs35l41_set_dai_link(&links[id]);
261-
262-
/* feedback from amplifier */
263-
links[id].dpcm_capture = 1;
264261
}
265262
links[id].platforms = platform_component;
266263
links[id].num_platforms = ARRAY_SIZE(platform_component);
267264
links[id].dpcm_playback = 1;
265+
/* feedback from amplifier or firmware-generated echo reference */
266+
links[id].dpcm_capture = 1;
268267
links[id].no_pcm = 1;
269268
links[id].cpus = &cpus[id];
270269
links[id].num_cpus = 1;

0 commit comments

Comments
 (0)