summaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-25 13:51:43 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-12-03 15:51:31 +0000
commit3bb1d923af067aa33285a59e0f49d8064a58363f (patch)
tree11ea4cf3defd8081a9727f288a8c61f025b64e96 /src/mainboard/prodrive
parent0b697a247331168c35593d0741e4d0fd09a463f6 (diff)
mb/prodrive/hermes: Update r04 front audio config
Update the pin configs for the front panel jacks. Change-Id: I3760f0a25e964cf0eba99d180fd6f3e8488af868 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59545 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/prodrive')
-rw-r--r--src/mainboard/prodrive/hermes/hda_verb.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mainboard/prodrive/hermes/hda_verb.c b/src/mainboard/prodrive/hermes/hda_verb.c
index c818d26d19..760cecc5f5 100644
--- a/src/mainboard/prodrive/hermes/hda_verb.c
+++ b/src/mainboard/prodrive/hermes/hda_verb.c
@@ -97,21 +97,17 @@ static u32 get_front_panel_cfg(uint8_t front_panel_audio)
case 0:
return AZALIA_PIN_CFG_NC(0);
case 1:
- return 0x022a4c40;
+ return 0x02214c40;
case 2:
- return AZALIA_PIN_DESC(
- INTEGRATED,
- INTERNAL,
- NA,
- SPEAKER,
- TYPE_UNKNOWN,
- COLOR_UNKNOWN,
- false,
- 0xf,
- 0);
+ return 0x0227ec40;
}
}
+static u32 get_front_mic_cfg(uint8_t front_panel_audio)
+{
+ return front_panel_audio == 2 ? AZALIA_PIN_CFG_NC(0) : 0x02a19c20;
+}
+
static void mainboard_r0x_configure_alc888(u8 *base, u32 viddid)
{
/* Overwrite settings made by baseboard */
@@ -124,7 +120,10 @@ static void mainboard_r0x_configure_alc888(u8 *base, u32 viddid)
const u32 front_panel_cfg = get_front_panel_cfg(board_cfg->front_panel_audio);
+ const u32 front_mic_cfg = get_front_mic_cfg(board_cfg->front_panel_audio);
+
const u32 verbs[] = {
+ AZALIA_PIN_CFG(0, 0x19, front_mic_cfg),
AZALIA_PIN_CFG(0, 0x1b, front_panel_cfg),
0x0205000d, /* Pin 37 vrefo hidden register - used as port C vref */
get_port_c_vref_cfg(board_cfg->blue_rear_vref),