Skip to content

Commit

Permalink
ASoC: codecs: tas2780: Fix log of failed reset via I2C.
Browse files Browse the repository at this point in the history
[ Upstream commit 4e9a429 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Roy Chateau authored and gregkh committed Nov 8, 2023
1 parent 4dd6253 commit 652d60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tas2780.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void tas2780_reset(struct tas2780_priv *tas2780)
usleep_range(2000, 2050);
}

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

0 comments on commit 652d60e

Please sign in to comment.