mb/google/brya/var/redrix: Update audio setting

Update codec/amp setting.
1. Update hid for ALC5682VS
2. Add maxim properties.

BUG=b:197076844
TEST=build and check SSDT

Change-Id: I8bedd4d0737caf46769ad27bce1768c225ce8a82
Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57753
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Wisley Chen 2021-09-17 14:37:59 +06:00 committed by Tim Wawrzynczak
parent 04613e9b94
commit 4ca7b26346
2 changed files with 29 additions and 8 deletions

View File

@ -47,7 +47,7 @@ static void fw_config_handle(void *unused)
return;
}
if (fw_config_probe(FW_CONFIG(AUDIO, MAX98390_ALC5682I_I2S))) {
if (fw_config_probe(FW_CONFIG(AUDIO, MAX98390_ALC5682I_I2S_4SPK))) {
printk(BIOS_INFO, "Configure audio over I2S with MAX98390 ALC5682I.\n");
gpio_configure_pads(dmic_enable_pads, ARRAY_SIZE(dmic_enable_pads));
gpio_configure_pads(i2s_enable_pads, ARRAY_SIZE(i2s_enable_pads));

View File

@ -8,8 +8,8 @@ fw_config
option KB_BL_PRESENT 1
end
field AUDIO 3 5
option AUDIO_UNKNOWN 0
option MAX98390_ALC5682I_I2S 1
option AUDIO_UNKNOWN 0
option MAX98390_ALC5682I_I2S_4SPK 1
end
field DB_LTE 6 7
option LTE_ABSENT 0
@ -162,7 +162,7 @@ chip soc/intel/alderlake
end #PCIE8 SD card
device ref i2c0 on
chip drivers/i2c/generic
register "hid" = ""10EC5682""
register "hid" = ""RTL5682""
register "name" = ""RT58""
register "desc" = ""Headset Codec""
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)"
@ -172,6 +172,7 @@ chip soc/intel/alderlake
register "property_list[0].name" = ""realtek,jd-src""
register "property_list[0].integer" = "1"
device i2c 1a on
probe AUDIO MAX98390_ALC5682I_I2S_4SPK
end
end
chip drivers/i2c/max98390
@ -180,7 +181,12 @@ chip soc/intel/alderlake
register "name" = ""MXW0""
register "r0_calib_key" = ""dsm_calib_r0_0""
register "temperature_calib_key" = ""dsm_calib_temp_0""
device i2c 0x3a on end
register "dsm_param_file_name" = ""dsm_param""
register "vmon_slot_no" = "0"
register "imon_slot_no" = "1"
device i2c 0x3a on
probe AUDIO MAX98390_ALC5682I_I2S_4SPK
end
end
chip drivers/i2c/max98390
register "desc" = ""MAX98390 Speaker Amp 1""
@ -188,7 +194,12 @@ chip soc/intel/alderlake
register "name" = ""MXW1""
register "r0_calib_key" = ""dsm_calib_r0_1""
register "temperature_calib_key" = ""dsm_calib_temp_1""
device i2c 0x3b on end
register "dsm_param_file_name" = ""dsm_param""
register "vmon_slot_no" = "1"
register "imon_slot_no" = "0"
device i2c 0x3b on
probe AUDIO MAX98390_ALC5682I_I2S_4SPK
end
end
chip drivers/i2c/max98390
register "desc" = ""MAX98390 Speaker Amp 2""
@ -196,7 +207,12 @@ chip soc/intel/alderlake
register "name" = ""MXW2""
register "r0_calib_key" = ""dsm_calib_r0_2""
register "temperature_calib_key" = ""dsm_calib_temp_2""
device i2c 0x38 on end
register "dsm_param_file_name" = ""dsm_param_tt""
register "vmon_slot_no" = "2"
register "imon_slot_no" = "3"
device i2c 0x38 on
probe AUDIO MAX98390_ALC5682I_I2S_4SPK
end
end
chip drivers/i2c/max98390
register "desc" = ""MAX98390 Speaker Amp 3""
@ -204,7 +220,12 @@ chip soc/intel/alderlake
register "name" = ""MXW3""
register "r0_calib_key" = ""dsm_calib_r0_3""
register "temperature_calib_key" = ""dsm_calib_temp_3""
device i2c 0x39 on end
register "dsm_param_file_name" = ""dsm_param_tt""
register "vmon_slot_no" = "3"
register "imon_slot_no" = "2"
device i2c 0x39 on
probe AUDIO MAX98390_ALC5682I_I2S_4SPK
end
end
end #I2C0
device ref i2c1 on