When calculating the continuous part till the end of the buffer, we can
use the slave_frames value that has already been calculated by
snd_pcm_mmap_begin().
return result;
__partial:
xfer = 0;
- cont = rate->gen.slave->buffer_size - slave_offset;
+ cont = slave_frames;
if (cont > slave_size)
cont = slave_size;
snd_pcm_areas_copy(slave_areas, slave_offset,
return result;
__partial:
xfer = 0;
- cont = rate->gen.slave->buffer_size - slave_offset;
+ cont = slave_frames;
if (cont > rate->gen.slave->period_size)
cont = rate->gen.slave->period_size;
snd_pcm_areas_copy(rate->sareas, 0,