ASoC: cs35l56: Add helper functions for amp calibration
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 23 Feb 2024 15:39:07 +0000 (15:39 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 23 Feb 2024 17:21:40 +0000 (17:21 +0000)
commite1830f66f6c62d288d2c27a7ed18ab93caa0b253
treedddd5be2a60b6c980fe3fce129caeb79a0eda4a3
parent1cad8725f2b98965ed3658bc917090b30adb14fa
ASoC: cs35l56: Add helper functions for amp calibration

Adds some helper functions and data for applying amp calibration.

1. cs35l56_read_silicon_uid() to get the silicon ID that is used to
   search for the correct calibration data entry.

2. Add the registers for the silicon ID to the readable registers.

3. cs35l56_get_calibration() wrapper around
   cs_amp_get_efi_calibration_data()

4. cs35l56_calibration_controls() table of the firmware controls
   for calibration data.

5. Added members to struct cs35l56_base to store the calibration
   data.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240223153910.2063698-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l56.h
sound/soc/codecs/Kconfig
sound/soc/codecs/cs35l56-shared.c