ALSA: hda - show ICT/KAE control bits
PATCH 1/1 ALSA: hda - show ICT/KAE control bits
Enable two debug options for S/PDIF Converter Control.
KAE: Keep Alive Enable; ICT: IEC Coding Type.
Signed-off-by Wang Xingchao <[email protected]>
--- sound/pci/hda/hda_codec.h | 4 ++++ sound/pci/hda/hda_proc.c | 4 ++++ 2 files changed, 8 insertions(+)
sound/pci/hda/hda_codec.h +4 -0
@@ -386,6 +386,10 @@ enum {/* DIGITAL2 bits */ #define AC_DIG2_CC (0x7f<<0) +/* DIGITAL3 bits */ +#define AC_DIG3_ICT (0xf<<16) +#define AC_DIG3_KAE (1<<23) +/* Pin widget control - 8bit */ #define AC_PINCTL_EPT (0x3<<0)#define AC_PINCTL_EPT_NATIVE 0
sound/pci/hda/hda_proc.c +4 -0
@@ -419,9 +419,13 @@ static void print_digital_conv(struct snd_info_buffer *buffer,snd_iprintf (buffer," Pro" );if (digi1 &AC_DIG1_LEVEL )snd_iprintf (buffer," GenLevel" ); +if (digi1 &AC_DIG3_KAE ) +snd_iprintf (buffer," KAE" );snd_iprintf (buffer,"\n" );snd_iprintf (buffer," Digital category: 0x%x\n" , (digi1 >>8 ) &AC_DIG2_CC ); +snd_iprintf (buffer," IEC Coding Type: 0x%x\n" , + (digi1 >>16 ) &AC_DIG3_ICT ); }static const char *get_pwr_state (u32 state)
Signature · 1 line
1.7.9.5