mirror of https://github.com/thesofproject/sof.git
dp: add an error message in DP/LL copying
In case of theoretically impossible event of LL-DP copy failure, an error message should be issued Message is better than assert - as stated this should never happen, but if it happens its better to have a glitch + message than a crash Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
This commit is contained in:
parent
557e581ca8
commit
8b99003733
|
@ -1046,8 +1046,10 @@ static int module_adapter_copy_dp_queues(struct comp_dev *dev)
|
||||||
source_get_data_available(data_src));
|
source_get_data_available(data_src));
|
||||||
|
|
||||||
err = source_to_sink_copy(data_src, data_sink, true, to_copy);
|
err = source_to_sink_copy(data_src, data_sink, true, to_copy);
|
||||||
if (err)
|
if (err) {
|
||||||
|
comp_err(dev, "LL to DP copy error status: %d", err);
|
||||||
return err;
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
dp_queue = dp_queue_get_next_item(dp_queue);
|
dp_queue = dp_queue_get_next_item(dp_queue);
|
||||||
}
|
}
|
||||||
|
@ -1080,8 +1082,10 @@ static int module_adapter_copy_dp_queues(struct comp_dev *dev)
|
||||||
source_get_data_available(data_src));
|
source_get_data_available(data_src));
|
||||||
|
|
||||||
err = source_to_sink_copy(data_src, data_sink, true, to_copy);
|
err = source_to_sink_copy(data_src, data_sink, true, to_copy);
|
||||||
if (err)
|
if (err) {
|
||||||
|
comp_err(dev, "DP to LL copy error status: %d", err);
|
||||||
return err;
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
dp_queue = dp_queue_get_next_item(dp_queue);
|
dp_queue = dp_queue_get_next_item(dp_queue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue