]> 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)
commitde74644f8ce535d5b22662fe7cbca6fdfd0c4b74
treef4a9d53153906292cfc529e35fd2d8d0bf07d4a6
parentf32dd7e58f81101502022b62153e8f69c4bbfdb6
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