Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: tas2781: Correct the wrong chip ID for reset variable check

The new variable of reset was added for TAS58XX on TAS5825 first.
And TAS5802/5815... was added later, so this reset variable check
should be changed to lowest chip of TAS58XX.

Fixes: 53a3c6e22283 ("ASoC: tas2781: Support more newly-released amplifiers tas58xx in the driver")
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20251124031542.2793-1-baojun.xu@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Baojun Xu and committed by
Mark Brown
34b78ddd a3d8f733

+1 -1
+1 -1
sound/soc/codecs/tas2781-comlib-i2c.c
··· 320 320 for (i = 0; i < tas_dev->ndev; i++) { 321 321 ret = tasdevice_dev_write(tas_dev, i, 322 322 TASDEVICE_REG_SWRESET, 323 - tas_dev->chip_id >= TAS5825 ? 323 + tas_dev->chip_id >= TAS5802 ? 324 324 TAS5825_REG_SWRESET_RESET : 325 325 TASDEVICE_REG_SWRESET_RESET); 326 326 if (ret < 0)