]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/hdmi - Fix i915 reverse port/pin mapping
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Jul 2019 21:14:53 +0000 (23:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 Jul 2019 14:39:35 +0000 (16:39 +0200)
commitee0a24d359ecfeb2ab343daaa889639b8c05a342
tree7dcdf82142543c6c599d02f8e7c3d62c7e4f8644
parent650cbc994137a95787f33088d0b400bfa08f98b5
ALSA: hda/hdmi - Fix i915 reverse port/pin mapping

The recent fix for Icelake HDMI codec introduced the mapping from pin
NID to the i915 gfx port number.  However, it forgot the reverse
mapping from the port number to the pin NID that is used in the ELD
notifier callback.  As a result, it's processed to a wrong widget and
gives a warning like
  snd_hda_codec_hdmi hdaudioC0D2: HDMI: pin nid 5 not registered

This patch corrects it with a proper reverse mapping function.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204133
Fixes: 225fc9cd5cd5 ("ALSA: hda: hdmi - add Icelake support")
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c