aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorHerve Codina <[email protected]>2025-04-10 09:16:43 +0000
committerMark Brown <[email protected]>2025-04-10 11:24:33 +0000
commit9aa33d5b4a53a1945dd2aee45c09282248d3c98b (patch)
tree45356ca7248da90f20a0b31b30363fe2218e2219 /drivers/fpga/tests/fpga-bridge-test.c
parentASoC: cs42l43: Reset clamp override on jack removal (diff)
downloadkernel-9aa33d5b4a53a1945dd2aee45c09282248d3c98b.tar.gz
kernel-9aa33d5b4a53a1945dd2aee45c09282248d3c98b.zip
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: [email protected] Signed-off-by: Herve Codina <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions