ALSA: hda: hdmi - fix port numbering for ICL and TGL platforms
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 15 Nov 2019 12:44:47 +0000 (14:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Nov 2019 13:18:09 +0000 (14:18 +0100)
commitd577cf76fa3192f9e656bb101aa54d25a6a71347
tree5fc0a9384f577504ef7361388c235988484bc0a0
parentf35ef592477c5347b8f780a5f0d4970671e22c61
ALSA: hda: hdmi - fix port numbering for ICL and TGL platforms

Semantics of port#0 differ between ICL and TGL:

 ICL port#0   -> never used for HDAudio
 ICL port#1   -> should be mapped to first pin (0x04)
 TGL port#0   -> typically not used, but HW has the support,
 so should be mapped to first pin (0x04)
 TGL port#1   -> should be mapped to 2nd pin (0x06)

Refactor the port mapping logic to allow to take the above
differences into account. Fixes issues with HDAudio on some
TGL platforms.

Co-developed-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191115124449.20512-2-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c