Commit 482f8609 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix the invalid DMA pointer value

PPC PMAC driver
Fixed the bug returning invalid DMA pointer values.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 77c9a7be
......@@ -318,7 +318,8 @@ static snd_pcm_uframes_t snd_pmac_pcm_pointer(pmac_t *chip, pmac_stream_t *rec,
stat = ld_le16(&cp->xfer_status);
if (stat & (ACTIVE|DEAD)) {
count = in_le16(&cp->res_count);
count = rec->period_size - count;
if (count)
count = rec->period_size - count;
}
#endif
count += rec->cur_period * rec->period_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment