Skip to content

Commit 66233e5

Browse files
Shenghao-Dingtiwai
authored andcommitted
ALSA: hda/tas2781: Set tas2781_hda::tasdevice_priv::chip_id as TAS5825 in case of tas5825
The software reset for TAS5825 is different form other chips, as it will set as 0x11 instead of 0x1 during reset in the tasdevice_reset(). So set tas2781_hda::tasdevice_priv::chip_id as TAS5825, tasdevice_reset() can work correctly. Fixes: 7ceb69c ("ASoC: tas2781: Add tas2118, tas2x20, tas5825 support") Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 5ec6f94 commit 66233e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/hda/codecs/side-codecs/tas2781_hda_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ static int tas2781_hda_i2c_probe(struct i2c_client *clt)
669669
*/
670670
device_name = "TXNW5825";
671671
hda_priv->hda_chip_id = HDA_TAS5825;
672+
tas_hda->priv->chip_id = TAS5825;
672673
} else {
673674
return -ENODEV;
674675
}

0 commit comments

Comments
 (0)