diff options
author | Herve Codina <herve.codina@bootlin.com> | 2025-04-10 12:16:43 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-04-10 14:24:33 +0300 |
commit | 9aa33d5b4a53a1945dd2aee45c09282248d3c98b (patch) | |
tree | 45356ca7248da90f20a0b31b30363fe2218e2219 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 5fc7d2b5cab47f2ac712f689140b1fed978fb91c (diff) | |
download | linux-9aa33d5b4a53a1945dd2aee45c09282248d3c98b.tar.xz |
ASoC: fsl: fsl_qmc_audio: Reset audio data pointers on TRIGGER_START event
On SNDRV_PCM_TRIGGER_START event, audio data pointers are not reset.
This leads to wrong data buffer usage when multiple TRIGGER_START are
received and ends to incorrect buffer usage between the user-space and
the driver. Indeed, the driver can read data that are not already set by
the user-space or the user-space and the driver are writing and reading
the same area.
Fix that resetting data pointers on each SNDRV_PCM_TRIGGER_START events.
Fixes: 075c7125b11c ("ASoC: fsl: Add support for QMC audio")
Cc: stable@vger.kernel.org
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20250410091643.535627-1-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions