diff options
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 2 | ||||
-rw-r--r-- | sound/pci/hda/hda_proc.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index e848c30d9bf..9d3e542d74a 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
@@ -397,7 +397,7 @@ static void hdmi_show_short_audio_desc(struct cea_sad *a) | |||
397 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); | 397 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); |
398 | 398 | ||
399 | if (a->format == AUDIO_CODING_TYPE_LPCM) | 399 | if (a->format == AUDIO_CODING_TYPE_LPCM) |
400 | snd_print_pcm_rates(a->sample_bits, buf2 + 8, sizeof(buf2 - 8)); | 400 | snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2 - 8)); |
401 | else if (a->max_bitrate) | 401 | else if (a->max_bitrate) |
402 | snprintf(buf2, sizeof(buf2), | 402 | snprintf(buf2, sizeof(buf2), |
403 | ", max bitrate = %d", a->max_bitrate); | 403 | ", max bitrate = %d", a->max_bitrate); |
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index 31b49bdc58f..56cee3a2221 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
@@ -120,7 +120,7 @@ void snd_print_pcm_bits(int pcm, char *buf, int buflen) | |||
120 | int i, j; | 120 | int i, j; |
121 | 121 | ||
122 | for (i = 0, j = 0; i < ARRAY_SIZE(bits); i++) | 122 | for (i = 0, j = 0; i < ARRAY_SIZE(bits); i++) |
123 | if (pcm & (1 << i)) | 123 | if (pcm & (AC_SUPPCM_BITS_8 << i)) |
124 | j += snprintf(buf + j, buflen - j, " %d", bits[i]); | 124 | j += snprintf(buf + j, buflen - j, " %d", bits[i]); |
125 | 125 | ||
126 | buf[j] = '\0'; /* necessary when j == 0 */ | 126 | buf[j] = '\0'; /* necessary when j == 0 */ |
@@ -130,7 +130,6 @@ static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) | |||
130 | { | 130 | { |
131 | char buf[SND_PRINT_BITS_ADVISED_BUFSIZE]; | 131 | char buf[SND_PRINT_BITS_ADVISED_BUFSIZE]; |
132 | 132 | ||
133 | pcm = (pcm >> 16) & 0xff; | ||
134 | snd_iprintf(buffer, " bits [0x%x]:", pcm); | 133 | snd_iprintf(buffer, " bits [0x%x]:", pcm); |
135 | snd_print_pcm_bits(pcm, buf, sizeof(buf)); | 134 | snd_print_pcm_bits(pcm, buf, sizeof(buf)); |
136 | snd_iprintf(buffer, "%s\n", buf); | 135 | snd_iprintf(buffer, "%s\n", buf); |