aboutsummaryrefslogtreecommitdiff
path: root/sound/ppc/tumbler.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-11-16 20:45:51 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-11-16 20:45:51 -0500
commit556c66db0794b9b85481cb5e3cb57688eabad982 (patch)
tree5bc225b790d855aa61ec06abae19e21f6e6b1a82 /sound/ppc/tumbler.c
parent3be4bb06b53df2c0a760eeaa5f53448faddedfca (diff)
parent8b200abdcf237528a3eb0fe8c680c711fc9824b5 (diff)
Merge branch 'upstream-fixes'
Diffstat (limited to 'sound/ppc/tumbler.c')
-rw-r--r--sound/ppc/tumbler.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c
index 65384afcfc3..d74bfabe530 100644
--- a/sound/ppc/tumbler.c
+++ b/sound/ppc/tumbler.c
@@ -1194,8 +1194,14 @@ static void tumbler_resume(pmac_t *chip)
tumbler_set_master_volume(mix);
if (chip->update_automute)
chip->update_automute(chip, 0);
- if (mix->headphone_irq >= 0)
+ if (mix->headphone_irq >= 0) {
+ unsigned char val;
+
enable_irq(mix->headphone_irq);
+ /* activate headphone status interrupts */
+ val = do_gpio_read(&mix->hp_detect);
+ do_gpio_write(&mix->hp_detect, val | 0x80);
+ }
if (mix->lineout_irq >= 0)
enable_irq(mix->lineout_irq);
}