asoc: aic326x machine: Add support for D-Mic
Manoj Gangwal [Wed, 22 Aug 2012 16:48:44 +0000 (21:48 +0530)]
Bug 1034241

Change-Id: I205a74a8f27237470a3cd1266bb925971654459c
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/125280
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

sound/soc/tegra/tegra_aic326x.c

index 1b5598d..de4a145 100644 (file)
@@ -973,6 +973,7 @@ static const struct snd_soc_dapm_widget tegra_aic326x_dapm_widgets[] = {
        SND_SOC_DAPM_INPUT("Ext Mic"),
        SND_SOC_DAPM_LINE("Linein", NULL),
        SND_SOC_DAPM_MIC("Int Mic", NULL),
+       SND_SOC_DAPM_MIC("DMIC", NULL),
 };
 
 static const struct snd_soc_dapm_route aic326x_audio_map[] = {
@@ -989,6 +990,10 @@ static const struct snd_soc_dapm_route aic326x_audio_map[] = {
        {"IN2R", NULL, "Mic Bias Int"},
        {"IN1L", NULL, "Mic Bias Ext"},
        {"Mic Bias Ext" ,NULL, "Mic Jack"},
+       /* Connect LDMIC and RDMIC to DMIC widget*/
+       {"Left DMIC", NULL, "Mic Bias Int"},
+       {"Right DMIC", NULL, "Mic Bias Int"},
+       {"Mic Bias Int", NULL, "Int Mic"},
 /*     {"CM1L" ,NULL, "Mic Jack"}, */
 /*     {"IN1L", NULL, "Mic Bias Ext"}, */
 /*     {"IN1L", NULL, "CM1L"}, */