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>
This commit is contained in:
parent
0b697a2473
commit
3bb1d923af
|
@ -97,21 +97,17 @@ static u32 get_front_panel_cfg(uint8_t front_panel_audio)
|
||||||
case 0:
|
case 0:
|
||||||
return AZALIA_PIN_CFG_NC(0);
|
return AZALIA_PIN_CFG_NC(0);
|
||||||
case 1:
|
case 1:
|
||||||
return 0x022a4c40;
|
return 0x02214c40;
|
||||||
case 2:
|
case 2:
|
||||||
return AZALIA_PIN_DESC(
|
return 0x0227ec40;
|
||||||
INTEGRATED,
|
|
||||||
INTERNAL,
|
|
||||||
NA,
|
|
||||||
SPEAKER,
|
|
||||||
TYPE_UNKNOWN,
|
|
||||||
COLOR_UNKNOWN,
|
|
||||||
false,
|
|
||||||
0xf,
|
|
||||||
0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
static void mainboard_r0x_configure_alc888(u8 *base, u32 viddid)
|
||||||
{
|
{
|
||||||
/* Overwrite settings made by baseboard */
|
/* 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_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[] = {
|
const u32 verbs[] = {
|
||||||
|
AZALIA_PIN_CFG(0, 0x19, front_mic_cfg),
|
||||||
AZALIA_PIN_CFG(0, 0x1b, front_panel_cfg),
|
AZALIA_PIN_CFG(0, 0x1b, front_panel_cfg),
|
||||||
0x0205000d, /* Pin 37 vrefo hidden register - used as port C vref */
|
0x0205000d, /* Pin 37 vrefo hidden register - used as port C vref */
|
||||||
get_port_c_vref_cfg(board_cfg->blue_rear_vref),
|
get_port_c_vref_cfg(board_cfg->blue_rear_vref),
|
||||||
|
|
Loading…
Reference in New Issue