ASoC: wm8737: Fixup setting VMID Impedance control register
authorAxel Lin <axel.lin@ingics.com>
Sun, 10 May 2015 03:35:06 +0000 (11:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:44 +0000 (09:29 -0700)
commitea38800f911256ee729b718ba4080ba1c045ddd5
tree0e8a8c71e817ecef31d3fd65ca95d46b4ccb7b32
parent81afd3a2f3bfd22a96a2229b8f091e072b78c0ba
ASoC: wm8737: Fixup setting VMID Impedance control register

commit 14ba3ec1de043260cecd9e828ea2e3a0ad302893 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm8737.c