Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dp: do not block ppl because of sink/source limits #8965

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/audio/module_adapter/module_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,9 @@ static int module_adapter_copy_dp_queues(struct comp_dev *dev)
struct sof_source *following_mod_data_source =
audio_stream_get_source(&buffer->stream);
struct sof_source *data_src = dp_queue_get_source(dp_queue);
uint32_t to_copy = MIN(source_get_min_available(following_mod_data_source),
source_get_data_available(data_src));
uint32_t to_copy = MIN(MIN(source_get_min_available(following_mod_data_source),
source_get_data_available(data_src)),
sink_get_free_size(data_sink));

err = source_to_sink_copy(data_src, data_sink, true, to_copy);
if (err) {
Expand Down
Loading