]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: SOF: ipc4-topology: Preserve the DMA Link ID for ChainDMA on unprepare
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 24 Jul 2024 08:19:32 +0000 (11:19 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jul 2024 10:29:13 +0000 (11:29 +0100)
commite6fc5fcaeffa04a3fa1db8dfccdfd4b6001c0446
tree85ef15418d06cbf8ed400c744a0e8d85267db371
parentae67ed9010a7b52933ad1038d13df8a3aae34b83
ASoC: SOF: ipc4-topology: Preserve the DMA Link ID for ChainDMA on unprepare

The DMA Link ID is set to the IPC message's primary during dai_config,
which is only during hw_params.
During xrun handling the hw_params is not called and the DMA Link ID
information will be lost.

All other fields in the message expected to be 0 for re-configuration, only
the DMA Link ID needs to be preserved and the in case of repeated
dai_config, it is correctly updated (masked and then set).

Cc: stable@vger.kernel.org
Fixes: ca5ce0caa67f ("ASoC: SOF: ipc4/intel: Add support for chained DMA")
Link: https://github.com/thesofproject/linux/issues/5116
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://patch.msgid.link/20240724081932.24542-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c