]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't handle ELD notify from invalid port
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2016 11:02:49 +0000 (12:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Mar 2016 11:02:49 +0000 (12:02 +0100)
commit7a255163a4eae5b361a40449419eb7daf3561c16
tree4ebdd0a442536fc6ae3b76cac5aad98437f8915b
parente2711a1115cf9e01d2f0a75601ef2f25ec9f30e8
ALSA: hda - Don't handle ELD notify from invalid port

The current Intel HDMI codec driver supports only three fixed ports
from port B to port D.  However, i915 driver may assign a DP on other
ports, e.g. port A, when no eDP is used.  This incompatibility is
caught later at pin_nid_to_pin_index() and results in a warning
message like "HDMI: pin nid 4 not registered" at each time.

This patch filters out such invalid events beforehand, so that the
kernel won't be too grumbling.

Reported-by: Stefan Assmann <sassmann@kpanic.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c