ASoC: mfld_machine: disable dmic2, dmic4 and dmic 6
authorRamesh Babu K V <ramesh.babu@intel.com>
Thu, 6 Oct 2011 15:18:38 +0000 (16:18 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:17:05 +0000 (13:17 -0800)
The PR2 hardware has only 3 DMICs on board.  They are connected
to DMIC1, 3 and 5.  Machine driver needs to disable DMIC2, 4 and 6 to
minimize power consumption.

This patch disables the DMIC2, 4 and 6 in machine driver.

Change-Id: Id28f7cd88180d6e6548ede649c94781164f3c67e
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
sound/soc/mid-x86/mfld_machine.c

index 028e24e..c5ad7c0 100644 (file)
@@ -243,12 +243,15 @@ static int mfld_init(struct snd_soc_pcm_runtime *runtime)
        /* we dont use linein in this so set to NC */
        snd_soc_dapm_disable_pin(dapm, "LINEINL");
        snd_soc_dapm_disable_pin(dapm, "LINEINR");
-
+       snd_soc_dapm_disable_pin(dapm, "DMIC2");
+       snd_soc_dapm_disable_pin(dapm, "DMIC4");
+       snd_soc_dapm_disable_pin(dapm, "DMIC6");
+       snd_soc_dapm_disable_pin(dapm, "AMIC2");
 
        snd_soc_dapm_ignore_suspend(dapm, "PCM1_IN");
-       snd_soc_dapm_ignore_suspend(dapm, "PCM1_OUT");
+       snd_soc_dapm_ignore_suspend(dapm, "PCM1_Out");
        snd_soc_dapm_ignore_suspend(dapm, "PCM2_IN");
-       snd_soc_dapm_ignore_suspend(dapm, "PCM2_OUT");
+       snd_soc_dapm_ignore_suspend(dapm, "PCM2_Out");
        snd_soc_dapm_ignore_suspend(dapm, "IHFDAC Right");
        snd_soc_dapm_ignore_suspend(dapm, "IHFDAC Left");
        snd_soc_dapm_ignore_suspend(dapm, "HSDAC Right");