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 <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75232
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Matt DeVillier 2023-05-15 10:47:15 -05:00 committed by Felix Held
parent e29b770d83
commit 1be9f3502c
2 changed files with 28 additions and 7 deletions

View File

@ -526,7 +526,34 @@ chip soc/intel/tigerlake
register "spkr_tplg" = "max98373" register "spkr_tplg" = "max98373"
register "jack_tplg" = "rt5682" register "jack_tplg" = "rt5682"
register "mic_tplg" = "_2ch_pdm0" 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 end
end end

View File

@ -276,12 +276,6 @@ chip soc/intel/tigerlake
probe AUDIO MAX98373_ALC5682I_I2S_UP4 probe AUDIO MAX98373_ALC5682I_I2S_UP4
probe AUDIO MAX98360_ALC5682I_I2S probe AUDIO MAX98360_ALC5682I_I2S
probe AUDIO RT1011_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 end
device ref pcie_rp9 on device ref pcie_rp9 on
chip soc/intel/common/block/pcie/rtd3 chip soc/intel/common/block/pcie/rtd3