aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_proc.c
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-08-23 21:50:46 -0400
committerTakashi Iwai <tiwai@suse.de>2009-08-24 03:42:48 -0400
commitfd72d008465d45db63d7f8931eea6a04e05916d6 (patch)
tree8daba43d08b3162e028799d06f0c487e301a1ab5 /sound/pci/hda/hda_proc.c
parent454e134d0e9e38421830f26426c66f37a6d39465 (diff)
ALSA: hda: move open coded tricks into get_wcaps_channels()
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r--sound/pci/hda/hda_proc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index a721eb08a290..95f24e4729f8 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -515,9 +515,7 @@ static void print_codec_info(struct snd_info_entry *entry,
515 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid, 515 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid,
516 get_wid_type_name(wid_type), wid_caps); 516 get_wid_type_name(wid_type), wid_caps);
517 if (wid_caps & AC_WCAP_STEREO) { 517 if (wid_caps & AC_WCAP_STEREO) {
518 unsigned int chans; 518 unsigned int chans = get_wcaps_channels(wid_caps);
519 chans = (wid_caps & AC_WCAP_CHAN_CNT_EXT) >> 13;
520 chans = ((chans << 1) | 1) + 1;
521 if (chans == 2) 519 if (chans == 2)
522 snd_iprintf(buffer, " Stereo"); 520 snd_iprintf(buffer, " Stereo");
523 else 521 else