mirror of https://github.com/thesofproject/sof.git
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:
parent
1c53b8e9dd
commit
5702b77200
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue