dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Eliot Blennerhassett 2011-12-22 11:54:02 +13:00 committed by Takashi Iwai
parent cde944803d
commit 47a74a5d1e
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}