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 <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-06-19 09:34:36 +02:00 committed by Marcin Maka
parent 1c53b8e9dd
commit 5702b77200
1 changed files with 2 additions and 0 deletions

View File

@ -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 */