Skip to content

Commit

Permalink
ASoC: wm9081: Fix setting soft VMID ramp enable with VMID 2*240k
Browse files Browse the repository at this point in the history
According to the datasheet:
BIT 2:1
        VMID_SEL[1:0] VMID Divider Enable and Select
        00 = VMID disabled
        01 = 2x40k Omh divider
        10 = 2x240k Omh divider
        11 = 2x5k Omh divider

To set VMID 2*240k, we should OR reg with 0x04 instead of 0x40.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
AxelLin authored and broonie committed Oct 20, 2011
1 parent 24441e1 commit 9f9619a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm9081.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ static int wm9081_set_bias_level(struct snd_soc_codec *codec,
/* VMID 2*240k */
reg = snd_soc_read(codec, WM9081_BIAS_CONTROL_1);
reg &= ~WM9081_VMID_SEL_MASK;
reg |= 0x40;
reg |= 0x04;
snd_soc_write(codec, WM9081_VMID_CONTROL, reg);

/* Standby bias current on */
Expand Down

0 comments on commit 9f9619a

Please sign in to comment.