Skip to content

Commit

Permalink
ASoC: Bail out of wm_hubs DC servo if calibration fails
Browse files Browse the repository at this point in the history
We're keeping track of the number of times we've iterated but never
actually using this to bail out if the chip looks stuck.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Mar 19, 2010
1 parent fdb6b1e commit 6937c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm_hubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec)
msleep(1);
reg = snd_soc_read(codec, WM8993_DC_SERVO_READBACK_0);
dev_dbg(codec->dev, "DC servo: %x\n", reg);
} while (reg & WM8993_DCS_DATAPATH_BUSY);
} while (reg & WM8993_DCS_DATAPATH_BUSY && count < 400);

if (reg & WM8993_DCS_DATAPATH_BUSY)
dev_err(codec->dev, "Timed out waiting for DC Servo\n");
Expand Down

0 comments on commit 6937c94

Please sign in to comment.