]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix input source elements of secondary ADCs on Realtek
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Mar 2010 11:13:07 +0000 (12:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Mar 2010 11:17:49 +0000 (12:17 +0100)
commitf6a0a3031b339313f0fd3a79ef59a3b3bba93d8e
treed8d75d6e5202190e2cb5c47404a826b6c7051e0c
parent62decdcfd7d8513281d4abed25c9a77d6caaf3e1
ALSA: hda - Fix input source elements of secondary ADCs on Realtek

Since alc_auto_create_input_ctls() doesn't set the elements for the
secondary ADCs, "Input Source" elemtns for these also get empty, resulting
in buggy outputs of alsactl like:
control.14 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
iface MIXER
name 'Input Source'
index 1
value 0
}

This patch fixes alc_mux_enum_*() (and others) to fall back to the
first entry if the secondary input mux is empty.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: <stable@kernel.org>
sound/pci/hda/patch_realtek.c