“fb63cd89d4343270ad96598aac177a7ad8d36c21”上不存在“paddle/phi/ops/compat/index_sample_sig.cc”
提交 b923528e 编写于 作者: W Wu Fengguang 提交者: Takashi Iwai

ALSA: hda - show HBR(High Bit Rate) pin cap in procfs

Note that the HBR capability only applies to HDMI pin.
Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 c357aab0
...@@ -258,6 +258,7 @@ enum { ...@@ -258,6 +258,7 @@ enum {
#define AC_PINCAP_VREF (0x37<<8) #define AC_PINCAP_VREF (0x37<<8)
#define AC_PINCAP_VREF_SHIFT 8 #define AC_PINCAP_VREF_SHIFT 8
#define AC_PINCAP_EAPD (1<<16) /* EAPD capable */ #define AC_PINCAP_EAPD (1<<16) /* EAPD capable */
#define AC_PINCAP_HBR (1<<27) /* High Bit Rate */
/* Vref status (used in pin cap) */ /* Vref status (used in pin cap) */
#define AC_PINCAP_VREF_HIZ (1<<0) /* Hi-Z */ #define AC_PINCAP_VREF_HIZ (1<<0) /* Hi-Z */
#define AC_PINCAP_VREF_50 (1<<1) /* 50% */ #define AC_PINCAP_VREF_50 (1<<1) /* 50% */
......
...@@ -240,8 +240,11 @@ static void print_pin_caps(struct snd_info_buffer *buffer, ...@@ -240,8 +240,11 @@ static void print_pin_caps(struct snd_info_buffer *buffer,
/* Realtek uses this bit as a different meaning */ /* Realtek uses this bit as a different meaning */
if ((codec->vendor_id >> 16) == 0x10ec) if ((codec->vendor_id >> 16) == 0x10ec)
snd_iprintf(buffer, " R/L"); snd_iprintf(buffer, " R/L");
else else {
if (caps & AC_PINCAP_HBR)
snd_iprintf(buffer, " HBR");
snd_iprintf(buffer, " HDMI"); snd_iprintf(buffer, " HDMI");
}
} }
if (caps & AC_PINCAP_TRIG_REQ) if (caps & AC_PINCAP_TRIG_REQ)
snd_iprintf(buffer, " Trigger"); snd_iprintf(buffer, " Trigger");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册