Commit 47a74a5d authored by Eliot Blennerhassett's avatar Eliot Blennerhassett Committed by Takashi Iwai

ALSA: asihpi - fix pcm dma pointer tracking

Elapsed counter should only count data committed to snd_pcm_period_elapsed,
rather than all data available
Signed-off-by: default avatarEliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent cde94480
...@@ -888,8 +888,8 @@ static void snd_card_asihpi_timer_function(unsigned long data) ...@@ -888,8 +888,8 @@ static void snd_card_asihpi_timer_function(unsigned long data)
pd, xfer2)); pd, xfer2));
} }
} }
ds->pcm_buf_host_rw_ofs = ds->pcm_buf_host_rw_ofs + xfercount; ds->pcm_buf_host_rw_ofs += xfercount;
ds->pcm_buf_elapsed_dma_ofs = pcm_buf_dma_ofs; ds->pcm_buf_elapsed_dma_ofs += xfercount;
snd_pcm_period_elapsed(s); snd_pcm_period_elapsed(s);
} }
} }
......
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