From 32ea6bb1f94e3e669389749b596aec860098e08c Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Tue, 13 Feb 2024 11:43:47 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80459 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- .../clevo/tgl-u/variants/l140mu/hda_verb.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/mainboard') 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 d8739a2604..0ff24a2c79 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) ), -- cgit v1.2.3