]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda - No widget selection for volume knob widgets in proc output
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 10:37:03 +0000 (11:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 10:42:08 +0000 (11:42 +0100)
Volume-knob widgets have no widget selection although they have widget
connections.  Thus, the connection list in the proc output shouldn't
contain the selection (*).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_proc.c

index 7ca66d654148bb07723982411e3401acd93f4887..144b85276d5a9431de945d75f4eda4309c4e39d7 100644 (file)
@@ -399,7 +399,8 @@ static void print_conn_list(struct snd_info_buffer *buffer,
 {
        int c, curr = -1;
 
-       if (conn_len > 1 && wid_type != AC_WID_AUD_MIX)
+       if (conn_len > 1 && wid_type != AC_WID_AUD_MIX &&
+           wid_type != AC_WID_VOL_KNB)
                curr = snd_hda_codec_read(codec, nid, 0,
                                          AC_VERB_GET_CONNECT_SEL, 0);
        snd_iprintf(buffer, "  Connection: %d\n", conn_len);