Skip to content

Commit 13b6592

Browse files
Andrula Songlgirdwood
authored andcommitted
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 <xiaoyuan.song@intel.com>
1 parent 3a1c4f9 commit 13b6592

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎src/include/sof/audio/component.h‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,13 +862,15 @@ void comp_get_copy_limits_with_lock_frame_aligned(struct comp_buffer *source,
862862
struct comp_buffer *sink,
863863
struct comp_copy_limits *cl)
864864
{
865-
source = buffer_acquire(source);
866-
sink = buffer_acquire(sink);
865+
struct comp_buffer __sparse_cache *source_c, *sink_c;
866+
867+
source_c = buffer_acquire(source);
868+
sink_c = buffer_acquire(sink);
867869

868-
comp_get_copy_limits_frame_aligned(source, sink, cl);
870+
comp_get_copy_limits_frame_aligned(source_c, sink_c, cl);
869871

870-
buffer_release(source);
871-
buffer_release(sink);
872+
buffer_release(sink_c);
873+
buffer_release(source_c);
872874
}
873875

874876
/**

0 commit comments

Comments
 (0)