Skip to content
Open
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
9 changes: 3 additions & 6 deletions src/audio/mux/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,12 @@ static int demux_process(struct processing_module *mod,

comp_dbg(dev, "entry");

if (sources == NULL && sources[0] == NULL) {
/* if there are no sources or sinks active, then there is nothing to do */
if (num_of_sources == 0 || num_of_sinks == 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmocka being deprecated in favour of ztests so acceptable.

return 0;
}
source = sources[0];

/* if there are no sinks active, then there is nothing to do */
if (num_of_sinks == 0) {
return 0;
}
source = sources[0];

/* the same number of frames is distributed to every sink, so it is
* limited by both the source availability and every active sink's free
Expand Down
Loading