alsa-pcm: default to max channels

When nothing else is specified, suggest the max number of channels
for a device.

See #467
This commit is contained in:
Wim Taymans 2020-12-09 12:10:13 +01:00
parent d776a0917d
commit ec77979890

View file

@ -418,7 +418,7 @@ skip_channels:
spa_pod_builder_push_choice(&b, &f[1], SPA_CHOICE_None, 0);
choice = (struct spa_pod_choice*)spa_pod_builder_frame(&b, &f[1]);
spa_pod_builder_int(&b, SPA_CLAMP(DEFAULT_CHANNELS, min, max));
spa_pod_builder_int(&b, max);
if (min != max) {
spa_pod_builder_int(&b, min);
spa_pod_builder_int(&b, max);