Skip to content

Commit 4e9a429

Browse files
Roy Chateaubroonie
authored andcommitted
ASoC: codecs: tas2780: Fix log of failed reset via I2C.
Correctly log failures of reset via I2C. Signed-off-by: Roy Chateau <roy.chateau@mep-info.com> Link: https://lore.kernel.org/r/20231013110239.473123-1-roy.chateau@mep-info.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f88dfbf commit 4e9a429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/tas2780.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void tas2780_reset(struct tas2780_priv *tas2780)
3939
usleep_range(2000, 2050);
4040
}
4141

42-
snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
42+
ret = snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
4343
TAS2780_RST);
4444
if (ret)
4545
dev_err(tas2780->dev, "%s:errCode:0x%x Reset error!\n",

0 commit comments

Comments
 (0)