Lines Matching refs:slave

73 		snd_pcm_multi_slave_t *slave = &multi->slaves[i];
74 if (slave->close_slave) {
75 int err = snd_pcm_close(slave->pcm);
108 snd_pcm_t *slave;
114 slave = multi->slaves[i].pcm;
115 if (slave == slave_0)
117 err = snd_pcm_poll_descriptors(slave, pfds, space);
169 snd_pcm_multi_slave_t *slave = &multi->slaves[slave_idx];
175 slave->channels_count, 0);
252 snd_pcm_t *slave = multi->slaves[slave_idx].pcm;
253 return snd_pcm_hw_refine(slave, sparams);
302 snd_pcm_t *slave = multi->slaves[slave_idx].pcm;
303 int err = snd_pcm_hw_params(slave, sparams);
306 err = snd_pcm_areas_silence(slave->running_areas, 0, slave->channels, slave->buffer_size, slave->format);
309 if (slave->stopped_areas) {
310 err = snd_pcm_areas_silence(slave->stopped_areas, 0, slave->channels, slave->buffer_size, slave->format);
318 * slave #0 = trigger master
319 * slave #1-(N-1) = trigger slaves, linked is set to #0
363 snd_pcm_t *slave = multi->slaves[i].pcm;
364 int e = snd_pcm_hw_free(slave);
369 e = snd_pcm_unlink(slave);
383 snd_pcm_t *slave = multi->slaves[i].pcm;
384 err = snd_pcm_sw_params(slave, params);
395 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
397 int err = snd_pcm_status(slave, status);
411 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
412 return snd_pcm_state(slave);
497 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
498 return snd_pcm_htimestamp(slave, avail, tstamp);
507 /* We call prepare to each slave even if it's linked.
524 /* Reset each slave, as well as in prepare */
533 /* when the first slave PCM is linked, it means that the whole multi
734 /* if a multi plugin instance is linked as slaves, every slave PCMs
757 * slave element as its own slaves are already linked.
786 snd_pcm_t *slave;
791 slave = multi->slaves[i].pcm;
792 result = snd_pcm_mmap_commit(slave, offset, size);
825 /* Copy the slave mmapped buffer data */
828 snd_pcm_t *slave;
833 slave = multi->slaves[chan->slave_idx].pcm;
835 slave->mmap_channels[chan->slave_channel];
838 slave->running_areas[chan->slave_channel];
996 snd_output_printf(out, " %d: slave %d, channel %d\n",
1064 * \param master_slave Master slave number
1065 * \param slaves_pcm Array with slave PCMs
1066 * \param schannels_count Array with slave channel counts
1069 * \param schannels Array with slave channels
1070 * \param close_slaves When set, the slave PCM handle is closed
1116 snd_pcm_multi_slave_t *slave = &multi->slaves[i];
1118 slave->pcm = slaves_pcm[i];
1119 slave->channels_count = schannels_count[i];
1120 slave->close_slave = close_slaves;
1176 slave STR # Slave key
1180 [master INT] # Define the master slave
1195 bindings.0.slave a
1197 bindings.1.slave a
1199 bindings.2.slave b
1201 bindings.3.slave b
1213 slave.pcm "quad"
1306 SNDERR("Master slave is out of range (0-%u)", slaves_count-1);
1360 int slave = -1;
1379 if (strcmp(id, "slave") == 0) {
1394 slave = k;
1410 if (slave < 0 || (unsigned int)slave >= slaves_count) {
1416 (unsigned int) schannel >= slaves_channels[slave]) {
1421 channels_sidx[cchannel] = slave;