Lines Matching refs:slave
137 snd_pcm_t *pcm = file->gen.slave;
421 int err = snd_pcm_reset(file->gen.slave);
433 int err = snd_pcm_drop(file->gen.slave);
445 int err = snd_pcm_drain(file->gen.slave);
472 err = snd_pcm_rewind(file->gen.slave, frames);
500 err = INTERNAL(snd_pcm_forward)(file->gen.slave, frames);
513 snd_pcm_sframes_t n = snd_pcm_writei(file->gen.slave, buffer, size);
525 snd_pcm_sframes_t n = snd_pcm_writen(file->gen.slave, bufs, size);
539 n = snd_pcm_readi(file->gen.slave, buffer, size);
564 n = snd_pcm_readn(file->gen.slave, bufs, size);
582 snd_pcm_mmap_begin(file->gen.slave, &areas, &ofs, &siz);
584 result = snd_pcm_mmap_commit(file->gen.slave, ofs, siz);
597 return snd_pcm_hw_free(file->gen.slave);
604 snd_pcm_t *slave = file->gen.slave;
605 int err = _snd_pcm_hw_params(slave, params);
608 file->buffer_bytes = snd_pcm_frames_to_bytes(slave, slave->buffer_size);
609 file->wbuf_size = slave->buffer_size * 2;
610 file->wbuf_size_bytes = snd_pcm_frames_to_bytes(slave, file->wbuf_size);
618 file->wbuf_areas = malloc(sizeof(*file->wbuf_areas) * slave->channels);
624 for (channel = 0; channel < slave->channels; ++channel) {
627 a->first = slave->sample_bits * channel;
628 a->step = slave->frame_bits;
656 snd_pcm_dump(file->gen.slave, out);
716 * \param slave Slave PCM handle
717 * \param close_slave When set, the slave PCM handle is closed with copy PCM
726 const char *fmt, int perm, snd_pcm_t *slave, int close_slave)
768 file->gen.slave = slave;
771 err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode);
780 pcm->poll_fd = slave->poll_fd;
781 pcm->poll_events = slave->poll_events;
788 snd_pcm_link_hw_ptr(pcm, slave);
789 snd_pcm_link_appl_ptr(pcm, slave);
805 slave STR # Slave name
807 slave { # Slave definition
862 snd_config_t *slave = NULL, *sconf;
874 if (strcmp(id, "slave") == 0) {
875 slave = n;
941 if (!slave) {
942 SNDERR("slave is not defined");
945 err = snd_pcm_slave_conf(root, slave, &sconf, 0);