Skip to content

Commit

Permalink
ASoC: AIC23: Fixing writes to non-existing registers in resume function
Browse files Browse the repository at this point in the history
Commit e9ff5eb (Fixing infinite loop in resume path) uses wrong AIC23
register in resume function because of which register writes happen
on some non-existing registers.

Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Anuj Aggarwal authored and Mark Brown committed Jan 29, 2010
1 parent 40aa703 commit 3e59aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tlv320aic23.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ static int tlv320aic23_resume(struct platform_device *pdev)
u16 reg;

/* Sync reg_cache with the hardware */
for (reg = 0; reg < TLV320AIC23_RESET; reg++) {
for (reg = 0; reg <= TLV320AIC23_ACTIVE; reg++) {
u16 val = tlv320aic23_read_reg_cache(codec, reg);
tlv320aic23_write(codec, reg, val);
}
Expand Down

0 comments on commit 3e59aaa

Please sign in to comment.