]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:10 +0000 (16:01 -0700)
commit9ba9ca73e6155efd4137e93796835b4377801893
treec32db1bbddac39dd2ca077bcc3ebd896bb89f0b6
parentf46a0cd9a472a3f3c2d10f99558ef5b70f88ee8c
ALSA: hda - Fix input source elements of secondary ADCs on Realtek

commit 5311114d4867113c00f78829d4ce14be458ec925 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_realtek.c