asoc: AIC3262: Fix headset detection failure during bootup
Vijay Mali [Tue, 5 Feb 2013 12:56:35 +0000 (17:56 +0530)]
Remove codec driver call for headset detection.
On Pluto headset detection is done using AP GPIO pin.
Remove unused code.

For bug 1228726

Change-Id: I4be5a0c89375749919eb3222293564318bde9547
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/197463
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_aic326x.c

index a5ab8c1..8cd04b7 100644 (file)
@@ -1195,9 +1195,11 @@ static int tegra_aic326x_init(struct snd_soc_pcm_runtime *rtd)
                machine->gpio_requested |= GPIO_HP_DET;
        }
 
+#ifndef CONFIG_ARCH_TEGRA_11x_SOC
        /* update jack status during boot */
        aic3262_hs_jack_detect(codec, &tegra_aic326x_hp_jack,
                SND_JACK_HEADSET);
+#endif
 
        /* Add call mode switch control */
        ret = snd_ctl_add(codec->card->snd_card,
@@ -1210,10 +1212,6 @@ static int tegra_aic326x_init(struct snd_soc_pcm_runtime *rtd)
        if (ret < 0)
                return ret;
 
-/*     snd_soc_dapm_force_enable_pin(dapm, "Mic Bias Ext");
-       snd_soc_dapm_force_enable_pin(dapm,"Mic Bias Int");
-       snd_soc_dapm_sync(dapm); */
-
        return 0;
 }