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:
Marcin Szkudlinski 2024-02-07 13:44:02 +01:00 committed by Kai Vehmanen
parent 557e581ca8
commit 8b99003733
1 changed files with 6 additions and 2 deletions

View File

@ -1046,8 +1046,10 @@ static int module_adapter_copy_dp_queues(struct comp_dev *dev)
source_get_data_available(data_src));
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;
}
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));
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;
}
dp_queue = dp_queue_get_next_item(dp_queue);
}