mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fixed wrong copy problem in capture
This commit is contained in:
parent
f70e0fd468
commit
569130159d
1 changed files with 2 additions and 0 deletions
|
|
@ -1079,6 +1079,8 @@ static int snd_pcm_rate_grab_next_period(snd_pcm_t *pcm, snd_pcm_uframes_t hw_of
|
||||||
__partial:
|
__partial:
|
||||||
xfer = 0;
|
xfer = 0;
|
||||||
cont = rate->slave->buffer_size - slave_offset;
|
cont = rate->slave->buffer_size - slave_offset;
|
||||||
|
if (cont > rate->slave->period_size)
|
||||||
|
cont = rate->slave->period_size;
|
||||||
snd_pcm_areas_copy(rate->sareas, 0,
|
snd_pcm_areas_copy(rate->sareas, 0,
|
||||||
slave_areas, slave_offset,
|
slave_areas, slave_offset,
|
||||||
pcm->channels, cont,
|
pcm->channels, cont,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue