mirror of https://github.com/thesofproject/sof.git
ipc4: helper: fix checks in comp dir update
- list_is_empty is required to properly check source list - at this stage empty list is allowed since source bind might not happen yet Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
This commit is contained in:
parent
6c3bd4791b
commit
9950b39c7d
|
@ -803,8 +803,11 @@ static int ipc4_update_comps_direction(struct ipc *ipc, uint32_t ppl_id)
|
|||
if (icd->cd->direction_set)
|
||||
continue;
|
||||
|
||||
if (list_is_empty(&icd->cd->bsource_list))
|
||||
continue;
|
||||
|
||||
src_buf = list_first_item(&icd->cd->bsource_list, struct comp_buffer, sink_list);
|
||||
if (src_buf && src_buf->source->direction_set) {
|
||||
if (src_buf->source->direction_set) {
|
||||
icd->cd->direction = src_buf->source->direction;
|
||||
icd->cd->direction_set = true;
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue