Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270578
b: refs/heads/master
c: f998f25
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Sep 15, 2011
1 parent 28d9062 commit ab47642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7803e329bb8357afe94e8e5c3f78478d6a98d1b5
refs/heads/master: f998f257c92216df314610dd5aebc5f5d23e6ec0
9 changes: 3 additions & 6 deletions trunk/sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, u16 mask)
{
struct i2c_client *i2c = to_i2c_client(codec->dev);
struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec);
int i, ret;
int ret;
unsigned long timeout = 200;

snd_soc_write(codec, WM8996_DC_SERVO_2, mask);
Expand All @@ -734,15 +734,12 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, u16 mask)

} else {
msleep(1);
if (--i) {
timeout = 0;
break;
}
timeout--;
}

ret = snd_soc_read(codec, WM8996_DC_SERVO_2);
dev_dbg(codec->dev, "DC servo state: %x\n", ret);
} while (ret & mask);
} while (timeout && ret & mask);

if (timeout == 0)
dev_err(codec->dev, "DC servo timed out for %x\n", mask);
Expand Down

0 comments on commit ab47642

Please sign in to comment.