OSDN Git Service

ASoC: Intel: sof_rt5682: always set dpcm_capture for amplifiers
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 19 Jan 2023 16:34:56 +0000 (18:34 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jan 2023 16:54:08 +0000 (16:54 +0000)
commit324f065cdbaba1b879a63bf07e61ca156b789537
tree7571e74257011a7c7aa2a54787ef3f1ec95c6e9f
parentc1619ea22d9509cfbcf5c2c1cc65563179e9dc8e
ASoC: Intel: sof_rt5682: 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: https://github.com/thesofproject/linux/issues/4083
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20230119163459.2235843-2-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_rt5682.c