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.
This commit is contained in:
Arun Raghavan 2012-07-16 15:50:10 +05:30
parent dae4b83dd0
commit 89024f6f12

View file

@ -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;