Lines Matching refs:slave_frames
270 snd_pcm_uframes_t slave_frames = ULONG_MAX;
272 err = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
273 if (err < 0 || slave_frames == 0)
276 slave_areas, slave_offset, &slave_frames);
277 if (CHECK_SANITY(slave_frames > snd_pcm_mmap_playback_avail(slave))) {
278 SNDMSG("write overflow %ld > %ld", slave_frames,
284 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
285 if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) {
287 res = plugin->undo_write(pcm, slave_areas, slave_offset + result, slave_frames, slave_frames - result);
316 snd_pcm_uframes_t slave_frames = ULONG_MAX;
318 snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
319 if (slave_frames == 0)
322 slave_areas, slave_offset, &slave_frames);
323 if (CHECK_SANITY(slave_frames > snd_pcm_mmap_capture_avail(slave))) {
324 SNDMSG("read overflow %ld > %ld", slave_frames,
330 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
331 if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) {
334 res = plugin->undo_read(slave, areas, offset, frames, slave_frames - result);
415 snd_pcm_uframes_t slave_frames = ULONG_MAX;
419 err = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
425 slave_areas, slave_offset, &slave_frames);
428 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
430 if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) {
433 res = plugin->undo_write(pcm, slave_areas, slave_offset + result, slave_frames, slave_frames - result);
482 snd_pcm_uframes_t slave_frames = ULONG_MAX;
486 err = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
492 slave_areas, slave_offset, &slave_frames);
495 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
497 if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) {
500 res = plugin->undo_read(slave, areas, hw_offset, frames, slave_frames - result);
512 slave_size -= slave_frames;