]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - hdmi: Skip out-of-range latency values in AMD ELD generator
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 10 Nov 2013 18:56:11 +0000 (20:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Nov 2013 16:08:04 +0000 (17:08 +0100)
commite8a4d14662985c35c53b3d51708d7a70c4b4309e
treee99df9cb2045eba760369eed35ed86098bd310d8
parentf40f1c2b1767e9e528639b1cc52cf121b92ac248
ALSA: hda - hdmi: Skip out-of-range latency values in AMD ELD generator

The ATI/AMD video/audio latencies are specified in apparent HDMI VSDB
format. In this format values above 251 are not valid (or stream
component is not supported - 255), but no checking is performed since
this was not mentioned in the AMD HDA verbs specification.

Check that the latencies are valid before using them, and add a comment
describing the formats.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c