mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
pcm: dshare - apply the boundary wrap in snd_pcm_dshare_sync_area()
BugLink: https://github.com/alsa-project/alsa-lib/issues/84 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6d06fcc285
commit
ebe2f8b851
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ static void snd_pcm_dshare_sync_area(snd_pcm_t *pcm)
|
|||
const snd_pcm_channel_area_t *src_areas, *dst_areas;
|
||||
|
||||
/* calculate the size to transfer */
|
||||
size = dshare->appl_ptr - dshare->last_appl_ptr;
|
||||
size = pcm_frames_diff(dshare->appl_ptr, dshare->last_appl_ptr, pcm->boundary);
|
||||
if (! size)
|
||||
return;
|
||||
slave_hw_ptr = dshare->slave_hw_ptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue