From: Eliot Blennerhassett Date: Wed, 21 Dec 2011 22:54:02 +0000 (+1300) Subject: ALSA: asihpi - fix pcm dma pointer tracking X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=47a74a5d1ed2af23c2dc1ccfdcc0176e40404345;p=deliverable%2Flinux.git 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: Eliot Blennerhassett Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index e9de799abd38..1ba50e369296 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -888,8 +888,8 @@ static void snd_card_asihpi_timer_function(unsigned long data) pd, xfer2)); } } - ds->pcm_buf_host_rw_ofs = ds->pcm_buf_host_rw_ofs + xfercount; - ds->pcm_buf_elapsed_dma_ofs = pcm_buf_dma_ofs; + ds->pcm_buf_host_rw_ofs += xfercount; + ds->pcm_buf_elapsed_dma_ofs += xfercount; snd_pcm_period_elapsed(s); } }