pipewire-alsa: Correct the max channels value

This commit is contained in:
Jonas Holmberg 2020-03-12 09:19:02 +01:00
parent 56f4ee5999
commit 195ac82394

View file

@ -745,7 +745,7 @@ static int pipewire_set_hw_constraint(snd_pcm_pipewire_t *pw, int rate,
min_channels = max_channels = channels;
} else {
min_channels = 1;
max_channels = MAX_RATE;
max_channels = MAX_CHANNELS;
}
if ((err = snd_pcm_ioplug_set_param_list(&pw->io, SND_PCM_IOPLUG_HW_ACCESS,