Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193193
b: refs/heads/master
c: 819ef70
h: refs/heads/master
i:
  193191: c370e49
v: v3
  • Loading branch information
Risto Suominen authored and Takashi Iwai committed Apr 4, 2010
1 parent 2798204 commit 41b0234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec2755a93d5df044cb52558d2c778780272e0980
refs/heads/master: 819ef70b135ba66cd1659c913255686bf931e3d4
5 changes: 4 additions & 1 deletion trunk/sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <sound/core.h>
#include <asm/io.h>
#include <asm/irq.h>
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 41b0234

Please sign in to comment.