alsa: add option do use chmap from alsa, disable by default

This should be more in line with what PulseAudio does and so lead
to less surprises.

See #289
This commit is contained in:
Wim Taymans 2020-09-14 20:15:48 +02:00
parent 30dfe16c52
commit 2b0b44edc0
4 changed files with 39 additions and 17 deletions

View file

@ -369,7 +369,7 @@ spa_alsa_enum_format(struct state *state, int seq, uint32_t start, uint32_t num,
spa_pod_builder_prop(&b, SPA_FORMAT_AUDIO_channels, 0);
if ((maps = snd_pcm_query_chmaps(hndl)) != NULL) {
if (state->props.use_chmap && (maps = snd_pcm_query_chmaps(hndl)) != NULL) {
uint32_t channel;
snd_pcm_chmap_t* map;