diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/ppc/tumbler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 6ae2d5b9aa4a..cdff53e4a17e 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c | |||
@@ -190,7 +190,7 @@ static int check_audio_gpio(struct pmac_gpio *gp) | |||
190 | 190 | ||
191 | ret = do_gpio_read(gp); | 191 | ret = do_gpio_read(gp); |
192 | 192 | ||
193 | return (ret & 0xd) == (gp->active_val & 0xd); | 193 | return (ret & 0x1) == (gp->active_val & 0x1); |
194 | } | 194 | } |
195 | 195 | ||
196 | static int read_audio_gpio(struct pmac_gpio *gp) | 196 | static int read_audio_gpio(struct pmac_gpio *gp) |
@@ -198,7 +198,8 @@ static int read_audio_gpio(struct pmac_gpio *gp) | |||
198 | int ret; | 198 | int ret; |
199 | if (! gp->addr) | 199 | if (! gp->addr) |
200 | return 0; | 200 | return 0; |
201 | ret = ((do_gpio_read(gp) & 0x02) !=0); | 201 | ret = do_gpio_read(gp); |
202 | ret = (ret & 0x02) !=0; | ||
202 | return ret == gp->active_state; | 203 | return ret == gp->active_state; |
203 | } | 204 | } |
204 | 205 | ||