]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:52 +0000 (09:08 -0700)
commitee2a37ab39b013589647ced2e6526c7358cb2111
tree15f81a62b7fa9ae507fe438a23cc08a052e9cdc6
parent5fae159b7d25987747919ccb73a8813da81abd97
ALSA: hda - Don't handle ELD notify from invalid port

commit 4f8e4f3537cafc4de128e6bfdf83baa78bc60eb1 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c