diff options
| author | Srinivas Kandagatla <[email protected]> | 2025-03-14 17:47:58 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-03-31 13:59:38 +0000 |
| commit | a93dad6f4e6a04a5943f6ee5686585f24abf7063 (patch) | |
| tree | 8dbf3a27667240ee32439581b959a9c0207d4ffb /net/core/lock_debug.c | |
| parent | ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns. (diff) | |
| download | kernel-a93dad6f4e6a04a5943f6ee5686585f24abf7063.tar.gz kernel-a93dad6f4e6a04a5943f6ee5686585f24abf7063.zip | |
ASoC: q6apm-dai: make use of q6apm_get_hw_pointer
With the existing code, the buffer position is only reset in pointer
callback, which leaves the possiblity of it going over the size of
buffer size and reporting incorrect position to userspace.
Without this patch, its possible to see errors like:
snd-x1e80100 sound: invalid position: pcmC0D0p:0, pos = 12288, buffer size = 12288, period size = 1536
snd-x1e80100 sound: invalid position: pcmC0D0p:0, pos = 12288, buffer size = 12288, period size = 1536
Fixes: 9b4fe0f1cd791 ("ASoC: qdsp6: audioreach: add q6apm-dai support")
Cc: [email protected]
Signed-off-by: Srinivas Kandagatla <[email protected]>
Tested-by: Krzysztof Kozlowski <[email protected]>
Tested-by: Johan Hovold <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/core/lock_debug.c')
0 files changed, 0 insertions, 0 deletions
