From 5702b77200741446354f5088152febbba3f0da9f Mon Sep 17 00:00:00 2001 From: Karol Trzcinski Date: Fri, 19 Jun 2020 09:34:36 +0200 Subject: [PATCH] smart_amp: Release feedback buffer when unused Each code path should unlock locked components, otherwise lock system won't work correctly. Signed-off-by: Karol Trzcinski --- src/audio/smart_amp_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/audio/smart_amp_test.c b/src/audio/smart_amp_test.c index 6d2b19da1..ec758c86e 100644 --- a/src/audio/smart_amp_test.c +++ b/src/audio/smart_amp_test.c @@ -458,6 +458,8 @@ static int smart_amp_copy(struct comp_dev *dev) sad->config.feedback_ch_map); comp_update_buffer_consume(sad->feedback_buf, feedback_bytes); + } else { + buffer_unlock(sad->feedback_buf, feedback_flags); } /* bytes calculation */