Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193194
b: refs/heads/master
c: b6d7335
h: refs/heads/master
v: v3
  • Loading branch information
Risto Suominen authored and Takashi Iwai committed Apr 4, 2010
1 parent 41b0234 commit ccdc4bd
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 819ef70b135ba66cd1659c913255686bf931e3d4
refs/heads/master: b6d7335001f331f2d295ff15d67e385615ceff81
6 changes: 5 additions & 1 deletion trunk/sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,8 @@ 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 = IS_G4DA && !strcmp(device, "keywest-gpio15");
gp->active_state = IS_G4DA
&& !strncmp(device, "keywest-gpio1", 13);
gp->active_val = 0x4;
gp->inactive_val = 0x5;
/* Here are some crude hacks to extract the GPIO polarity and
Expand Down Expand Up @@ -1315,6 +1316,9 @@ static int __devinit tumbler_init(struct snd_pmac *chip)
if (irq <= NO_IRQ)
irq = tumbler_find_device("line-output-detect",
NULL, &mix->line_detect, 1);
if (IS_G4DA && irq <= NO_IRQ)
irq = tumbler_find_device("keywest-gpio16",
NULL, &mix->line_detect, 1);
mix->lineout_irq = irq;

tumbler_reset_audio(chip);
Expand Down

0 comments on commit ccdc4bd

Please sign in to comment.