Lines Matching defs:slave
72 snd_pcm_multi_slave_t *slave = &multi->slaves[i];
73 if (slave->close_slave) {
74 int err = snd_pcm_close(slave->pcm);
107 snd_pcm_t *slave;
113 slave = multi->slaves[i].pcm;
114 if (slave == slave_0)
116 err = snd_pcm_poll_descriptors(slave, pfds, space);
168 snd_pcm_multi_slave_t *slave = &multi->slaves[slave_idx];
174 slave->channels_count, 0);
251 snd_pcm_t *slave = multi->slaves[slave_idx].pcm;
252 return snd_pcm_hw_refine(slave, sparams);
301 snd_pcm_t *slave = multi->slaves[slave_idx].pcm;
302 int err = snd_pcm_hw_params(slave, sparams);
305 err = snd_pcm_areas_silence(slave->running_areas, 0, slave->channels, slave->buffer_size, slave->format);
308 if (slave->stopped_areas) {
309 err = snd_pcm_areas_silence(slave->stopped_areas, 0, slave->channels, slave->buffer_size, slave->format);
317 * slave #0 = trigger master
318 * slave #1-(N-1) = trigger slaves, linked is set to #0
362 snd_pcm_t *slave = multi->slaves[i].pcm;
363 int e = snd_pcm_hw_free(slave);
368 e = snd_pcm_unlink(slave);
382 snd_pcm_t *slave = multi->slaves[i].pcm;
383 err = snd_pcm_sw_params(slave, params);
393 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
394 return snd_pcm_status(slave, status);
400 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
401 return snd_pcm_state(slave);
407 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
408 return snd_pcm_hwsync(slave);
414 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
415 return snd_pcm_delay(slave, delayp);
438 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm;
439 return snd_pcm_htimestamp(slave, avail, tstamp);
448 /* We call prepare to each slave even if it's linked.
464 /* Reset each slave, as well as in prepare */
472 /* when the first slave PCM is linked, it means that the whole multi
635 /* if a multi plugin instance is linked as slaves, every slave PCMs
658 * slave element as its own slaves are already linked.
686 snd_pcm_t *slave;
691 slave = multi->slaves[i].pcm;
692 result = snd_pcm_mmap_commit(slave, offset, size);
724 /* Copy the slave mmapped buffer data */
727 snd_pcm_t *slave;
732 slave = multi->slaves[chan->slave_idx].pcm;
734 slave->mmap_channels[chan->slave_channel];
737 slave->running_areas[chan->slave_channel];
752 snd_output_printf(out, " %d: slave %d, channel %d\n",
814 * \param master_slave Master slave number
815 * \param slaves_pcm Array with slave PCMs
816 * \param schannels_count Array with slave channel counts
819 * \param schannels Array with slave channels
820 * \param close_slaves When set, the slave PCM handle is closed
867 snd_pcm_multi_slave_t *slave = &multi->slaves[i];
869 slave->pcm = slaves_pcm[i];
870 slave->channels_count = schannels_count[i];
871 slave->close_slave = close_slaves;
929 slave STR # Slave key
933 [master INT] # Define the master slave
948 bindings.0.slave a
950 bindings.1.slave a
952 bindings.2.slave b
954 bindings.3.slave b
966 slave.pcm "quad"
1059 SNDERR("Master slave is out of range (0-%u)\n", slaves_count-1);
1114 int slave = -1;
1133 if (strcmp(id, "slave") == 0) {
1148 slave = k;
1164 if (slave < 0 || (unsigned int)slave >= slaves_count) {
1170 (unsigned int) schannel >= slaves_channels[slave]) {
1175 channels_sidx[cchannel] = slave;