Commit b0e6481a authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Really fix bits value in proc output

The fix in 82894b6f resulted in zero
due to wrong mask and bit shifts.  Now fixed really.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent eefe93b9
...@@ -103,7 +103,7 @@ static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) ...@@ -103,7 +103,7 @@ static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm)
{ {
char buf[SND_PRINT_BITS_ADVISED_BUFSIZE]; char buf[SND_PRINT_BITS_ADVISED_BUFSIZE];
snd_iprintf(buffer, " bits [0x%x]:", (pcm & AC_SUPPCM_RATES) >> 16); snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff);
snd_print_pcm_bits(pcm, buf, sizeof(buf)); snd_print_pcm_bits(pcm, buf, sizeof(buf));
snd_iprintf(buffer, "%s\n", buf); snd_iprintf(buffer, "%s\n", buf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment