From 1be9f3502c26c07a8da3c77cd8e172b4c87705fc Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 15 May 2023 10:47:15 -0500 Subject: [PATCH] mb/google/volteer: Use FW_CONFIG to determine correct SOF audio profile Use AUDIO PROBE to determine speaker amp config, set SOF driver profile accordingly. TEST=build/boot Win11 on Delbin and Drobit, verify correct audio profile selected, drivers loaded and functional. Change-Id: I13d787cb5ccb74d2774151ccd5deeb45b3364319 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/75232 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Eric Lai --- .../volteer/variants/baseboard/devicetree.cb | 29 ++++++++++++++++++- .../volteer/variants/lindar/overridetree.cb | 6 ---- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb index acb2e3ca79..4af59e6ff1 100644 --- a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb @@ -526,7 +526,34 @@ chip soc/intel/tigerlake register "spkr_tplg" = "max98373" register "jack_tplg" = "rt5682" register "mic_tplg" = "_2ch_pdm0" - device generic 0 on end + device generic 0 on + probe AUDIO MAX98373_ALC5682I_I2S + probe AUDIO MAX98373_ALC5682_SNDW + end + end + chip drivers/sof + register "spkr_tplg" = "max98373_ssp2" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on + probe AUDIO MAX98373_ALC5682I_I2S_UP4 + end + end + chip drivers/sof + register "spkr_tplg" = "max98360a" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on + probe AUDIO MAX98360_ALC5682I_I2S + end + end + chip drivers/sof + register "spkr_tplg" = "rt1011" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on + probe AUDIO RT1011_ALC5682I_I2S + end end end end diff --git a/src/mainboard/google/volteer/variants/lindar/overridetree.cb b/src/mainboard/google/volteer/variants/lindar/overridetree.cb index e543b9fd63..b74bb238cd 100644 --- a/src/mainboard/google/volteer/variants/lindar/overridetree.cb +++ b/src/mainboard/google/volteer/variants/lindar/overridetree.cb @@ -276,12 +276,6 @@ chip soc/intel/tigerlake probe AUDIO MAX98373_ALC5682I_I2S_UP4 probe AUDIO MAX98360_ALC5682I_I2S probe AUDIO RT1011_ALC5682I_I2S - chip drivers/sof - register "spkr_tplg" = "rt1011" - register "jack_tplg" = "rt5682" - register "mic_tplg" = "_2ch_pdm0" - device generic 0 on end - end end device ref pcie_rp9 on chip soc/intel/common/block/pcie/rtd3