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

Commit a1f7798a authored by Yeleswarapu, Nagaradhesh's avatar Yeleswarapu, Nagaradhesh
Browse files

ASoC: msm8x10-wcd:Setup the codec to detect OCP on Headphones



Setup the codec to detect OCP on Left and Right Headphones

CRs-fixed: 552734
Change-Id: Iba3b2cb250f7ededb10fce5c34f6178bd2cb37c2
Signed-off-by: default avatarYeleswarapu, Nagaradhesh <nagaradh@codeaurora.org>
parent 1acf35fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2582,6 +2582,8 @@ static const struct msm8x10_wcd_reg_mask_val
	 */
	{MSM8X10_WCD_A_RX_HPH_OCP_CTL, 0xE1, 0x61},
	{MSM8X10_WCD_A_RX_COM_OCP_COUNT, 0xFF, 0xFF},
	{MSM8X10_WCD_A_RX_HPH_L_TEST, 0x01, 0x01},
	{MSM8X10_WCD_A_RX_HPH_R_TEST, 0x01, 0x01},

	/* Initialize gain registers to use register gain */
	{MSM8X10_WCD_A_RX_HPH_L_GAIN, 0x20, 0x20},