Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 649
b: refs/heads/master
c: 085e6fc
h: refs/heads/master
i:
  647: f7b0328
v: v3
  • Loading branch information
Colin Leroy authored and Linus Torvalds committed May 1, 2005
1 parent dcfd22e commit 11a7569
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f7b49d042abfbda71f41b8aff6e1bf7685c1f00
refs/heads/master: 085e6fc96bcf239cab8adc600aab2452d75590b1
5 changes: 5 additions & 0 deletions trunk/sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ typedef struct pmac_tumbler_t {
pmac_gpio_t hp_detect;
int headphone_irq;
int lineout_irq;
unsigned int save_master_vol[2];
unsigned int master_vol[2];
unsigned int save_master_switch[2];
unsigned int master_switch[2];
Expand Down Expand Up @@ -1139,6 +1140,8 @@ static void tumbler_suspend(pmac_t *chip)
disable_irq(mix->lineout_irq);
mix->save_master_switch[0] = mix->master_switch[0];
mix->save_master_switch[1] = mix->master_switch[1];
mix->save_master_vol[0] = mix->master_vol[0];
mix->save_master_vol[1] = mix->master_vol[1];
mix->master_switch[0] = mix->master_switch[1] = 0;
tumbler_set_master_volume(mix);
if (!mix->anded_reset) {
Expand Down Expand Up @@ -1166,6 +1169,8 @@ static void tumbler_resume(pmac_t *chip)
mix->acs &= ~1;
mix->master_switch[0] = mix->save_master_switch[0];
mix->master_switch[1] = mix->save_master_switch[1];
mix->master_vol[0] = mix->save_master_vol[0];
mix->master_vol[1] = mix->save_master_vol[1];
tumbler_reset_audio(chip);
if (mix->i2c.client && mix->i2c.init_client) {
if (mix->i2c.init_client(&mix->i2c) < 0)
Expand Down

0 comments on commit 11a7569

Please sign in to comment.