mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ASoC: wcd9335: Enable headphone OCP for wcd9335 v2.0
WCD9335 codec version 2.0 has support for detecting over current in headphones path and shuts the headphone PAs whenever over current is detected. Add support to enable OCP (over current protection) for headphone path. Change-Id: Iabad301bb8a926bfdef437754b13ba583dd315d7 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
parent
d636ebbd41
commit
283edd45f4
1 changed files with 3 additions and 0 deletions
|
@ -8954,6 +8954,9 @@ static const struct tasha_reg_mask_val tasha_codec_reg_init_val_1_0[] = {
|
|||
|
||||
static const struct tasha_reg_mask_val tasha_codec_reg_init_val_2_0[] = {
|
||||
{WCD9335_RX_BIAS_FLYB_MID_RST, 0xF0, 0x10},
|
||||
{WCD9335_HPH_OCP_CTL, 0xFF, 0x52},
|
||||
{WCD9335_HPH_L_TEST, 0x01, 0x01},
|
||||
{WCD9335_HPH_R_TEST, 0x01, 0x01},
|
||||
};
|
||||
|
||||
static const struct tasha_reg_mask_val tasha_codec_reg_defaults[] = {
|
||||
|
|
Loading…
Reference in a new issue