summaryrefslogtreecommitdiff
path: root/src/modules/alsa/alsa-ucm.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2021-06-06 22:06:46 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-06-28 15:08:45 +0300
commit880ff393f13ddc497dc9f9edff16050a02656fbd (patch)
tree485acaa1b5a3732efae7c8ef8610523ce785fc9f /src/modules/alsa/alsa-ucm.h
parentc83b34516929214876bd2c46b5f346e53a3adcf7 (diff)
downloadpulseaudio-880ff393f13ddc497dc9f9edff16050a02656fbd.tar.gz
alsa-ucm: Set profiles by their struct instance, not their name
While switching profiles, it's possible that we will want to do more work besides switching UCM verbs. The alsa-card module already has our profiles as structs, but passes in only the names instead of the entire struct. Make things work with the struct instead, so we can add other things (like a UCM context) to it and use those here. Co-authored-by: Tanu Kaskinen <tanuk@iki.fi> [Alper: Split into its own commit and integrated Tanu's snippet.] Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/596>
Diffstat (limited to 'src/modules/alsa/alsa-ucm.h')
-rw-r--r--src/modules/alsa/alsa-ucm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-ucm.h b/src/modules/alsa/alsa-ucm.h
index cb72837de..e411a9262 100644
--- a/src/modules/alsa/alsa-ucm.h
+++ b/src/modules/alsa/alsa-ucm.h
@@ -145,7 +145,7 @@ typedef struct pa_alsa_ucm_volume pa_alsa_ucm_volume;
int pa_alsa_ucm_query_profiles(pa_alsa_ucm_config *ucm, int card_index);
pa_alsa_profile_set* pa_alsa_ucm_add_profile_set(pa_alsa_ucm_config *ucm, pa_channel_map *default_channel_map);
-int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, const char *new_profile, const char *old_profile);
+int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, pa_alsa_profile *new_profile, pa_alsa_profile *old_profile);
int pa_alsa_ucm_get_verb(snd_use_case_mgr_t *uc_mgr, const char *verb_name, const char *verb_desc, pa_alsa_ucm_verb **p_verb);