Gitweb: http://git.kernel.org/linus/a7e2e735dcf98717150d3c8eaa731de8038af05a
Commit: a7e2e735dcf98717150d3c8eaa731de8038af05a
Parent: 2aceefefc891e85d336c1d95d9d89fd785f5d44c
Author: Ian Molton <ian@mnementh.co.uk>
AuthorDate: Thu Jan 8 21:03:55 2009 +0000
Committer: Mark Brown <broonie@opensource.wolfsonmicro.com>
CommitDate: Fri Jan 16 16:40:26 2009 +0000
ASoC: machine driver for Toshiba e750
This patch adds support for the wm9705 ac97 codec as used in the Toshiba e750
PDA. It includes support for powering up / down the external headphone and
speaker amplifiers on this machine.
Signed-off-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-pxa/e750.c | 5 +
arch/arm/mach-pxa/include/mach/eseries-gpio.h | 5 +
sound/soc/pxa/Kconfig | 9 ++
sound/soc/pxa/Makefile | 2 +
sound/soc/pxa/e750_wm9705.c | 189 +++++++++++++++++++++++++
5 files changed, 210 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c
index be1ab8e..665066f 100644
--- a/arch/arm/mach-pxa/e750.c
+++ b/arch/arm/mach-pxa/e750.c
@@ -133,6 +133,11 @@ static unsigned long e750_pin_config[] __initdata = {
/* IrDA */
GPIO38_GPIO | MFP_LPM_DRIVE_HIGH,
+ /* Audio power control */
+ GPIO4_GPIO, /* Headphone amp power */
+ GPIO7_GPIO, /* Speaker amp power */
+ GPIO37_GPIO, /* Headphone detect */
+
/* PC Card */
GPIO8_GPIO, /* CD0 */
GPIO44_GPIO, /* CD1 */
diff --git a/arch/arm/mach-pxa/include/mach/eseries-gpio.h b/arch/arm/mach-pxa/include/mach/eseries-gpio.h
index efbd2aa..02b28e0 100644
--- a/arch/arm/mach-pxa/include/mach/eseries-gpio.h
+++ b/arch/arm/mach-pxa/include/mach/eseries-gpio.h
@@ -45,6 +45,11 @@
/* e7xx IrDA power control */
#define GPIO_E7XX_IR_OFF 38
+/* e750 audio control GPIOs */
+#define ...