]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda - Don't show the current connection for power widgets
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 16:08:19 +0000 (17:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 16:08:19 +0000 (17:08 +0100)
The power-widgets have no connection selection, so skip the check
in proc output, too.

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

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