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

Commit cf8c2730 authored by Simmi Pateriya's avatar Simmi Pateriya Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm8x16-wcd: send notifier to mbhc for pre PA off event



MBHC acquires a lock in PRE PA turn off event and releases it in
POST PA off event. The codec driver should send the notification
to mbhc for both these events.

Change-Id: I07278cec1d3b29e27deffea02ff30629f796bdd4
Signed-off-by: default avatarSimmi Pateriya <simmip@codeaurora.org>
parent 75d530af
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3542,6 +3542,8 @@ static int msm8x16_wcd_hph_pa_event(struct snd_soc_dapm_widget *w,
			snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_RX_HPH_L_TEST, 0x04, 0x00);
			msm8x16_wcd->mute_mask |= HPHL_PA_DISABLE;
			msm8x16_notifier_call(codec,
					WCD_EVENT_PRE_HPHL_PA_OFF);
		} else if (w->shift == 4) {
			snd_soc_update_bits(codec,
				MSM8X16_WCD_A_CDC_RX2_B6_CTL, 0x01, 0x01);
@@ -3549,6 +3551,8 @@ static int msm8x16_wcd_hph_pa_event(struct snd_soc_dapm_widget *w,
			snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_RX_HPH_R_TEST, 0x04, 0x00);
			msm8x16_wcd->mute_mask |= HPHR_PA_DISABLE;
			msm8x16_notifier_call(codec,
					WCD_EVENT_PRE_HPHR_PA_OFF);
		}
		break;
	case SND_SOC_DAPM_POST_PMD: