]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: cs-amp-lib: Add handling for Lenovo and HP UEFI speaker ID
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 9 Sep 2025 11:30:35 +0000 (12:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 9 Sep 2025 11:42:06 +0000 (12:42 +0100)
commit267b9cdee522d03f95acf7c77de91056a4e004b3
treec2ec689c11a10ccbc7cc5f1048340b0f2814d586
parent89ace3acf013eebb299290f41b4ac34bf6c62a10
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>
include/sound/cs-amp-lib.h
sound/soc/codecs/cs-amp-lib.c