[PATCH 0/9] ALSA: cs35l56: Apply calibration from EFI

From: Richard Fitzgerald
Date: Wed Feb 21 2024 - 10:05:34 EST


Factory calibration of the speakers stores the calibration information
into an EFI variable.

This set of patches adds support for applying speaker calibration
data from that EFI variable.

Patch #1 and #2 are bugfixes that are prerequisites.

The HDA patches #7 and #8 depend on the ASoC patches.

Patch #9 is a KUnit test for the new cs-amp-lib library.

Richard Fitzgerald (8):
ASoC: wm_adsp: Fix missing mutex_lock in wm_adsp_write_ctl()
ASoC: wm_adsp: Add wm_adsp_start() and wm_adsp_stop()
ASoC: cs-amp-lib: Add helpers for factory calibration data
ASoC: cs35l56: Add helper functions for amp calibration
ASoC: cs35l56: Apply amp calibration from EFI data
ALSA: hda: hda_cs_dsp_ctl: Add helper function to write calibration
ALSA: hda: cs35l56: Apply amp calibration from EFI data
ASoC: cs-amp-lib: Add KUnit test for calibration helpers

Simon Trimmer (1):
ALSA: hda: hda_cs_dsp_ctl: Only call notify when a control has been
added to a card

include/sound/cs-amp-lib.h | 66 +++
include/sound/cs35l56.h | 10 +
sound/pci/hda/Kconfig | 2 +
sound/pci/hda/cs35l56_hda.c | 36 +-
sound/pci/hda/hda_cs_dsp_ctl.c | 52 ++-
sound/pci/hda/hda_cs_dsp_ctl.h | 4 +
sound/soc/codecs/Kconfig | 18 +
sound/soc/codecs/Makefile | 4 +
sound/soc/codecs/cs-amp-lib-test.c | 709 +++++++++++++++++++++++++++++
sound/soc/codecs/cs-amp-lib.c | 270 +++++++++++
sound/soc/codecs/cs35l56-sdw.c | 20 +
sound/soc/codecs/cs35l56-shared.c | 83 ++++
sound/soc/codecs/cs35l56.c | 43 +-
sound/soc/codecs/wm_adsp.c | 30 +-
sound/soc/codecs/wm_adsp.h | 2 +
15 files changed, 1328 insertions(+), 21 deletions(-)
create mode 100644 include/sound/cs-amp-lib.h
create mode 100644 sound/soc/codecs/cs-amp-lib-test.c
create mode 100644 sound/soc/codecs/cs-amp-lib.c

--
2.30.2