Unverified Commit 34b78ddd authored by Baojun Xu's avatar Baojun Xu Committed by Mark Brown
Browse files

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: 53a3c6e2 ("ASoC: tas2781: Support more newly-released amplifiers tas58xx in the driver")
Signed-off-by: default avatarBaojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20251124031542.2793-1-baojun.xu@ti.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a3d8f733
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ void tasdevice_reset(struct tasdevice_priv *tas_dev)
		for (i = 0; i < tas_dev->ndev; i++) {
			ret = tasdevice_dev_write(tas_dev, i,
				TASDEVICE_REG_SWRESET,
				tas_dev->chip_id >= TAS5825 ?
				tas_dev->chip_id >= TAS5802 ?
				TAS5825_REG_SWRESET_RESET :
				TASDEVICE_REG_SWRESET_RESET);
			if (ret < 0)