alsa-ucm: use the right profile name

Use the right profile name or else we could pass NULL to
pa_hashmap_get() and crash.
This commit is contained in:
Wim Taymans 2020-03-25 16:30:23 +01:00
parent f3f16fe6df
commit 4dc73f5167

View file

@ -1315,7 +1315,7 @@ int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, const char *
/* select volume controls on ports */
PA_HASHMAP_FOREACH(port, card->ports, state) {
data = PA_DEVICE_PORT_DATA(port);
data->path = pa_hashmap_get(data->paths, new_profile);
data->path = pa_hashmap_get(data->paths, profile);
}
return ret;