]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit019787ac500d4a964221ff5902ddaea942ed09c4
tree5fc0a9384f577504ef7361388c235988484bc0a0
parenta1e24e70ac8374d8028c737372a4a401a2e3d488
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