Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189593
b: refs/heads/master
c: ae9d860
h: refs/heads/master
i:
  189591: 6eaa13c
v: v3
  • Loading branch information
Mark Brown committed Apr 5, 2010
1 parent 43ead01 commit 75e2d80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8437f7006b9cfa249791e2fd57596683d4561843
refs/heads/master: ae9d8607fe24253efc9f14b696f51cfd683801be
6 changes: 6 additions & 0 deletions trunk/sound/soc/codecs/wm_hubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,16 @@ static int wm8993_put_dc_servo(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
struct wm_hubs_data *hubs = codec->private_data;
int ret;

ret = snd_soc_put_volsw_2r(kcontrol, ucontrol);

/* If we're applying an offset correction then updating the
* callibration would be likely to introduce further offsets. */
if (hubs->dcs_codes)
return ret;

/* Only need to do this if the outputs are active */
if (snd_soc_read(codec, WM8993_POWER_MANAGEMENT_1)
& (WM8993_HPOUT1L_ENA | WM8993_HPOUT1R_ENA))
Expand Down

0 comments on commit 75e2d80

Please sign in to comment.