ASoC: max98090/91: adding two virtual Mux widgets for digital mics
PATCH 1/2 ASoC: max98090/91: adding two virtual Mux widgets for digital mics
The two digital mics M1(primary digital mic) and M2(secondary digital mic) work independently of one another. It means they could be switched On or Off independently of one another. To control their On or Off state, with this patch creating two virtual multiplexer widgets "DMIC M1 Mux" and "DMIC M2 Mux", with two options "Enable" and "Disable".
--- sound/soc/codecs/max98090.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
sound/soc/codecs/max98090.c +16 -0
@@ -817,6 +817,16 @@ static SOC_ENUM_SINGLE_VIRT_DECL(dmic_mux_enum, dmic_mux_text);static const struct snd_kcontrol_new max98090_dmic_mux =SOC_DAPM_ENUM ("DMIC Mux" , dmic_mux_enum); +static const char *const dmic_mX_mux_text[] = {"Enable" ,"Disable" }; + +static SOC_ENUM_SINGLE_VIRT_DECL(dmic_m1_enum, dmic_mX_mux_text); +static const struct snd_kcontrol_new max98090_dmic_m1_mux = +SOC_DAPM_ENUM ("DMIC M1 Mux" , dmic_m1_enum); + +static SOC_ENUM_SINGLE_VIRT_DECL(dmic_m2_enum, dmic_mX_mux_text); +static const struct snd_kcontrol_new max98090_dmic_m2_mux = +SOC_DAPM_ENUM ("DMIC M2 Mux" , dmic_m2_enum); +/* LINEA mixer switch */ static const struct snd_kcontrol_new max98090_linea_mixer_controls[] = { SOC_DAPM_SINGLE("IN1 Switch", M98090_REG_LINE_INPUT_CONFIG,
@@ -1106,6 +1116,9 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {SND_SOC_DAPM_MUX ("DMIC Mux" ,SND_SOC_NOPM ,0 ,0 , &max98090_dmic_mux), +SND_SOC_DAPM_MUX ("DMIC M1 Mux" ,SND_SOC_NOPM ,0 ,0 , + &max98090_dmic_m1_mux), +SND_SOC_DAPM_PGA_E ("MIC1 Input" ,M98090_REG_MIC1_INPUT_LEVEL ,M98090_MIC_PA1EN_SHIFT ,0 ,NULL ,0 , max98090_micinput_event, SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
@@ -1242,6 +1255,9 @@ static const struct snd_soc_dapm_widget max98091_dapm_widgets[] = {SND_SOC_DAPM_SUPPLY ("DMIC34_HPF" ,M98090_REG_FILTER_CONFIG ,M98090_FLT_DMIC34HPF_SHIFT ,0 ,NULL ,0 ), +SND_SOC_DAPM_MUX ("DMIC M2 Mux" ,SND_SOC_NOPM ,0 ,0 , + &max98090_dmic_m2_mux), +SND_SOC_DAPM_AIF_OUT ("AIFOUT2L" ,"HiFi Capture" ,0 ,SND_SOC_NOPM ,0 ,0 ), SND_SOC_DAPM_AIF_OUT("AIFOUT2R", "HiFi Capture", 0,
Signature · 1 line
2.30.5
Mark Brown
maintainerQuoted 8 lines · Sharique Mohammad
The two digital mics M1(primary digital mic) and M2(secondary digital mic) work independently of one another. It means they could be switched On or Off independently of one another. To control their On or Off state, with this patch creating two virtual multiplexer widgets "DMIC M1 Mux" and "DMIC M2 Mux", with two options "Enable" and "Disable".
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: max98090/91: adding two virtual Mux widgets for digital mics
commit: 947eaef21577f52db046992c887ed9698f9d883c
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark