diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-04-15 10:02:33 +0800 |
---|---|---|
committer | Haitao Zhang <hzhang@canonical.com> | 2011-06-28 21:30:42 +0800 |
commit | 2642bbaf30d84f9a4250983febb726d57924d87c (patch) | |
tree | 7d912df02b115cc9609e1c9b08fdd62981b15b88 | |
parent | 94bf142474c6bae727cad6be72aa2c773808cf0f (diff) |
ENGR00137340-2 MX53_SMD: add headphone detection support.
add headphone gpio in imx sound card platform data.
delete old method of headphone detection codec.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
-rw-r--r-- | arch/arm/mach-mx5/board-mx53_smd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_smd.c b/arch/arm/mach-mx5/board-mx53_smd.c index 281320b48e3..4780d4898db 100644 --- a/arch/arm/mach-mx5/board-mx53_smd.c +++ b/arch/arm/mach-mx5/board-mx53_smd.c @@ -580,10 +580,6 @@ static int smd_sgtl5000_init(void) { smd_audio_data.sysclk = 22579200; - /* headphone_det_b */ - gpio_request(MX53_SMD_HEADPHONE_DEC, "headphone-dec"); - gpio_direction_input(MX53_SMD_HEADPHONE_DEC); - /* Enable OSC_CKIH1_EN for audio */ gpio_request(MX53_SMD_OSC_CKIH1_EN, "osc-en"); gpio_direction_output(MX53_SMD_OSC_CKIH1_EN, 1); @@ -595,6 +591,8 @@ static struct mxc_audio_platform_data smd_audio_data = { .src_port = 2, .ext_port = 5, .init = smd_sgtl5000_init, + .hp_gpio = MX53_SMD_HEADPHONE_DEC, + .hp_active_low = 1, }; static struct platform_device smd_audio_device = { |