]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: hda/tas2781: Fix device-0 reset issue and handle -EXDEV in block data processing
authorBaojun Xu <baojun.xu@ti.com>
Tue, 9 Jun 2026 10:52:53 +0000 (18:52 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2026 07:24:23 +0000 (09:24 +0200)
commit513480da5e9c8f55b4f8f5e89f386e26188fbb3f
tree996eef9835f747d5c93e4b7663a686cb27a40f00
parent853e10ec445984e99b3c7f6375f4e185614b842a
ALSA: hda/tas2781: Fix device-0 reset issue and handle -EXDEV in block data processing

Fix reset for device-0:‌ In older projects (e.g., Merino), the hardware
reset pin for the first SPI device (device-0) is ineffective, causing
initialization failures. Added a software reset sequence for device-0
to ensure proper initialization.

‌Handle -EXDEV correctly:‌ When processing block data, if the data does
not belong to the current SPI device, the driver returned -EXDEV.
This error code is now ignored to allow the driver to continue iterating
through the block data and correctly calculate the total block size.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20260609105253.19510-1-baojun.xu@ti.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/codecs/side-codecs/tas2781_hda_spi.c
sound/soc/codecs/tas2781-fmwlib.c