Lines Matching defs:slave
185 snd_pcm_t *spcm = meter->gen.slave;
275 err = snd_pcm_close(meter->gen.slave);
292 err = snd_pcm_prepare(meter->gen.slave);
305 int err = snd_pcm_reset(meter->gen.slave);
318 err = snd_pcm_start(meter->gen.slave);
328 snd_pcm_sframes_t err = snd_pcm_rewind(meter->gen.slave, frames);
337 snd_pcm_sframes_t err = INTERNAL(snd_pcm_forward)(meter->gen.slave, frames);
349 snd_pcm_sframes_t result = snd_pcm_mmap_commit(meter->gen.slave, offset, size);
362 snd_pcm_sframes_t result = snd_pcm_avail_update(meter->gen.slave);
416 return snd_pcm_hw_refine(meter->gen.slave, params);
422 return _snd_pcm_hw_params(meter->gen.slave, params);
439 snd_pcm_t *slave = meter->gen.slave;
450 meter->buf_size = slave->buffer_size;
451 while (meter->buf_size < slave->rate)
453 buf_size_bytes = snd_pcm_frames_to_bytes(slave, meter->buf_size);
458 meter->buf_areas = malloc(sizeof(*meter->buf_areas) * slave->channels);
463 for (channel = 0; channel < slave->channels; ++channel) {
465 a->addr = meter->buf + buf_size_bytes / slave->channels * channel;
467 a->step = slave->sample_bits;
489 return snd_pcm_hw_free(meter->gen.slave);
501 snd_pcm_dump(meter->gen.slave, out);
552 * \param slave Slave PCM handle
553 * \param close_slave When set, the slave PCM handle is closed with copy PCM
560 snd_pcm_t *slave, int close_slave)
569 meter->gen.slave = slave;
575 err = snd_pcm_new(&pcm, SND_PCM_TYPE_METER, name, slave->stream, slave->mode);
585 pcm->poll_fd = slave->poll_fd;
586 pcm->poll_events = slave->poll_events;
587 pcm->monotonic = slave->monotonic;
588 snd_pcm_link_hw_ptr(pcm, slave);
589 snd_pcm_link_appl_ptr(pcm, slave);
710 slave STR # Slave name
712 slave { # Slave definition
755 snd_config_t *slave = NULL, *sconf;
765 if (strcmp(id, "slave") == 0) {
766 slave = n;
788 if (!slave) {
789 SNDERR("slave is not defined");
792 err = snd_pcm_slave_conf(root, slave, &sconf, 0);
878 assert(meter->gen.slave->setup);
892 assert(meter->gen.slave->setup);
893 return meter->gen.slave->channels;
906 assert(meter->gen.slave->setup);
907 return meter->gen.slave->rate;
920 assert(meter->gen.slave->setup);
934 assert(meter->gen.slave->setup);
935 return meter->gen.slave->boundary;
1002 snd_pcm_t *spcm = meter->gen.slave;
1091 snd_pcm_t *spcm = meter->gen.slave;
1209 assert(meter->gen.slave->setup);
1211 assert(channel < meter->gen.slave->channels);