Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> linux-2.6-omap-rx51-Don-t-power-up-speaker-amplifier-at-bootup.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File linux-2.6-omap-rx51-Don-t-power-up-speaker-amplifier-at-bootup.patch of Package kernel-adaptation-n900
From a6e5d76226334bb299edc1e59ebcc9c4bdcd9980 Mon Sep 17 00:00:00 2001 From: ext Jarkko Nikula <jhnikula@gmail.com> Date: Thu, 12 May 2011 14:30:58 +0300 Subject: [PATCH] omap: rx51: Don't power up speaker amplifier at bootup Speaker amplifier is accidentally powered up in early TWL gpio setup. This causes a few mA of needless battery current consumption. Without this patch the amplifier can be shutdown only by having one active audio playback and shutdown cycle to speaker output. Thanks to Kalle Jokiniemi <kalle.jokiniemi@nokia.com> for noticing the issue. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Cc: Kalle Jokiniemi <kalle.jokiniemi@nokia.com> --- arch/arm/mach-omap2/board-rx51-peripherals.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e9f2cd2..9481a59 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -846,7 +846,7 @@ static int rx51_twlgpio_setup(struct device *dev, unsigned gpio, unsigned n) gpio_request(gpio + 6, "backlight_pwm"); gpio_direction_output(gpio + 6, 0); gpio_request(gpio + 7, "speaker_en"); - gpio_direction_output(gpio + 7, 1); + gpio_direction_output(gpio + 7, 0); return 0; } -- 1.7.0.4