]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't spew too many ELD errors
authorTakashi Iwai <tiwai@suse.de>
Sat, 20 Aug 2011 07:14:45 +0000 (09:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 20 Aug 2011 07:23:10 +0000 (09:23 +0200)
commitc8611e496f1d224021ed665a2de8334585c62c26
treef4a9d53153906292cfc529e35fd2d8d0bf07d4a6
parent5ef2a931303f8bcf3e8fc0f5903a73f3b590d230
ALSA: hda - Don't spew too many ELD errors

Currently HD-audio driver shows the all error ELD byte as an error
in the kernel message.  This is annoying when the video driver doesn't
set the correct ELD from the beginning. e.g. radeon sends a zero-byte
data, but we still check ELD with the fixed 128 byte as a workaround
for some broken devices, it spews 128-times errors.

For avoiding this, the driver aborts reading when the first byte is
invalid.  In such a case, the whole data is certainly invalid.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c