Lines Matching refs:slave

71 	assert(plug->gen.slave == plug->req_slave);
86 snd_pcm_t *slave = plug->req_slave;
89 if ((err = snd_pcm_info(slave, info)) < 0)
354 snd_pcm_t *slave = plug->req_slave;
356 if (plug->gen.slave != slave) {
357 snd_pcm_unlink_hw_ptr(pcm, plug->gen.slave);
358 snd_pcm_unlink_appl_ptr(pcm, plug->gen.slave);
359 snd_pcm_close(plug->gen.slave);
360 plug->gen.slave = slave;
361 pcm->fast_ops = slave->fast_ops;
362 pcm->fast_op_arg = slave->fast_op_arg;
384 plug->gen.slave, plug->gen.slave != plug->req_slave);
487 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);
500 snd_pcm_format_t sformat, snd_pcm_t *slave,
506 return snd_pcm_iec958_open(pcmp, name, sformat, slave, close_slave, NULL, preamble_vals, 0);
515 int (*f)(snd_pcm_t **_pcm, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave);
608 err = f(new, NULL, slv->format, plug->gen.slave, plug->gen.slave != plug->req_slave);
622 err = snd_pcm_copy_open(new, NULL, plug->gen.slave, plug->gen.slave != plug->req_slave);
649 err = __snd_pcm_mmap_emul_open(new, NULL, plug->gen.slave,
650 plug->gen.slave != plug->req_slave);
669 snd_pcm_plug_params_t *slave)
689 snd_pcm_plug_params_t p = *slave;
709 plug->gen.slave = new;
816 snd_pcm_t *slave = plug->req_slave;
831 err = snd_pcm_hw_param_refine_multiple(slave, sparams, SND_PCM_HW_PARAM_RATE, params);
839 err = snd_pcm_hw_param_refine_near(slave, sparams, SND_PCM_HW_PARAM_CHANNELS, params);
864 SNDERR("Unable to find an usable slave format for '%s'", pcm->name);
877 err = snd_pcm_hw_param_set_mask(slave, sparams, SND_CHANGE,
1037 snd_pcm_t *slave = plug->req_slave;
1048 err = snd_pcm_hw_refine_soft(slave, &sparams);
1065 snd_pcm_hw_params_test_access(slave, &sparams,
1067 INTERNAL(snd_pcm_hw_params_set_access_first)(slave, &sparams, &slv_params.access);
1072 slave = plug->gen.slave;
1073 err = _snd_pcm_hw_params_internal(slave, params);
1081 pcm->fast_ops = slave->fast_ops;
1082 pcm->fast_op_arg = slave->fast_op_arg;
1083 snd_pcm_link_hw_ptr(pcm, slave);
1084 snd_pcm_link_appl_ptr(pcm, slave);
1091 snd_pcm_t *slave = plug->gen.slave;
1092 int err = snd_pcm_hw_free(slave);
1100 snd_pcm_t *slave = plug->gen.slave;
1101 int err = snd_pcm_sw_params(slave, params);
1103 pcm->fast_ops = slave->fast_ops;
1104 pcm->fast_op_arg = slave->fast_op_arg;
1113 snd_pcm_dump(plug->gen.slave, out);
1139 * \param slave Slave PCM handle
1140 * \param close_slave When set, the slave PCM handle is closed with copy PCM
1154 snd_pcm_t *slave, int close_slave)
1159 assert(pcmp && slave);
1167 plug->gen.slave = plug->req_slave = slave;
1175 err = snd_pcm_new(&pcm, SND_PCM_TYPE_PLUG, name, slave->stream, slave->mode);
1181 pcm->fast_ops = slave->fast_ops;
1182 pcm->fast_op_arg = slave->fast_op_arg;
1193 pcm->poll_fd = slave->poll_fd;
1194 pcm->poll_events = slave->poll_events;
1196 pcm->tstamp_type = slave->tstamp_type;
1197 snd_pcm_link_hw_ptr(pcm, slave);
1198 snd_pcm_link_appl_ptr(pcm, slave);
1213 slave STR # Slave name
1215 slave { # Slave definition
1271 snd_config_t *slave = NULL, *sconf;
1288 if (strcmp(id, "slave") == 0) {
1289 slave = n;
1330 if (!slave) {
1331 SNDERR("slave is not defined");
1334 err = snd_pcm_slave_conf(root, slave, &sconf, 3,