summaryrefslogtreecommitdiff
path: root/src/modules/alsa/alsa-ucm.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2019-12-07 20:39:21 +0100
committerArun Raghavan <arun@arunraghavan.net>2019-12-23 11:10:44 +0000
commit3bd7c70c518d66707cbfde138ab7dcc505e463ac (patch)
tree512359b9b807f21f0d854334ea88393a997967f1 /src/modules/alsa/alsa-ucm.h
parent6438e5c46dc449e4726ec9312859cc70388d2851 (diff)
downloadpulseaudio-3bd7c70c518d66707cbfde138ab7dcc505e463ac.tar.gz
alsa: rewrite mixer open/close, cache mixer accesses in probe
The ALSA mixer can be opened multiple times (especially for UCM in the probe). This adds a simple mixer cache to prevent multiple open calls. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'src/modules/alsa/alsa-ucm.h')
-rw-r--r--src/modules/alsa/alsa-ucm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/alsa/alsa-ucm.h b/src/modules/alsa/alsa-ucm.h
index 014bc334a..493629928 100644
--- a/src/modules/alsa/alsa-ucm.h
+++ b/src/modules/alsa/alsa-ucm.h
@@ -248,6 +248,7 @@ struct pa_alsa_ucm_config {
snd_use_case_mgr_t *ucm_mgr;
pa_alsa_ucm_verb *active_verb;
+ pa_hashmap *mixers;
PA_LLIST_HEAD(pa_alsa_ucm_verb, verbs);
PA_LLIST_HEAD(pa_alsa_jack, jacks);
};