From 89024f6f1216c9fa5afe9c831d4204a184594c05 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 16 Jul 2012 15:50:10 +0530 Subject: [PATCH] alsa: Allow channel count probe on open by mapping This allows opening a PCM given a mapping to work even if we don't have a channel count for the device up-front. --- src/modules/alsa/alsa-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index fbdf4760..bb4e307c 100644 --- a/src/modules/alsa/alsa-util.c +++ b/src/modules/alsa/alsa-util.c @@ -627,7 +627,7 @@ snd_pcm_t *pa_alsa_open_by_device_id_mapping( tsched_size, use_mmap, use_tsched, - TRUE); + pa_channel_map_valid(&m->channel_map) /* Query the channel count if we don't know what we want */); if (!pcm_handle) return NULL; -- 2.39.2