mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
e38c24e617
commit
dc738ba3e7
1 changed files with 11 additions and 4 deletions
|
@ -1763,11 +1763,18 @@ static int __init msm8960_audio_init(void)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cpu_is_msm8960()) {
|
||||||
if (msm8960_configure_headset_mic_gpios()) {
|
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;
|
msm8960_headset_gpios_configured = 0;
|
||||||
} else
|
} else
|
||||||
msm8960_headset_gpios_configured = 1;
|
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);
|
mutex_init(&cdc_mclk_mutex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue