acp: move pro channel init to init_auto

This commit is contained in:
Wim Taymans 2021-10-18 10:51:48 +02:00
parent 9dccd79191
commit a475926f87
2 changed files with 9 additions and 13 deletions

View file

@ -373,7 +373,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
snd_pcm_close(m->output_pcm);
m->output_pcm = NULL;
m->supported = true;
pa_channel_map_init_pro(&m->channel_map, m->sample_spec.channels);
pa_channel_map_init_auto(&m->channel_map, m->sample_spec.channels, PA_CHANNEL_MAP_AUX);
}
pa_idxset_put(ap->output_mappings, m, NULL);
free(name);
@ -403,7 +403,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
snd_pcm_close(m->input_pcm);
m->input_pcm = NULL;
m->supported = true;
pa_channel_map_init_pro(&m->channel_map, m->sample_spec.channels);
pa_channel_map_init_auto(&m->channel_map, m->sample_spec.channels, PA_CHANNEL_MAP_AUX);
}
pa_idxset_put(ap->input_mappings, m, NULL);
free(name);