diff options
author | Kai Vehmanen <kai.vehmanen@linux.intel.com> | 2019-11-05 11:10:53 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-05 14:16:31 -0500 |
commit | 9a11ba7388f165762549903492fc34d29bbb3c04 (patch) | |
tree | 5d173aa9447de296de80eeb38a915a7396d7765f | |
parent | 15c2b3cc09a31620914955cb2a89c277c18ee999 (diff) |
ALSA: hda: hdmi - add Tigerlake support
Add Tigerlake HDMI codec support.
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=205379
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=112171
Cc: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191105161053.22958-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index b72553710ffb..3c720703ebb8 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -2851,6 +2851,18 @@ static int patch_i915_icl_hdmi(struct hda_codec *codec) | |||
2851 | return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map)); | 2851 | return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map)); |
2852 | } | 2852 | } |
2853 | 2853 | ||
2854 | static int patch_i915_tgl_hdmi(struct hda_codec *codec) | ||
2855 | { | ||
2856 | /* | ||
2857 | * pin to port mapping table where the value indicate the pin number and | ||
2858 | * the index indicate the port number with 1 base. | ||
2859 | */ | ||
2860 | static const int map[] = {0x4, 0x6, 0x8, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}; | ||
2861 | |||
2862 | return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map)); | ||
2863 | } | ||
2864 | |||
2865 | |||
2854 | /* Intel Baytrail and Braswell; with eld notifier */ | 2866 | /* Intel Baytrail and Braswell; with eld notifier */ |
2855 | static int patch_i915_byt_hdmi(struct hda_codec *codec) | 2867 | static int patch_i915_byt_hdmi(struct hda_codec *codec) |
2856 | { | 2868 | { |
@@ -4153,6 +4165,7 @@ HDA_CODEC_ENTRY(0x8086280b, "Kabylake HDMI", patch_i915_hsw_hdmi), | |||
4153 | HDA_CODEC_ENTRY(0x8086280c, "Cannonlake HDMI", patch_i915_glk_hdmi), | 4165 | HDA_CODEC_ENTRY(0x8086280c, "Cannonlake HDMI", patch_i915_glk_hdmi), |
4154 | HDA_CODEC_ENTRY(0x8086280d, "Geminilake HDMI", patch_i915_glk_hdmi), | 4166 | HDA_CODEC_ENTRY(0x8086280d, "Geminilake HDMI", patch_i915_glk_hdmi), |
4155 | HDA_CODEC_ENTRY(0x8086280f, "Icelake HDMI", patch_i915_icl_hdmi), | 4167 | HDA_CODEC_ENTRY(0x8086280f, "Icelake HDMI", patch_i915_icl_hdmi), |
4168 | HDA_CODEC_ENTRY(0x80862812, "Tigerlake HDMI", patch_i915_tgl_hdmi), | ||
4156 | HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI", patch_generic_hdmi), | 4169 | HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI", patch_generic_hdmi), |
4157 | HDA_CODEC_ENTRY(0x80862882, "Valleyview2 HDMI", patch_i915_byt_hdmi), | 4170 | HDA_CODEC_ENTRY(0x80862882, "Valleyview2 HDMI", patch_i915_byt_hdmi), |
4158 | HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI", patch_i915_byt_hdmi), | 4171 | HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI", patch_i915_byt_hdmi), |