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

Commit 4daa0f88 authored by Bhalchandra Gajare's avatar Bhalchandra Gajare Committed by Stephen Boyd
Browse files

ASoC: WCD9304: Fix register sequence for analog mic recording



Found that the register sequence for enabling recording on analog
microphone was updating a wrong register. Fix by correcting the
register sequence

CRs-fixed: 378189
Change-Id: I3598cbc77b279684b28677943ac13f446bc2f78e
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent f8f44b92
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -848,14 +848,14 @@ static void sitar_codec_enable_adc_block(struct snd_soc_codec *codec,

	if (enable) {
		sitar->adc_count++;
		snd_soc_update_bits(codec, SITAR_A_TX_COM_BIAS, 0xE0, 0xE0);

		snd_soc_update_bits(codec, SITAR_A_CDC_CLK_OTHR_CTL,
				0x02, 0x02);
	} else {
		sitar->adc_count--;
		if (!sitar->adc_count) {
			if (!sitar->mbhc_polling_active)
				snd_soc_update_bits(codec, SITAR_A_TX_COM_BIAS,
					0xE0, 0x0);
				snd_soc_update_bits(codec,
					SITAR_A_CDC_CLK_OTHR_CTL, 0xE0, 0x0);
		}
	}
}