]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add a sanity check of pin / port mapping on i915 HDMI/DP
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2016 14:49:35 +0000 (15:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2016 14:54:42 +0000 (15:54 +0100)
commit22fbe55857d5bfc18592aa619e9d0abe682ae79b
tree49bfce24deaa299602ebf9d0e3d52da40a611944
parenta5bc36ecaa8a5c90338ecc2c50ce12e85a192cd1
ALSA: hda - Add a sanity check of pin / port mapping on i915 HDMI/DP

There is an implicit rule to map between pin NID and port number on
Intel HDMI/DP codec: the mapping is fixed only for NID 0x05, 0x06 and
0x07.  For avoiding the possible memory corruption, add a sanity check
for the NID value and splat WARN_ON() for invalid accesses.

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