From bba6acdef86e7cfa4656134a7a75048c0aec8309 Mon Sep 17 00:00:00 2001 From: Praveen Bharathi Date: Wed, 23 Feb 2011 05:08:33 -0600 Subject: [PATCH] [ARM] tegra_i2s_audio: turn off main speaker and headset amps in dock mode This should have always been there but was somehow missed. Turning off the main speaker and headset amps in the dock mode eliminates the unpleasant hiss that is heard from the main speakers. Signed-off-by: Praveen Bharathi --- drivers/mfd/tegra-cpcap-audio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/tegra-cpcap-audio.c b/drivers/mfd/tegra-cpcap-audio.c index dd5e917bfc7b..02a8e5559d29 100644 --- a/drivers/mfd/tegra-cpcap-audio.c +++ b/drivers/mfd/tegra-cpcap-audio.c @@ -127,6 +127,10 @@ static void tegra_setup_audio_out_dock_headset_on(void) pdata->state->stdac_primary_speaker = CPCAP_AUDIO_OUT_EMU_STEREO; pdata->state->stdac_secondary_speaker = CPCAP_AUDIO_OUT_EMU_STEREO; cpcap_audio_set_audio_state(pdata->state); + + /* turn off the headset and speaker amplifiers */ + gpio_direction_output(pdata->speaker_gpio, 0); + gpio_direction_output(pdata->headset_gpio, 0); } static void tegra_setup_audio_in_mute(void) -- 2.34.1