]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: Add dsp_max_burst_size_in_ms member to snd_sof_pcm_stream
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 21 Mar 2024 13:07:58 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:17 +0000 (16:38 +0200)
commit035c6b9fd387d42c2b34d372b60ae17883a6cbc7
tree40c68ab5a5ba755657c568c56501f899f38b191c
parent5fd8e2359498043e0b5329a05f02d10a9eb91eb9
ASoC: SOF: Add dsp_max_burst_size_in_ms member to snd_sof_pcm_stream

commit fb9f8125ed9d9b8e11f309a7dbfbe7b40de48fba upstream.

The dsp_max_burst_size_in_ms can be used to save the length of the maximum
burst size in ms the host DMA will use.

Platform code can place constraint using this to avoid user space
requesting too small ALSA buffer which will result xruns.

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-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sof/sof-audio.h