From c0e23558c649e2d8fcfee5c3ec4dd2b226de4372 Mon Sep 17 00:00:00 2001 From: Andrula Song Date: Thu, 26 May 2022 09:37:12 +0800 Subject: [PATCH] audio: fix ipc tx timed out for 0x60060000 Add local veriables to fix bug of ipc tx timed out for 0x60060000 (TRIG_PAUSE) when testing multiple-pause-resume on ADLP Chrome device. Release the buffer locks symmetrically. Signed-off-by: Andrula Song --- src/include/sof/audio/component.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/include/sof/audio/component.h b/src/include/sof/audio/component.h index 24a8cb826fc6..a9b9c245e1ea 100644 --- a/src/include/sof/audio/component.h +++ b/src/include/sof/audio/component.h @@ -862,13 +862,15 @@ void comp_get_copy_limits_with_lock_frame_aligned(struct comp_buffer *source, struct comp_buffer *sink, struct comp_copy_limits *cl) { - source = buffer_acquire(source); - sink = buffer_acquire(sink); + struct comp_buffer __sparse_cache *source_c, *sink_c; + + source_c = buffer_acquire(source); + sink_c = buffer_acquire(sink); - comp_get_copy_limits_frame_aligned(source, sink, cl); + comp_get_copy_limits_frame_aligned(source_c, sink_c, cl); - buffer_release(source); - buffer_release(sink); + buffer_release(sink_c); + buffer_release(source_c); } /**