Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182704
b: refs/heads/master
c: cf944ee
h: refs/heads/master
v: v3
  • Loading branch information
Florian Zumbiehl authored and Takashi Iwai committed Jan 26, 2010
1 parent 617cb0d commit 7439ecc
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 6250b9ced23032789ca9739d6a53949637f9c836
refs/heads/master: cf944ee55cc318bdb1d4b2f3f5cce3257f7c07b3
10 changes: 10 additions & 0 deletions trunk/sound/pci/cs46xx/cs46xx_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3644,6 +3644,7 @@ int snd_cs46xx_resume(struct pci_dev *pci)
#ifdef CONFIG_SND_CS46XX_NEW_DSP
int i;
#endif
unsigned int tmp;

pci_set_power_state(pci, PCI_D0);
pci_restore_state(pci);
Expand Down Expand Up @@ -3685,6 +3686,15 @@ int snd_cs46xx_resume(struct pci_dev *pci)
snd_ac97_resume(chip->ac97[CS46XX_PRIMARY_CODEC_INDEX]);
snd_ac97_resume(chip->ac97[CS46XX_SECONDARY_CODEC_INDEX]);

/*
* Stop capture DMA.
*/
tmp = snd_cs46xx_peek(chip, BA1_CCTL);
chip->capt.ctl = tmp & 0x0000ffff;
snd_cs46xx_poke(chip, BA1_CCTL, tmp & 0xffff0000);

mdelay(5);

/* reset playback/capture */
snd_cs46xx_set_play_sample_rate(chip, 8000);
snd_cs46xx_set_capture_sample_rate(chip, 8000);
Expand Down

0 comments on commit 7439ecc

Please sign in to comment.