acp: add option to set Pro Audio channels

We always probe the Pro Audio profile with the maximum number of
channels but this can lead to a more limited amount of sample rates.

Add an option to set the channels used when probing so that the other
samplerates become available.

Fixes #2990
This commit is contained in:
Wim Taymans 2023-01-31 15:59:39 +01:00
parent e4f4ef9e1c
commit 2681d7e3ec
2 changed files with 5 additions and 1 deletions

View file

@ -48,6 +48,7 @@ struct pa_card {
bool auto_port;
bool ignore_dB;
uint32_t rate;
uint32_t pro_channels;
pa_alsa_ucm_config ucm;
pa_alsa_profile_set *profile_set;