Skip to content

Commit

Permalink
ASoC: wm9081: Fix reading wrong register for setting VMID 2*240k
Browse files Browse the repository at this point in the history
VMID Divider Enable and Select is controlled by BIT[2:1] of WM9081_VMID_CONTROL
register (04h).
Current code reads wrong register (WM9081_BIAS_CONTROL_1) for setting
VMID 2*240k.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 8, 2011
1 parent 1dd6c07 commit f1e1035
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 @@ -818,7 +818,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 = snd_soc_read(codec, WM9081_VMID_CONTROL);
reg &= ~WM9081_VMID_SEL_MASK;
reg |= 0x04;
snd_soc_write(codec, WM9081_VMID_CONTROL, reg);
Expand Down

0 comments on commit f1e1035

Please sign in to comment.