ASoc: msm8960: Add msm8960AB board specific change.

- GPIOs 23, 35 are used for headset mic on msm8960
- Do not configure GPIOs 23, 35 on msm8960AB target
  for headset mic, as these GIPOs are used for FAN
  external VDD_CX regulator control

Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
(cherry picked from commit 21c9f483e14dbb5b54ac5bf63f7d8711a157ebcb)
(cherry picked from commit 404e6428e061d11581eb949ae13e53646e925294)

Change-Id: I652f0ee07365fddd31e157b68893bcb749dbc1d7
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
This commit is contained in:
Jayasena Sangaraboina 2012-08-19 09:37:29 -07:00 committed by Stephen Boyd
parent e38c24e617
commit dc738ba3e7

View file

@ -1763,11 +1763,18 @@ static int __init msm8960_audio_init(void)
return ret;
}
if (cpu_is_msm8960()) {
if (msm8960_configure_headset_mic_gpios()) {
pr_err("%s Fail to configure headset mic gpios\n", __func__);
pr_err("%s Fail to configure headset mic gpios\n",
__func__);
msm8960_headset_gpios_configured = 0;
} else
msm8960_headset_gpios_configured = 1;
} else {
msm8960_headset_gpios_configured = 0;
pr_debug("%s headset GPIO 23 and 35 not configured msm960ab",
__func__);
}
mutex_init(&cdc_mclk_mutex);