diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-05-09 23:35:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-13 07:49:06 -0400 |
commit | 14ba3ec1de043260cecd9e828ea2e3a0ad302893 (patch) | |
tree | 9c5bbcac060dcb1df2683dd485dce6f9b6de3161 | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
ASoC: wm8737: Fixup setting VMID Impedance control register
According to the datasheet:
R10 (0Ah) VMID Impedance Control
BIT 3:2 VMIDSEL DEFAULT 00
DESCRIPTION: VMID impedance selection control
00: 75kΩ output
01: 300kΩ output
10: 2.5kΩ output
WM8737_VMIDSEL_MASK is 0xC (VMIDSEL - [3:2]),
so it needs to left shift WM8737_VMIDSEL_SHIFT bits for setting these bits.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
-rw-r--r-- | sound/soc/codecs/wm8737.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8737.c b/sound/soc/codecs/wm8737.c index ada9ac1ba2c6..51171e457fa4 100644 --- a/sound/soc/codecs/wm8737.c +++ b/sound/soc/codecs/wm8737.c | |||
@@ -483,7 +483,8 @@ static int wm8737_set_bias_level(struct snd_soc_codec *codec, | |||
483 | 483 | ||
484 | /* Fast VMID ramp at 2*2.5k */ | 484 | /* Fast VMID ramp at 2*2.5k */ |
485 | snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, | 485 | snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, |
486 | WM8737_VMIDSEL_MASK, 0x4); | 486 | WM8737_VMIDSEL_MASK, |
487 | 2 << WM8737_VMIDSEL_SHIFT); | ||
487 | 488 | ||
488 | /* Bring VMID up */ | 489 | /* Bring VMID up */ |
489 | snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, | 490 | snd_soc_update_bits(codec, WM8737_POWER_MANAGEMENT, |
@@ -497,7 +498,8 @@ static int wm8737_set_bias_level(struct snd_soc_codec *codec, | |||
497 | 498 | ||
498 | /* VMID at 2*300k */ | 499 | /* VMID at 2*300k */ |
499 | snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, | 500 | snd_soc_update_bits(codec, WM8737_MISC_BIAS_CONTROL, |
500 | WM8737_VMIDSEL_MASK, 2); | 501 | WM8737_VMIDSEL_MASK, |
502 | 1 << WM8737_VMIDSEL_SHIFT); | ||
501 | 503 | ||
502 | break; | 504 | break; |
503 | 505 | ||