aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-25 10:07:01 -0500
committerTakashi Iwai <tiwai@suse.de>2008-11-25 10:07:01 -0500
commitb0e6481a9ae9e8c80b5d956980767ecad35c95c1 (patch)
tree5b4b03c602ae460232afe35bb1a0140193114f72 /sound/pci/hda
parenteefe93b9957e6f14780b7d37aeda0f27f341953d (diff)
ALSA: hda - Really fix bits value in proc output
The fix in 82894b6f6f109722070d4d78730fe50cdaba9443 resulted in zero due to wrong mask and bit shifts. Now fixed really. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/hda_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index a2eba4f17e9c..9a8498456e6c 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -103,7 +103,7 @@ static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm)
103{ 103{
104 char buf[SND_PRINT_BITS_ADVISED_BUFSIZE]; 104 char buf[SND_PRINT_BITS_ADVISED_BUFSIZE];
105 105
106 snd_iprintf(buffer, " bits [0x%x]:", (pcm & AC_SUPPCM_RATES) >> 16); 106 snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff);
107 snd_print_pcm_bits(pcm, buf, sizeof(buf)); 107 snd_print_pcm_bits(pcm, buf, sizeof(buf));
108 snd_iprintf(buffer, "%s\n", buf); 108 snd_iprintf(buffer, "%s\n", buf);
109} 109}