ALSA: hda/tas2781: Remove tas2781_spi_fwlib.c and leverage SND_SOC_TAS2781_FMWLIB
authorShenghao Ding <shenghao-ding@ti.com>
Tue, 29 Apr 2025 11:10:54 +0000 (19:10 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Apr 2025 05:36:25 +0000 (07:36 +0200)
commit9fa6a693ad8dc0cd34833632883767083b8fc1f5
tree200bf7fcff167df6d04694646e8f3e8db8d456a2
parent849c83fe49912f7b2c9ee2fe64dc06e0fb81d91d
ALSA: hda/tas2781: Remove tas2781_spi_fwlib.c and leverage SND_SOC_TAS2781_FMWLIB

Most codes in tas2781_spi_fwlib.c are same as tas2781-fmwlib.c, mainly for
firmware parsing, only differece is the register reading, bit update and
book switching in i2c and spi. The main purpose of this patch is for code
cleaup and arrange the shared part for i2c and spi.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250429111055.567-1-shenghao-ding@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 files changed:
include/sound/tas2781-comlib-i2c.h [new file with mode: 0644]
include/sound/tas2781.h
sound/pci/hda/Kconfig
sound/pci/hda/Makefile
sound/pci/hda/tas2781-spi.h [deleted file]
sound/pci/hda/tas2781_hda.h
sound/pci/hda/tas2781_hda_i2c.c
sound/pci/hda/tas2781_hda_spi.c
sound/pci/hda/tas2781_spi_fwlib.c [deleted file]
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/tas2781-comlib-i2c.c [new file with mode: 0644]
sound/soc/codecs/tas2781-comlib.c
sound/soc/codecs/tas2781-fmwlib.c
sound/soc/codecs/tas2781-i2c.c