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: 6 additions & 3 deletions sound/soc/sof/ipc4-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2476,11 +2476,14 @@ _sof_ipc4_prepare_copier_module(struct snd_sof_widget *swidget,
ch_map >>= 4;
}

if (swidget->id == snd_soc_dapm_dai_in && ch_count == out_ref_channels) {
if ((swidget->id == snd_soc_dapm_dai_in && ch_count == out_ref_channels) ||
ch_count < blob->alh_cfg.device_count) {
/*
* For playback DAI widgets where the channel number is equal to
* the output reference channels, set the step = 0 to ensure all
* the ch_mask is applied to all alh mappings.
* the output reference channels, or when there are fewer
* channels than aggregated devices (e.g. a mono capture
* stream split across multiple links), set step = 0 to
* ensure all the ch_mask is applied to all alh mappings.
*/
mask = ch_mask;
step = 0;
Expand Down
Loading