alsa-mixer: do the quick card number lookup to save mixer instances

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-08 22:48:45 +01:00 committed by Arun Raghavan
parent 3ceff8bb3f
commit 8837c90b7f
2 changed files with 34 additions and 0 deletions

View file

@ -102,6 +102,7 @@ struct pa_alsa_setting {
/* An entry for one ALSA mixer */
struct pa_alsa_mixer {
snd_mixer_t *mixer_handle;
int card_index;
pa_alsa_fdlist *fdl;
bool used_for_probe_only:1;
};