Lines Matching defs:slave

40 The slave plugin can be specified directly with a string or the definition
67 slave slave_rate44100Hz
76 slave {
142 int err = snd_pcm_delay(plugin->gen.slave, &sd);
151 snd_pcm_t *slave = plugin->gen.slave;
154 assert(pcm->boundary == slave->boundary);
155 *pcm->hw.ptr = *slave->hw.ptr;
156 *pcm->appl.ptr = *slave->appl.ptr;
169 err = snd_pcm_prepare(plugin->gen.slave);
179 err = snd_pcm_reset(plugin->gen.slave);
202 sframes = snd_pcm_rewind(plugin->gen.slave, sframes);
226 sframes = INTERNAL(snd_pcm_forward)(plugin->gen.slave, sframes);
239 snd_pcm_t *slave = plugin->gen.slave;
250 result = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
259 if (CHECK_SANITY(slave_frames > snd_pcm_mmap_playback_avail(slave))) {
261 snd_pcm_mmap_playback_avail(slave));
265 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
296 snd_pcm_t *slave = plugin->gen.slave;
307 result = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
316 if (CHECK_SANITY(slave_frames > snd_pcm_mmap_capture_avail(slave))) {
318 snd_pcm_mmap_playback_avail(slave));
322 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
326 res = plugin->undo_read(slave, areas, offset, frames, slave_frames - result);
391 snd_pcm_t *slave = plugin->gen.slave;
402 slave_size = snd_pcm_avail_update(slave);
416 result = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
425 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
464 snd_pcm_t *slave = plugin->gen.slave;
487 slave_size = snd_pcm_avail_update(slave);
488 result = snd_pcm_mmap_begin(slave, &slave_areas, &slave_offset, &slave_frames);
497 result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames);
500 res = plugin->undo_read(slave, areas, hw_offset, frames, slave_frames - result);
540 snd_pcm_t *slave = plugin->gen.slave;
543 slave_size = snd_pcm_avail_update(slave);
544 return snd_pcm_plugin_sync_hw_ptr(pcm, *slave->hw.ptr, slave_size);
552 err = snd_pcm_status(plugin->gen.slave, status);
558 * snd_pcm_plugin_avail_update() commits the data to the slave pcm.
559 * It means that the slave appl_ptr is updated. Calculate diff and
586 * slave in avail_update operation. Entering snd_pcm_wait after
588 * too long time, as slave will unnecessarily wait for avail_min
590 * adapt the avail_min threshold on slave dynamically. Just
591 * modifying slave->avail_min as a shortcut and lightweight
592 * solution does not work for all slave plugin types and in
595 * note: reading fragmental parts from slave will only happen
597 * a) the slave can provide contineous hw_ptr between periods
605 snd_pcm_t *slave = generic->slave;
610 * avail_update on slave and also can return error
618 * of slave to 0 return here
631 if (slave->avail_min != needed_slave_avail_min) {
638 snd_pcm_sw_params_current(slave, swparams);
646 snd_pcm_sw_params(slave, swparams);