summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-02-13 11:43:47 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-02-13 20:05:01 +0000
commit32ea6bb1f94e3e669389749b596aec860098e08c (patch)
treebbfc947c442949e802a36d90567766c1c247a3a1
parent463a7bc777a958f469e6b5a92bb4702b89401432 (diff)
downloadcoreboot-32ea6bb1f94e3e669389749b596aec860098e08c.tar.gz
coreboot-32ea6bb1f94e3e669389749b596aec860098e08c.tar.bz2
coreboot-32ea6bb1f94e3e669389749b596aec860098e08c.zip
mb/clevo/tgl-u: Use enum for AZALIA_PIN_CFG misc field
Use the new JACK_PRESENCE_DETECT and NO_JACK_PRESENCE_DETECT enums instead of raw values in the misc field of AZALIA_PIN_CFG. TEST: Timeless build for clevo/tgl-u did not change Change-Id: Ic3f4128ecbf89ddce3b6e705ebef76da343a433c Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80459 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
-rw-r--r--src/mainboard/clevo/tgl-u/variants/l140mu/hda_verb.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mainboard/clevo/tgl-u/variants/l140mu/hda_verb.c b/src/mainboard/clevo/tgl-u/variants/l140mu/hda_verb.c
index d8739a2604fe..0ff24a2c79eb 100644
--- a/src/mainboard/clevo/tgl-u/variants/l140mu/hda_verb.c
+++ b/src/mainboard/clevo/tgl-u/variants/l140mu/hda_verb.c
@@ -18,7 +18,7 @@ const u32 cim_verb_data[] = {
MIC_IN,
OTHER_DIGITAL,
COLOR_UNKNOWN,
- 1, /* no presence detect */
+ NO_JACK_PRESENCE_DETECT,
3, 0)
),
@@ -30,7 +30,7 @@ const u32 cim_verb_data[] = {
SPEAKER,
OTHER_ANALOG,
COLOR_UNKNOWN,
- 1, /* no presence detect */
+ NO_JACK_PRESENCE_DETECT,
1, 0)
),
@@ -42,7 +42,7 @@ const u32 cim_verb_data[] = {
HP_OUT,
STEREO_MONO_1_8,
BLACK,
- 0, /* has presence detect */
+ JACK_PRESENCE_DETECT,
2, 0)
),
@@ -54,19 +54,19 @@ const u32 cim_verb_data[] = {
MIC_IN,
STEREO_MONO_1_8,
BLACK, /* vendor: PINK */
- 1, /* no separate presence detect */
+ NO_JACK_PRESENCE_DETECT,
3, 12)
),
/* PCBEEP, vendor value: 0x41748245 */
AZALIA_PIN_CFG(0, 0x1d, AZALIA_PIN_DESC(
- INTEGRATED, /* vendor: NC */
- INTERNAL, /* vendor: EXTERNAL_PRIMARY_CHASSIS */
- NA, /* vendor: REAR */
- DEVICE_OTHER, /* vendor: MODEM_HANDSET_SIDE */
- OTHER_ANALOG, /* vendor: RCA */
- COLOR_UNKNOWN, /* vendor: PURPLE */
- 1, /* no presence detect, vendor: 2 */
+ INTEGRATED, /* vendor: NC */
+ INTERNAL, /* vendor: EXTERNAL_PRIMARY_CHASSIS */
+ NA, /* vendor: REAR */
+ DEVICE_OTHER, /* vendor: MODEM_HANDSET_SIDE */
+ OTHER_ANALOG, /* vendor: RCA */
+ COLOR_UNKNOWN, /* vendor: PURPLE */
+ NO_JACK_PRESENCE_DETECT, /* vendor: 2 */
4, 5)
),