From 41b02343d93b4c571b0863d276462520731986a7 Mon Sep 17 00:00:00 2001 From: Risto Suominen Date: Sun, 4 Apr 2010 07:59:30 +0300 Subject: [PATCH] --- yaml --- r: 193193 b: refs/heads/master c: 819ef70b135ba66cd1659c913255686bf931e3d4 h: refs/heads/master i: 193191: c370e494cd36e4db5d96b0a34f8a157285a8d82b v: v3 --- [refs] | 2 +- trunk/sound/ppc/tumbler.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 11cf8b2795d6..7e9807abbf1a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ec2755a93d5df044cb52558d2c778780272e0980 +refs/heads/master: 819ef70b135ba66cd1659c913255686bf931e3d4 diff --git a/trunk/sound/ppc/tumbler.c b/trunk/sound/ppc/tumbler.c index 789f44f4ac78..3b7471c344b4 100644 --- a/trunk/sound/ppc/tumbler.c +++ b/trunk/sound/ppc/tumbler.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -46,6 +47,8 @@ #define DBG(fmt...) #endif +#define IS_G4DA (machine_is_compatible("PowerMac3,4")) + /* i2c address for tumbler */ #define TAS_I2C_ADDR 0x34 @@ -1134,7 +1137,7 @@ static long tumbler_find_device(const char *device, const char *platform, gp->inactive_val = (*base) ? 0x4 : 0x5; } else { const u32 *prop = NULL; - gp->active_state = 0; + gp->active_state = IS_G4DA && !strcmp(device, "keywest-gpio15"); gp->active_val = 0x4; gp->inactive_val = 0x5; /* Here are some crude hacks to extract the GPIO polarity and