ASoC: SOF: ipc4-topology: Save the DMA maximum burst size for PCMs
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 21 Mar 2024 13:07:59 +0000 (15:07 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 16:35:52 +0000 (16:35 +0000)
commit842bb8b62cc6f3546d61eb63115b32ebc6dd4a87
tree82fa2cbdf9dd7c154223d33d225c6492f906b84d
parentfb9f8125ed9d9b8e11f309a7dbfbe7b40de48fba
ASoC: SOF: ipc4-topology: Save the DMA maximum burst size for PCMs

When setting up the pcm widget, save the DSP buffer size (in ms) for
platform code to place a constraint on playback.

On playback the DMA will fill the buffer on start and if the period
size is smaller it will immediately overrun.

On capture the DMA will move data in 1ms bursts.

Cc: stable@vger.kernel.org # 6.8
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240321130814.4412-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c