summaryrefslogtreecommitdiff
path: root/src/vendorcode/google/Kconfig
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-01-17 13:51:29 -0600
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-05-05 15:38:53 +0000
commit1db8c57470f373787448d8fb8961b0dc1208a953 (patch)
tree0671fc7de6fef5690a199b524a59d5bf04d5f7cb /src/vendorcode/google/Kconfig
parentb78e4620375cc5668db668d900340fd89271c330 (diff)
vc/google: Decouple DSM_CALIB from CHROMEOS
DSM (Dynamic Speaker Management) uses calibration parameters stored in a VPD (Vital Product Data) FMAP region to configure the audio output via an ACPI _DSD table. This has no dependency on a ChromeOS, and can be used by Linux/Windows drivers if appropriately configured. Remove the dependency of DSM_CALIB (and the calibration file) on CHROMEOS and replace it with VPD, so that non-CHROMEOS builds can utilize this feature as well. Move files from underneath vc/google/chromeos to underscore the point. TEST=build/boot google/nightfury, dump ACPI, verify DSM calibraton parameters present in _DSD table. Change-Id: I643b3581bcc662befc9e30736dae806f94b055af Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74812 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: CoolStar <coolstarorganization@gmail.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/vendorcode/google/Kconfig')
-rw-r--r--src/vendorcode/google/Kconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/vendorcode/google/Kconfig b/src/vendorcode/google/Kconfig
index 60c0c228a7..796f8b4089 100644
--- a/src/vendorcode/google/Kconfig
+++ b/src/vendorcode/google/Kconfig
@@ -9,3 +9,22 @@ config GOOGLE_SMBIOS_MAINBOARD_VERSION
help
Provide a common implementation for mainboard version,
which returns a formatted 'rev%d' board_id() string.
+
+config GOOGLE_DSM_CALIB
+ bool
+ default n
+ depends on VPD
+ help
+ On some boards, there are calibrated parameters for Dynamic Speaker Management(DSM)
+ stored in VPD. Enable this config to read and parse these VPD values and write them
+ to ACPI DSD table in device driver. These parameters will be applied by kernel driver
+ through device property at boot.
+
+config GOOGLE_DSM_PARAM_FILE_NAME
+ bool
+ default n
+ depends on GOOGLE_DSM_CALIB
+ help
+ On some boards, there are different dsm parameter files for Dynamic Speaker
+ Management (DSM). Enable this config to assign dsm parameters file name in ACPI
+ SSDT table. Kernel driver uses this to load the DSM parameter file.