Audio: Enable speaker.

1.Use PM8921_GPIO_PM_TO_SYS(18) as speaker amp.
2.Disable wcd9310 headset detection function.

Change-Id: I5a5b8a38ef2cd30efb318a919f9490415302d67c
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/67836
Reviewed-by: Jive Hwang <jive_hwang@asus.com>
Tested-by: Jive Hwang <jive_hwang@asus.com>
This commit is contained in:
sam_chen
2013-01-29 09:08:36 +08:00
committed by Iliyan Malchev
parent 3d143f532a
commit f09e036eab
2 changed files with 4 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ enum {
INCALL_REC_STEREO,
};
static u32 top_spk_pamp_gpio = PM8921_GPIO_PM_TO_SYS(18);
static u32 bottom_spk_pamp_gpio = PM8921_GPIO_PM_TO_SYS(19);
static u32 top_spk_pamp_gpio = PM8921_GPIO_PM_TO_SYS(19);
static u32 bottom_spk_pamp_gpio = PM8921_GPIO_PM_TO_SYS(18);
static int msm_spk_control;
static int msm_ext_bottom_spk_pamp;
static int msm_ext_top_spk_pamp;
@@ -1308,7 +1308,7 @@ static int msm_audrx_init(struct snd_soc_pcm_runtime *rtd)
mbhc_cfg.read_fw_bin = apq8064_hs_detect_use_firmware;
err = tabla_hs_detect(codec, &mbhc_cfg);
// err = tabla_hs_detect(codec, &mbhc_cfg);
return err;
#else

View File

@@ -1002,7 +1002,7 @@ static int msm8960_audrx_init(struct snd_soc_pcm_runtime *rtd)
mbhc_cfg.read_fw_bin = hs_detect_use_firmware;
err = tabla_hs_detect(codec, &mbhc_cfg);
// err = tabla_hs_detect(codec, &mbhc_cfg);
return err;
}