ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI...
authorShenghao Ding <shenghao-ding@ti.com>
Thu, 22 May 2025 01:43:47 +0000 (09:43 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 May 2025 07:09:40 +0000 (09:09 +0200)
commit4fe238513407d83f38bf5782e8bcdd7b8baeb85d
treef9293074ef29fcda41fb7ad9a828a0438db691c5
parentc597ce56e9078c6fc27e44470e4c699bac2d3027
ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib

Calibration data getting function for SPI and I2C HDA drivers are almost
same, which read the calibration data from UEFI. To put them into
tas2781_hda lib for code cleanup is more reasonable than to still keep
them in the codec driver. For tas2781 codec driver, there're two different
sources for calibrated data, one is from bin file, generated in factory
test, requested and read in codec driver side; the other is from user
space during device bootup.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20250522014347.1163-1-shenghao-ding@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/tas2781.h
sound/pci/hda/tas2781_hda.c
sound/pci/hda/tas2781_hda.h
sound/pci/hda/tas2781_hda_i2c.c
sound/pci/hda/tas2781_hda_spi.c
sound/soc/codecs/tas2781-comlib.c