Skip to content

Commit

Permalink
ASoC: Check for errors when writing WM8731 reset register
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 18, 2009
1 parent 6bab83f commit 519cf2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sound/soc/codecs/wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,14 @@ static int wm8731_register(struct wm8731_priv *wm8731)

memcpy(codec->reg_cache, wm8731_reg, sizeof(wm8731_reg));

ret = wm8731_reset(codec);
if (ret < 0) {
dev_err(codec->dev, "Failed to issue reset\n");
return ret;
}

wm8731_dai.dev = codec->dev;

wm8731_reset(codec);
wm8731_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

/* Latch the update bits */
Expand Down

0 comments on commit 519cf2d

Please sign in to comment.