]> Gentwo Git Trees - linux/.git/commit
ASoC: cs35l56: Handle vendor-specific UEFI
authorMark Brown <broonie@kernel.org>
Tue, 16 Sep 2025 21:42:25 +0000 (22:42 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 16 Sep 2025 21:42:25 +0000 (22:42 +0100)
commit32bd60d5eca048fb91eed723799c0b4a847c18e4
tree00ef95e2e8b211d3fbee0e39da9acfa4f9af101c
parentc99642913d4c4ab9e8ac73d0241e7b5e3e14fd05
parente5b4ad2183f7ab18aaf7c73a120d17241ee58e97
ASoC: cs35l56: Handle vendor-specific UEFI

Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:

This series adds handling for vendor-specific UEFI variables from Lenovo
and HP. These vendors will switch to using their UEFI variables instead
of the normal Cirrus Logic-defined mechanisms.

The model of speaker fitted (Speaker ID) is normally signaled by a GPIO,
and the driver is given access to this GPIO. Lenovo and HP will both stop
giving the driver access to the GPIO and instead the BIOS will create a
UEFI variable giving the value of the GPIO.

HP will also start using their own UEFI variable to store amp calibration
data. The content of the variable is the same as the Cirrus Logic variable,
only the UEFI name and GUID are changed.

Change in v2:
Removed unused target_uid variable and code that set it in patch 6.

Richard Fitzgerald (6):
  ASoC: cs-amp-lib: Rename defines for Cirrus Logic EFI
  ASoC: cs-amp-lib: Add handling for Lenovo and HP UEFI speaker ID
  ASoC: cs35l56: Check for vendor-specific speaker ID value
  ASoC: cs-amp-lib-test: Add tests for cs_amp_get_vendor_spkid()
  ASoC: cs-amp-lib: Add HP-specific EFI variable for calibration data
  ASoC: cs-amp-lib-test: Add test for getting cal data from HP EFI

 include/sound/cs-amp-lib.h         |   1 +
 sound/soc/codecs/cs-amp-lib-test.c | 252 ++++++++++++++++++++++++++++-
 sound/soc/codecs/cs-amp-lib.c      | 139 +++++++++++++++-
 sound/soc/codecs/cs35l56-shared.c  |  12 +-
 4 files changed, 395 insertions(+), 9 deletions(-)

--
2.39.5