Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34932
b: refs/heads/master
c: 2fd53a7
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Schwab authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 5d8b0cd commit 42b1116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 927fc866025857c109219d4ed62d8c3cbc02713a
refs/heads/master: 2fd53a7e9b1392f9cc3002a24f3c13b2796e70c3
5 changes: 3 additions & 2 deletions trunk/sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,16 @@ static int check_audio_gpio(struct pmac_gpio *gp)

ret = do_gpio_read(gp);

return (ret & 0xd) == (gp->active_val & 0xd);
return (ret & 0x1) == (gp->active_val & 0x1);
}

static int read_audio_gpio(struct pmac_gpio *gp)
{
int ret;
if (! gp->addr)
return 0;
ret = ((do_gpio_read(gp) & 0x02) !=0);
ret = do_gpio_read(gp);
ret = (ret & 0x02) !=0;
return ret == gp->active_state;
}

Expand Down

0 comments on commit 42b1116

Please sign in to comment.