mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-11 04:27:48 -05:00
alsa-ucm: Fix more instances of profile-verb conflation
The ucm_get_device_property() function adds to each UCM device's playback_volumes (or capture_volumes) hash map an associated volume mixer keyed with the UCM verb. These key-value pairs are then iterated over in various places which assume the key is a profile name. This assumption is no longer true since we can generate multiple profiles to use conflicting devices. A previous commit4527890416("alsa-ucm: Stop conflating profile name with UCM verb name") fixes some instances of this assumption, but misses the relation explained above. Fix more instances of misleading "profile"s where the UCM verb name is actually meant. Fixes:4527890416("alsa-ucm: Stop conflating profile name with UCM verb name") Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/771>
This commit is contained in:
parent
45509ff9bc
commit
7005eafee3
2 changed files with 18 additions and 18 deletions
|
|
@ -276,9 +276,9 @@ struct pa_alsa_ucm_port_data {
|
|||
|
||||
pa_alsa_ucm_device *device;
|
||||
|
||||
/* profile name -> pa_alsa_path for volume control */
|
||||
/* verb name -> pa_alsa_path for volume control */
|
||||
pa_hashmap *paths;
|
||||
/* Current path, set when activating profile */
|
||||
/* Current path, set when activating verb */
|
||||
pa_alsa_path *path;
|
||||
|
||||
/* ELD info */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue