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

Commit 36b35818 authored by Aviral Gupta's avatar Aviral Gupta
Browse files

ASoC: mbhc: fix the no audio issue in the voice call



The headset removal during the voice call causes the master bias to be
turned down impairing the speaker functionality.
Fix by removing the disable sequence of the MASTER_BIAS
during the headset plugout.

CRs-Fixed: 684711
Change-Id: I8ba382549f7efb08bda9412d0c401a9e7d78915d
Signed-off-by: default avatarAviral Gupta <aviralg@codeaurora.org>
parent c0439e6a
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -872,10 +872,6 @@ static void wcd_mbhc_swch_irq_handler(struct wcd_mbhc *mbhc)
		snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_MBHC_FSM_CTL,
				0xB0, 0x00);
		/* Make sure MASTER_BIAS_CTL is enabled */
		snd_soc_update_bits(codec,
				    MSM8X16_WCD_A_ANALOG_MASTER_BIAS_CTL,
				    0x30, 0x00);
		if (mbhc->current_plug == MBHC_PLUG_TYPE_HEADPHONE) {
			wcd_mbhc_report_plug(mbhc, 0, SND_JACK_HEADPHONE);
			mbhc->btn_press_intr = false;
@@ -904,10 +900,6 @@ static void wcd_mbhc_swch_irq_handler(struct wcd_mbhc *mbhc)
		snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_MBHC_FSM_CTL,
				0xB0, 0x00);
		/* Make sure MASTER_BIAS_CTL is enabled */
		snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_MASTER_BIAS_CTL,
				0x30, 0x00);
	}

	mbhc->in_swch_irq_handler = false;