Commit d757534ed15387202e322854cd72dc58bbb975de

Authored by David Henningsson
Committed by Takashi Iwai
1 parent fd76804f3f

ALSA: HDA: Fix dmesg output of HDMI supported bits

This typo caused the dmesg output of the supported bits of HDMI
to be cut off early.

Cc: stable@kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/pci/hda/hda_eld.c
... ... @@ -381,7 +381,7 @@
381 381 snd_print_pcm_rates(a->rates, buf, sizeof(buf));
382 382  
383 383 if (a->format == AUDIO_CODING_TYPE_LPCM)
384   - snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2 - 8));
  384 + snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8);
385 385 else if (a->max_bitrate)
386 386 snprintf(buf2, sizeof(buf2),
387 387 ", max bitrate = %d", a->max_bitrate);