acp: strip UCM alibpref from mapping

Strip the alibpref from the device string in the mapping name. This
name is used to generate the node name eventually and we don't want
this random identifier in it.

Fixes #1362
This commit is contained in:
Wim Taymans 2021-06-29 17:43:00 +02:00
parent d1c6114423
commit ae89ae093e
3 changed files with 21 additions and 11 deletions

View file

@ -263,6 +263,8 @@ struct pa_alsa_ucm_config {
pa_hashmap *mixers;
PA_LLIST_HEAD(pa_alsa_ucm_verb, verbs);
PA_LLIST_HEAD(pa_alsa_jack, jacks);
char *alibpref;
};
struct pa_alsa_ucm_mapping_context {