Lines Matching defs:slave
67 assert(plug->gen.slave == plug->req_slave);
82 snd_pcm_t *slave = plug->req_slave;
85 if ((err = snd_pcm_info(slave, info)) < 0)
334 snd_pcm_t *slave = plug->req_slave;
336 if (plug->gen.slave != slave) {
337 snd_pcm_unlink_hw_ptr(pcm, plug->gen.slave);
338 snd_pcm_unlink_appl_ptr(pcm, plug->gen.slave);
339 snd_pcm_close(plug->gen.slave);
340 plug->gen.slave = slave;
341 pcm->fast_ops = slave->fast_ops;
342 pcm->fast_op_arg = slave->fast_op_arg;
364 plug->gen.slave, plug->gen.slave != plug->req_slave);
467 err = snd_pcm_route_open(new, NULL, slv->format, (int) slv->channels, ttable, tt_ssize, tt_cused, tt_sused, plug->gen.slave, plug->gen.slave != plug->req_slave);
483 int (*f)(snd_pcm_t **_pcm, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave);
563 err = f(new, NULL, slv->format, plug->gen.slave, plug->gen.slave != plug->req_slave);
577 err = snd_pcm_copy_open(new, NULL, plug->gen.slave, plug->gen.slave != plug->req_slave);
604 err = __snd_pcm_mmap_emul_open(new, NULL, plug->gen.slave,
605 plug->gen.slave != plug->req_slave);
624 snd_pcm_plug_params_t *slave)
644 snd_pcm_plug_params_t p = *slave;
661 plug->gen.slave = new;
678 plug->gen.slave = new;
786 snd_pcm_t *slave = plug->req_slave;
801 err = snd_pcm_hw_param_refine_multiple(slave, sparams, SND_PCM_HW_PARAM_RATE, params);
809 err = snd_pcm_hw_param_refine_near(slave, sparams, SND_PCM_HW_PARAM_CHANNELS, params);
834 SNDERR("Unable to find an usable slave format for '%s'", pcm->name);
847 err = snd_pcm_hw_param_set_mask(slave, sparams, SND_CHANGE,
1007 snd_pcm_t *slave = plug->req_slave;
1018 err = snd_pcm_hw_refine_soft(slave, &sparams);
1035 snd_pcm_hw_params_test_access(slave, &sparams,
1037 INTERNAL(snd_pcm_hw_params_set_access_first)(slave, &sparams, &slv_params.access);
1042 slave = plug->gen.slave;
1043 err = _snd_pcm_hw_params(slave, params);
1051 pcm->fast_ops = slave->fast_ops;
1052 pcm->fast_op_arg = slave->fast_op_arg;
1053 snd_pcm_link_hw_ptr(pcm, slave);
1054 snd_pcm_link_appl_ptr(pcm, slave);
1061 snd_pcm_t *slave = plug->gen.slave;
1062 int err = snd_pcm_hw_free(slave);
1071 snd_pcm_dump(plug->gen.slave, out);
1094 * \param slave Slave PCM handle
1095 * \param close_slave When set, the slave PCM handle is closed with copy PCM
1109 snd_pcm_t *slave, int close_slave)
1114 assert(pcmp && slave);
1123 plug->gen.slave = plug->req_slave = slave;
1131 err = snd_pcm_new(&pcm, SND_PCM_TYPE_PLUG, name, slave->stream, slave->mode);
1137 pcm->fast_ops = slave->fast_ops;
1138 pcm->fast_op_arg = slave->fast_op_arg;
1140 pcm->poll_fd = slave->poll_fd;
1141 pcm->poll_events = slave->poll_events;
1143 pcm->monotonic = slave->monotonic;
1144 snd_pcm_link_hw_ptr(pcm, slave);
1145 snd_pcm_link_appl_ptr(pcm, slave);
1160 slave STR # Slave name
1162 slave { # Slave definition
1218 snd_config_t *slave = NULL, *sconf;
1235 if (strcmp(id, "slave") == 0) {
1236 slave = n;
1277 if (!slave) {
1278 SNDERR("slave is not defined");
1281 err = snd_pcm_slave_conf(root, slave, &sconf, 3,