mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
ASoC: wcd937x: Enable hph OCP
Update registers to enable OCP for HPHL and HPHR. CRs-Fixed: 2321013 Change-Id: I51a872981ee2dc435757152b9122067944d13924 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
ffb86ea061
commit
204f59cd14
1 changed files with 4 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ static int wcd937x_init_reg(struct snd_soc_codec *codec)
|
|||
snd_soc_update_bits(codec, WCD937X_ANA_BIAS, 0x40, 0x40);
|
||||
usleep_range(10000, 10010);
|
||||
snd_soc_update_bits(codec, WCD937X_ANA_BIAS, 0x40, 0x00);
|
||||
snd_soc_update_bits(codec, WCD937X_HPH_OCP_CTL, 0xFF, 0x3A);
|
||||
snd_soc_update_bits(codec, WCD937X_RX_OCP_CTL, 0x0F, 0x02);
|
||||
snd_soc_update_bits(codec, WCD937X_HPH_R_TEST, 0x01, 0x01);
|
||||
snd_soc_update_bits(codec, WCD937X_HPH_L_TEST, 0x01, 0x01);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue