From: Takashi Iwai Date: Mon, 8 Mar 2010 11:13:07 +0000 (+0100) Subject: ALSA: hda - Fix input source elements of secondary ADCs on Realtek X-Git-Tag: v2.6.34-rc2~53^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5311114d4867113c00f78829d4ce14be458ec925;p=pandora-kernel.git 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 Cc: --- Reading git-diff-tree failed