Skip to content

Commit 61b5cf5

Browse files
committed
t480/t480s - add patches/coreboot-25.09/0006-mb-lenovo-t480-Fix-headphone-jack.patch
Repro: git fetch https://review.coreboot.org/coreboot refs/changes/23/90023/2 && git format-patch -1 --stdout FETCH_HEAD > patches/coreboot-25.09/0006-mb-lenovo-t480-Fix-headphone-jack.patch echo "bogus" | sudo tee build/x86/coreboot-25.09/.canary ./repro_prod.sh BOARD=EOL-t480s-maximized This can be seen per https://review.coreboot.org/c/coreboot/+/90023: - click download button - copy paste section "format patch" : "git fetch https://review.coreboot.org/coreboot refs/changes/23/90023/2 && git format-patch -1 --stdout FETCH_HEAD" - append redirection to where patch is desired "> patches/coreboot-25.09/0006-mb-lenovo-t480-Fix-headphone-jack.patch" - this gives the patch command line + redirection to file so Heads applies it - overwrite coreboot canary file with bogus content so that next build resync coreboot tree and reapplies patches - launch build for board Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent 31f6364 commit 61b5cf5

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
From 95532d31c348cfa3d847885e7c4d7d2b97b1d7d7 Mon Sep 17 00:00:00 2001
2+
From: Arthur Heymans <arthur@aheymans.xyz>
3+
Date: Thu, 13 Nov 2025 15:45:46 +0100
4+
Subject: [PATCH] mb/lenovo/t480: Fix headphone jack
5+
6+
Add additional register configuration for the Realtek ALC257 audio
7+
codec on the Lenovo ThinkPad T480. This includes:
8+
9+
- Hidden register SW reset sequence
10+
- ClassD 2W amplifier configuration
11+
- Jack detection (JD1) setup for headphone port
12+
- Silence data mode threshold setting at -84dB
13+
14+
Shamelessly taken from google/brya/variants/pujjolo/hda_verb.c
15+
16+
Change-Id: Ib77138d782ceb9feeaef82935bc1c0d5c3066183
17+
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
18+
---
19+
.../sklkbl_thinkpad/variants/t480/hda_verb.c | 37 ++++++++++++++++++-
20+
1 file changed, 36 insertions(+), 1 deletion(-)
21+
22+
diff --git a/src/mainboard/lenovo/sklkbl_thinkpad/variants/t480/hda_verb.c b/src/mainboard/lenovo/sklkbl_thinkpad/variants/t480/hda_verb.c
23+
index 3a951ce0dab..e0caff3db51 100644
24+
--- a/src/mainboard/lenovo/sklkbl_thinkpad/variants/t480/hda_verb.c
25+
+++ b/src/mainboard/lenovo/sklkbl_thinkpad/variants/t480/hda_verb.c
26+
@@ -5,7 +5,7 @@
27+
const u32 cim_verb_data[] = {
28+
0x10ec0257, // Vendor/Device ID: Realtek ALC257
29+
0x17aa225d, // Subsystem ID
30+
- 11,
31+
+ 18,
32+
AZALIA_SUBVENDOR(0, 0x17aa225d),
33+
34+
AZALIA_PIN_CFG(0, 0x12, AZALIA_PIN_DESC(
35+
@@ -51,6 +51,41 @@ const u32 cim_verb_data[] = {
36+
1, 15
37+
)),
38+
39+
+ //==========Widget node 0x20 - 0 :Hidden register SW reset
40+
+ 0x0205001A,
41+
+ 0x0204C003,
42+
+ 0x0205001A,
43+
+ 0x0204C003,
44+
+ 0x05850000,
45+
+ 0x0584F880,
46+
+ 0x05850000,
47+
+ 0x0584F880,
48+
+ //==========Widget node 0x20 - 1 : ClassD 2W
49+
+ 0x02050038,
50+
+ 0x02048981,
51+
+ 0x0205001B,
52+
+ 0x02040A4B,
53+
+ //==========Widget node 0x20 - 2
54+
+ 0x0205003C,
55+
+ 0x02043154,
56+
+ 0x0205003C,
57+
+ 0x02043114,
58+
+ //==========Widget node 0x20 - 3 :
59+
+ 0x02050046,
60+
+ 0x02040004,
61+
+ 0x05750003,
62+
+ 0x057409A3,
63+
+ //==========Widget node 0x20 - 4 :JD1 enable 1JD port for HP JD
64+
+ 0x02050009,
65+
+ 0x02046003,
66+
+ 0x0205000A,
67+
+ 0x02047770,
68+
+ //==========Widget node 0x20 - 5 : Silence data mode Threshold (-84dB)
69+
+ 0x02050037,
70+
+ 0x0204FE15,
71+
+ 0x02050030,
72+
+ 0x02049004,
73+
+
74+
0x8086280b, // Vendor/Device ID: Intel Kabylake HDMI
75+
0x80860101, // Subsystem ID
76+
4,
77+
--
78+
2.39.5
79+

0 commit comments

Comments
 (0)