ALSA: hda - show HBR(High Bit Rate) pin cap in procfs
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 11 Dec 2009 04:28:33 +0000 (12:28 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Dec 2009 06:55:55 +0000 (07:55 +0100)
Note that the HBR capability only applies to HDMI pin.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_proc.c

index 2d627613aea356eb5526f22ed273524c47716afb..f9a084a1378efabee74b88480490d5e30c4e64f6 100644 (file)
@@ -258,6 +258,7 @@ enum {
 #define AC_PINCAP_VREF                 (0x37<<8)
 #define AC_PINCAP_VREF_SHIFT           8
 #define AC_PINCAP_EAPD                 (1<<16) /* EAPD capable */
+#define AC_PINCAP_HBR                  (1<<27) /* High Bit Rate */
 /* Vref status (used in pin cap) */
 #define AC_PINCAP_VREF_HIZ             (1<<0)  /* Hi-Z */
 #define AC_PINCAP_VREF_50              (1<<1)  /* 50% */
index 09476fc1ab64980c78ca170ca00fa7cbb3bb6ab2..8d381c891001eade2aa49e547c880a23885b7329 100644 (file)
@@ -240,8 +240,11 @@ static void print_pin_caps(struct snd_info_buffer *buffer,
                /* Realtek uses this bit as a different meaning */
                if ((codec->vendor_id >> 16) == 0x10ec)
                        snd_iprintf(buffer, " R/L");
-               else
+               else {
+                       if (caps & AC_PINCAP_HBR)
+                               snd_iprintf(buffer, " HBR");
                        snd_iprintf(buffer, " HDMI");
+               }
        }
        if (caps & AC_PINCAP_TRIG_REQ)
                snd_iprintf(buffer, " Trigger");