mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
alsa-mixer: Detect and then drop pointless paths in the path set.
In order to try and avoid 'spamming' the user with port choices, attempt to detect and remove any pointless paths in a path set. That is any paths which are subsets of other paths. This should solve a problem case with some USB Headsets which result in two paths both involving the 'Speaker' element. When no 'Master' element exists (which is quite common on head/handsets), then the first path (analog-output) will contain the 'Speaker' in a way that completely fits with in the use of the 'Speaker' element in the other path (analog-output-speaker).
This commit is contained in:
parent
85834107a0
commit
5c832a5b8a
3 changed files with 197 additions and 6 deletions
|
|
@ -1516,9 +1516,6 @@ static void find_mixer(struct userdata *u, pa_alsa_mapping *mapping, const char
|
|||
goto fail;
|
||||
|
||||
pa_alsa_path_set_probe(u->mixer_path_set, u->mixer_handle, ignore_dB);
|
||||
|
||||
pa_log_debug("Probed mixer paths:");
|
||||
pa_alsa_path_set_dump(u->mixer_path_set);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue