summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/asihpi.c
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-12-22 11:54:02 +1300
committerTakashi Iwai <tiwai@suse.de>2011-12-22 08:12:52 +0100
commit47a74a5d1ed2af23c2dc1ccfdcc0176e40404345 (patch)
tree16e62092d478593172be232108734343546ba2c0 /sound/pci/asihpi/asihpi.c
parentcde944803d12450f70f0adc4d418afcd8e42db2e (diff)
downloadop-kernel-dev-47a74a5d1ed2af23c2dc1ccfdcc0176e40404345.zip
op-kernel-dev-47a74a5d1ed2af23c2dc1ccfdcc0176e40404345.tar.gz
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 <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/asihpi.c')
-rw-r--r--sound/pci/asihpi/asihpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c
index e9de799..1ba50e3 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);
}
}
OpenPOWER on IntegriCloud