mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
alsa-util: do not try to guess the mixer name from the PCM name
This is just invalid. It results to an error in almost all cases. The hw:<number> scheme is sufficient to get the right card mixer. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ef1df94627
commit
d8200ee805
2 changed files with 9 additions and 19 deletions
|
|
@ -1725,6 +1725,8 @@ static void ucm_mapping_jack_probe(pa_alsa_mapping *m) {
|
|||
PA_IDXSET_FOREACH(dev, context->ucm_devices, idx) {
|
||||
bool has_control;
|
||||
|
||||
if (!dev->jack)
|
||||
continue;
|
||||
has_control = pa_alsa_mixer_find(mixer_handle, dev->jack->alsa_name, 0) != NULL;
|
||||
pa_alsa_jack_set_has_control(dev->jack, has_control);
|
||||
pa_log_info("UCM jack %s has_control=%d", dev->jack->name, dev->jack->has_control);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue