ALSA: hda: cs35l41: Use shared cs-amp-lib to apply calibration
authorStefan Binding <sbinding@opensource.cirrus.com>
Thu, 11 Apr 2024 11:08:11 +0000 (12:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2024 06:43:19 +0000 (08:43 +0200)
commit068fc7f326c68dd80c428d2fb3eaebf36cdf2115
treedc532a7229e1f854f3132d801735044dbd748084
parentb627054837174518a9856ccdbda55ce6c7184f2d
ALSA: hda: cs35l41: Use shared cs-amp-lib to apply calibration

The original mechanism for applying calibration assumed that the
calibration data would be ordered the same as the amp instances.
However, for some 4 amp laptops, this is not the case.
To ensure that the correct calibration is applied to the correct amp,
the calibration data contains a unique id, which matches a unique id
inside the CS35L41. This can be used to match to the correct data
entry. This mechanism is available inside the shared module cs-amp-lib.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20240411110813.330483-6-sbinding@opensource.cirrus.com>
sound/pci/hda/Kconfig
sound/pci/hda/cs35l41_hda.c
sound/pci/hda/cs35l41_hda.h