ASoC: tas2783A: add explicit port prepare handling
authorNiranjan H Y <niranjan.hy@ti.com>
Sat, 14 Feb 2026 10:47:10 +0000 (16:17 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 17 Feb 2026 13:17:04 +0000 (13:17 +0000)
commit0d68ad088e334088b031423e59886ae118c11202
tree108171ee46247998a0c4ce5bd40b158104e07bf9
parent82e3265487c018814b789e251fb8aee8e683674c
ASoC: tas2783A: add explicit port prepare handling

 TAS2783a required port prepare bits to be set during playback
even when it is using simplified CP_SM.

 Normally, SoundWire core handles prepare sequencing automatically
depending on the type of the device available. For simplified CP_SM
there is no need to set the prepare bits. However, due to a hardware
limitation in TAS2783A, the port must still be explicitly prepared and
de-prepared by the driver to ensure reliable playback.

 Add a custom .port_prep() callback to program DPN_PREPARECTRL during
PRE_PREP and PRE_DEPREP operations.

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Link: https://patch.msgid.link/20260214104710.632-1-niranjan.hy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2783-sdw.c