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

Commit 89102e2e authored by Walter Yang's avatar Walter Yang
Browse files

ASoC: wcd: Add the new widget to enable external micbias2



8916 has two micbias pins.
Add the new widget "MIC BIAS External2" to enable external micbias2

Change-Id: Iacbbd443f5db8f881d7c90f88e2331be95b5d197
Signed-off-by: default avatarWalter Yang <yandongy@codeaurora.org>
parent 4c52f3c7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2017,9 +2017,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
	{"MIC BIAS Internal1", NULL, "INT_LDO_H"},
	{"MIC BIAS Internal2", NULL, "INT_LDO_H"},
	{"MIC BIAS External", NULL, "INT_LDO_H"},
	{"MIC BIAS External2", NULL, "INT_LDO_H"},
	{"MIC BIAS Internal1", NULL, "MICBIAS_REGULATOR"},
	{"MIC BIAS Internal2", NULL, "MICBIAS_REGULATOR"},
	{"MIC BIAS External", NULL, "MICBIAS_REGULATOR"},
	{"MIC BIAS External2", NULL, "MICBIAS_REGULATOR"},
};

static int msm8x16_wcd_startup(struct snd_pcm_substream *substream,
@@ -2521,6 +2523,9 @@ static const struct snd_soc_dapm_widget msm8x16_wcd_dapm_widgets[] = {
	SND_SOC_DAPM_MICBIAS("MIC BIAS External",
		MSM8X16_WCD_A_ANALOG_MICB_1_EN, 7, 0),

	SND_SOC_DAPM_MICBIAS("MIC BIAS External2",
		MSM8X16_WCD_A_ANALOG_MICB_2_EN, 7, 0),

	SND_SOC_DAPM_INPUT("AMIC3"),

	SND_SOC_DAPM_MUX_E("DEC1 MUX",