From: Mark Brown Date: Fri, 2 Dec 2011 17:36:06 +0000 (+0000) Subject: ASoC: Map microphones on Littlemill X-Git-Tag: firefly_0821_release~3680^2~2691^2~334 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f103167fecb1f4b5888fbcfc81b67e3c810dee0;p=firefly-linux-kernel-4.4.55.git ASoC: Map microphones on Littlemill Littlemill has one analogue microphone on the board (connected to IN1LN) and an array of four DMICs connected to both DMICDAT lines. The biases can be selected by jumpers but pick the default jumper fit. Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/littlemill.c b/sound/soc/samsung/littlemill.c index 5d7680f4b7c1..5cea59beec9f 100644 --- a/sound/soc/samsung/littlemill.c +++ b/sound/soc/samsung/littlemill.c @@ -147,11 +147,21 @@ static struct snd_soc_dai_link littlemill_dai[] = { static struct snd_soc_dapm_widget widgets[] = { SND_SOC_DAPM_HP("Headphone", NULL), + + SND_SOC_DAPM_MIC("AMIC", NULL), + SND_SOC_DAPM_MIC("DMIC", NULL), }; static struct snd_soc_dapm_route audio_paths[] = { { "Headphone", NULL, "HPOUT1L" }, { "Headphone", NULL, "HPOUT1R" }, + + { "AMIC", NULL, "MICBIAS1" }, /* Default for AMICBIAS jumper */ + { "IN1LN", NULL, "AMIC" }, + + { "DMIC", NULL, "MICBIAS2" }, /* Default for DMICBIAS jumper */ + { "DMIC1DAT", NULL, "DMIC" }, + { "DMIC2DAT", NULL, "DMIC" }, }; static struct snd_soc_jack littlemill_headset;