soundwire: intel_ace2x: Send PDI stream number during prepare
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 16 Oct 2024 03:29:09 +0000 (11:29 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 17 Oct 2024 11:11:19 +0000 (12:11 +0100)
commitc78f1e15e46ac82607eed593b22992fd08644d96
treefe6ebce96a3cb95ed2c73a7f2f5add9c34ecb26f
parent6e38a7e098d32d128b00b42a536151de9ea1340b
soundwire: intel_ace2x: Send PDI stream number during prepare

In the case of a prepare callback after an xrun or when the PCM is
restarted after a call to snd_pcm_drain/snd_pcm_drop, avoid
reprogramming the SHIM registers but send the PDI stream number so that
the link DMA data can be set. This is needed for the case that the DMA
data is cleared when the PCM is stopped and restarted without being
closed.

Link: https://github.com/thesofproject/sof/issues/9502
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
All: stable@vger.kernel.org # 6.10.x 6.11.x
Link: https://patch.msgid.link/20241016032910.14601-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/intel_ace2x.c