Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32cbfc7e authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

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: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 65696941
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -8830,6 +8830,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[] = {
static const struct tasha_reg_mask_val tasha_codec_reg_init_val_2_0[] = {
	{WCD9335_RX_BIAS_FLYB_MID_RST, 0xF0, 0x10},
	{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[] = {
static const struct tasha_reg_mask_val tasha_codec_reg_defaults[] = {