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

Commit cf457668 authored by Aviral Gupta's avatar Aviral Gupta
Browse files

ASoC: msm8x16-wcd: fix the no audio on speaker post SSR



On triggering the SSR the audio was not heard on the speaker for the
pmic 2.0 hardware.
For the pmic 2.0 hardware the register set which gets initialized post SSR
didn't have the speaker DAC ctl register hence the whole chain in the DAPM
was not established leading to no audio.
Fix by updating the array of the default registers for the 2.0 hardware.

CRs-Fixed: 679797
Change-Id: If11c7e9e573d878710d59f2f2294a0a039eb8dcc
Signed-off-by: default avatarAviral Gupta <aviralg@codeaurora.org>
parent f3406196
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2929,6 +2929,7 @@ static const struct msm8x16_wcd_reg_mask_val msm8x16_wcd_reg_defaults_2_0[] = {
	MSM8X16_WCD_REG_VAL(MSM8X16_WCD_A_ANALOG_SLOPE_COMP_IP_ZERO, 0x88),
	MSM8X16_WCD_REG_VAL(MSM8X16_WCD_A_ANALOG_PERPH_RESET_CTL3, 0x0F),
	MSM8X16_WCD_REG_VAL(MSM8X16_WCD_A_ANALOG_CURRENT_LIMIT, 0x82),
	MSM8X16_WCD_REG_VAL(MSM8X16_WCD_A_ANALOG_SPKR_DAC_CTL, 0x03),
};

static void msm8x16_wcd_update_reg_defaults(struct snd_soc_codec *codec)