diff options
| author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2025-09-09 12:30:35 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-09-09 12:42:06 +0100 |
| commit | 267b9cdee522d03f95acf7c77de91056a4e004b3 (patch) | |
| tree | c2ec689c11a10ccbc7cc5f1048340b0f2814d586 /include/sound | |
| parent | 89ace3acf013eebb299290f41b4ac34bf6c62a10 (diff) | |
| download | linux-267b9cdee522d03f95acf7c77de91056a4e004b3.tar.gz | |
ASoC: cs-amp-lib: Add handling for Lenovo and HP UEFI speaker ID
Add handling of the Lenovo-specific and HP-specific EFI variables for
speaker ID.
Future Lenovo and HP models will not give the codec driver access to the
speaker detect GPIO. Instead, the BIOS will read the GPIO and create an
EFI variable with a value indicating the state of the GPIO.
The Lenovo and HP EFI variables are both defined to have only two valid
values. But the variable name, GUID and values are different.
This adds a new exported function cs_amp_get_vendor_spkid().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Message-ID: <20250909113039.922065-3-rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
| -rw-r--r-- | include/sound/cs-amp-lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/cs-amp-lib.h b/include/sound/cs-amp-lib.h index 5459c221badfed..43a87a39110c0c 100644 --- a/include/sound/cs-amp-lib.h +++ b/include/sound/cs-amp-lib.h @@ -49,6 +49,7 @@ int cs_amp_write_cal_coeffs(struct cs_dsp *dsp, const struct cirrus_amp_cal_data *data); int cs_amp_get_efi_calibration_data(struct device *dev, u64 target_uid, int amp_index, struct cirrus_amp_cal_data *out_data); +int cs_amp_get_vendor_spkid(struct device *dev); struct cs_amp_test_hooks { efi_status_t (*get_efi_variable)(efi_char16_t *name, |
