* [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support
@ 2019-11-05 16:10 Kai Vehmanen
2019-11-05 16:13 ` Chris Wilson
0 siblings, 1 reply; 4+ messages in thread
From: Kai Vehmanen @ 2019-11-05 16:10 UTC (permalink / raw)
To: alsa-devel, tiwai
Cc: Pan Xiuli, jani.saarinen, lakshminarayana.vudum, kai.vehmanen, chris
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>
---
sound/pci/hda/patch_hdmi.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
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)
return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map));
}
+static int patch_i915_tgl_hdmi(struct hda_codec *codec)
+{
+ /*
+ * pin to port mapping table where the value indicate the pin number and
+ * the index indicate the port number with 1 base.
+ */
+ static const int map[] = {0x4, 0x6, 0x8, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf};
+
+ return intel_hsw_common_init(codec, 0x02, map, ARRAY_SIZE(map));
+}
+
+
/* Intel Baytrail and Braswell; with eld notifier */
static int patch_i915_byt_hdmi(struct hda_codec *codec)
{
@@ -4153,6 +4165,7 @@ HDA_CODEC_ENTRY(0x8086280b, "Kabylake HDMI", patch_i915_hsw_hdmi),
HDA_CODEC_ENTRY(0x8086280c, "Cannonlake HDMI", patch_i915_glk_hdmi),
HDA_CODEC_ENTRY(0x8086280d, "Geminilake HDMI", patch_i915_glk_hdmi),
HDA_CODEC_ENTRY(0x8086280f, "Icelake HDMI", patch_i915_icl_hdmi),
+HDA_CODEC_ENTRY(0x80862812, "Tigerlake HDMI", patch_i915_tgl_hdmi),
HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI", patch_generic_hdmi),
HDA_CODEC_ENTRY(0x80862882, "Valleyview2 HDMI", patch_i915_byt_hdmi),
HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI", patch_i915_byt_hdmi),
--
2.17.1
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support
2019-11-05 16:10 [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support Kai Vehmanen
@ 2019-11-05 16:13 ` Chris Wilson
2019-11-05 16:24 ` Kai Vehmanen
0 siblings, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2019-11-05 16:13 UTC (permalink / raw)
To: Kai Vehmanen, alsa-devel, tiwai
Cc: Pan Xiuli, lakshminarayana.vudum, kai.vehmanen, jani.saarinen
Quoting Kai Vehmanen (2019-11-05 16:10:53)
> 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>
For thos watching,
https://patchwork.freedesktop.org/series/68972/#rev1
includes the revert so that this is tested. Not that the first run
through BAT tgl died too early to be conclusive.
-Chris
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support
2019-11-05 16:13 ` Chris Wilson
@ 2019-11-05 16:24 ` Kai Vehmanen
2019-11-05 19:17 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Kai Vehmanen @ 2019-11-05 16:24 UTC (permalink / raw)
To: Chris Wilson
Cc: alsa-devel, Kai Vehmanen, tiwai, Pan Xiuli,
lakshminarayana.vudum, jani.saarinen
Hi,
On Tue, 5 Nov 2019, Chris Wilson wrote:
> Quoting Kai Vehmanen (2019-11-05 16:10:53)
> > 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>
>
> For thos watching,
> https://patchwork.freedesktop.org/series/68972/#rev1
> includes the revert so that this is tested. Not that the first run
> through BAT tgl died too early to be conclusive.
ack. The partial results do look good already. The boot log
shows HDMI codec found and configured without errors:
https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5274/fi-tgl-u/boot0.txt
And the S3 suspend test did pass:
https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5274/fi-tgl-u/igt@gem_exec_suspend@basic-s3.html
So so far so good.
Br, Kai
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support
2019-11-05 16:24 ` Kai Vehmanen
@ 2019-11-05 19:17 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2019-11-05 19:17 UTC (permalink / raw)
To: Kai Vehmanen
Cc: alsa-devel, Pan Xiuli, lakshminarayana.vudum, jani.saarinen,
Chris Wilson
On Tue, 05 Nov 2019 17:24:37 +0100,
Kai Vehmanen wrote:
>
> Hi,
>
> On Tue, 5 Nov 2019, Chris Wilson wrote:
>
> > Quoting Kai Vehmanen (2019-11-05 16:10:53)
> > > 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>
> >
> > For thos watching,
> > https://patchwork.freedesktop.org/series/68972/#rev1
> > includes the revert so that this is tested. Not that the first run
> > through BAT tgl died too early to be conclusive.
>
> ack. The partial results do look good already. The boot log
> shows HDMI codec found and configured without errors:
> https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5274/fi-tgl-u/boot0.txt
>
> And the S3 suspend test did pass:
> https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5274/fi-tgl-u/igt@gem_exec_suspend@basic-s3.html
>
> So so far so good.
OK, I applied the patch now. If any correction is needed, please
submit a new on top of it.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-05 19:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 16:10 [alsa-devel] [PATCH] ALSA: hda: hdmi - add Tigerlake support Kai Vehmanen
2019-11-05 16:13 ` Chris Wilson
2019-11-05 16:24 ` Kai Vehmanen
2019-11-05 19:17 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).