[ALSA] atiixp - Fix PM resume

ATIIXP driver
Fixed PM resume on atiixp driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2005-09-01 11:56:34 +02:00 committed by Jaroslav Kysela
parent 12bb5b78e5
commit 8e3d759d4b
1 changed files with 1 additions and 0 deletions

View File

@ -1453,6 +1453,7 @@ static int snd_atiixp_resume(snd_card_t *card)
atiixp_dma_t *dma = &chip->dmas[i]; atiixp_dma_t *dma = &chip->dmas[i];
if (dma->substream && dma->suspended) { if (dma->substream && dma->suspended) {
dma->ops->enable_dma(chip, 1); dma->ops->enable_dma(chip, 1);
dma->substream->ops->prepare(dma->substream);
writel((u32)dma->desc_buf.addr | ATI_REG_LINKPTR_EN, writel((u32)dma->desc_buf.addr | ATI_REG_LINKPTR_EN,
chip->remap_addr + dma->ops->llp_offset); chip->remap_addr + dma->ops->llp_offset);
writel(dma->saved_curptr, chip->remap_addr + dma->ops->dt_cur); writel(dma->saved_curptr, chip->remap_addr + dma->ops->dt_cur);