summaryrefslogtreecommitdiff
path: root/sound/hda
diff options
context:
space:
mode:
authorBaojun Xu <baojun.xu@ti.com>2026-04-18 13:50:30 +0800
committerTakashi Iwai <tiwai@suse.de>2026-04-20 17:59:19 +0200
commit93985110329d9a66101c3de37aa7232f8c0bc3c9 (patch)
treee021c4f765cc6ca1a1601835bada24333a248f78 /sound/hda
parent8a7be65e7e9a95c7776f997b50a4893c9315e710 (diff)
downloadlwn-93985110329d9a66101c3de37aa7232f8c0bc3c9.tar.gz
lwn-93985110329d9a66101c3de37aa7232f8c0bc3c9.zip
ALSA: hda/tas2781: Fix sound abnormal issue on some SPI device
In the SPI driver probe, the chip ID must be set to TAS2781. Without this initialization, calibration data fails to load correctly, causing audio abnormalities on some devices. And update the register bulk read API to handle the distinct requirements of SPI and I2C devices. Fixes: 05ac3846ffe5 ("ALSA: hda/tas2781: A workaround solution to lower-vol issue among lower calibrated-impedance micro-speaker on TAS2781") Signed-off-by: Baojun Xu <baojun.xu@ti.com> Link: https://patch.msgid.link/20260418055030.765-1-baojun.xu@ti.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r--sound/hda/codecs/side-codecs/tas2781_hda_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/hda/codecs/side-codecs/tas2781_hda_spi.c b/sound/hda/codecs/side-codecs/tas2781_hda_spi.c
index f860e0eb7602..560f2385212d 100644
--- a/sound/hda/codecs/side-codecs/tas2781_hda_spi.c
+++ b/sound/hda/codecs/side-codecs/tas2781_hda_spi.c
@@ -788,6 +788,7 @@ static int tas2781_hda_spi_probe(struct spi_device *spi)
}
if (strstr(dev_name(&spi->dev), "TXNW2781")) {
device_name = "TXNW2781";
+ tas_hda->priv->chip_id = TAS2781;
} else {
dev_err(tas_priv->dev, "Unmatched spi dev %s\n",
dev_name(&spi->dev));