Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293144
b: refs/heads/master
c: 28aa165
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Mar 13, 2012
1 parent 2b0dd92 commit 20b1f90
Show file tree
Hide file tree
Showing 3 changed files with 12 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: bd483d4c6c65c1c48483f2f81c603d42b39ce83b
refs/heads/master: 28aa165cc52fa686a55a2a2052fdddad0fbde5eb
2 changes: 2 additions & 0 deletions trunk/include/sound/ymfpci.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ struct snd_ymfpci {
#ifdef CONFIG_PM
u32 *saved_regs;
u32 saved_ydsxgr_mode;
u16 saved_dsxg_legacy;
u16 saved_dsxg_elegacy;
#endif
};

Expand Down
9 changes: 9 additions & 0 deletions trunk/sound/pci/ymfpci/ymfpci_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,10 @@ int snd_ymfpci_suspend(struct pci_dev *pci, pm_message_t state)
for (i = 0; i < YDSXGR_NUM_SAVED_REGS; i++)
chip->saved_regs[i] = snd_ymfpci_readl(chip, saved_regs_index[i]);
chip->saved_ydsxgr_mode = snd_ymfpci_readl(chip, YDSXGR_MODE);
pci_read_config_word(chip->pci, PCIR_DSXG_LEGACY,
&chip->saved_dsxg_legacy);
pci_read_config_word(chip->pci, PCIR_DSXG_ELEGACY,
&chip->saved_dsxg_elegacy);
snd_ymfpci_writel(chip, YDSXGR_NATIVEDACOUTVOL, 0);
snd_ymfpci_writel(chip, YDSXGR_BUF441OUTVOL, 0);
snd_ymfpci_disable_dsp(chip);
Expand Down Expand Up @@ -2344,6 +2348,11 @@ int snd_ymfpci_resume(struct pci_dev *pci)

snd_ac97_resume(chip->ac97);

pci_write_config_word(chip->pci, PCIR_DSXG_LEGACY,
chip->saved_dsxg_legacy);
pci_write_config_word(chip->pci, PCIR_DSXG_ELEGACY,
chip->saved_dsxg_elegacy);

/* start hw again */
if (chip->start_count > 0) {
spin_lock_irq(&chip->reg_lock);
Expand Down

0 comments on commit 20b1f90

Please sign in to comment.