]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:44 +0000 (02:02 +0100)
commitec3938c387efca9b78ec5792a29314d3fa4955ef
tree20763f50ff159a83904b9ebfcac44049bb3c3d2f
parent4c676662e1e359d27c3272a37d3c936719f489e0
soundwire: intel_ace2x: Send PDI stream number during prepare

commit c78f1e15e46ac82607eed593b22992fd08644d96 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/intel_ace2x.c