Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230297
b: refs/heads/master
c: 11cef5f
h: refs/heads/master
i:
  230295: 1a17f25
v: v3
  • Loading branch information
Mark Brown committed Nov 27, 2010
1 parent 8032522 commit c634d09
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 4b666729010cbf315c9099b956b193df8edc6753
refs/heads/master: 11cef5f07ba0e925af432fc3229fb87585ccccf0
20 changes: 14 additions & 6 deletions trunk/sound/soc/codecs/wm_hubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,20 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
return;
}

/* Set for 32 series updates */
snd_soc_update_bits(codec, WM8993_DC_SERVO_1,
WM8993_DCS_SERIES_NO_01_MASK,
32 << WM8993_DCS_SERIES_NO_01_SHIFT);
wait_for_dc_servo(codec,
WM8993_DCS_TRIG_SERIES_0 | WM8993_DCS_TRIG_SERIES_1);
/* Devices not using a DCS code correction have startup mode */
if (hubs->dcs_codes) {
/* Set for 32 series updates */
snd_soc_update_bits(codec, WM8993_DC_SERVO_1,
WM8993_DCS_SERIES_NO_01_MASK,
32 << WM8993_DCS_SERIES_NO_01_SHIFT);
wait_for_dc_servo(codec,
WM8993_DCS_TRIG_SERIES_0 |
WM8993_DCS_TRIG_SERIES_1);
} else {
wait_for_dc_servo(codec,
WM8993_DCS_TRIG_STARTUP_0 |
WM8993_DCS_TRIG_STARTUP_1);
}

/* Different chips in the family support different readback
* methods.
Expand Down

0 comments on commit c634d09

Please sign in to comment.