Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 190) sorted by relevance

12345678

/third_party/alsa-lib/src/pcm/
Dpcm_share.c104 snd_pcm_share_slave_t *slave; member
121 static snd_pcm_uframes_t snd_pcm_share_slave_avail(snd_pcm_share_slave_t *slave) in snd_pcm_share_slave_avail() argument
124 snd_pcm_t *pcm = slave->pcm; in snd_pcm_share_slave_avail()
125 avail = slave->hw_ptr - *pcm->appl.ptr; in snd_pcm_share_slave_avail()
137 static snd_pcm_uframes_t _snd_pcm_share_slave_forward(snd_pcm_share_slave_t *slave) in _snd_pcm_share_slave_forward() argument
145 slave_avail = snd_pcm_share_slave_avail(slave); in _snd_pcm_share_slave_forward()
146 buffer_size = slave->pcm->buffer_size; in _snd_pcm_share_slave_forward()
149 list_for_each(i, &slave->clients) { in _snd_pcm_share_slave_forward()
176 safety_frames = slave->safety_threshold - slave_hw_avail; in _snd_pcm_share_slave_forward()
200 snd_pcm_share_slave_t *slave = share->slave; in _snd_pcm_share_missing() local
[all …]
Dpcm_generic.c41 err = snd_pcm_close(generic->slave); in snd_pcm_generic_close()
49 return snd_pcm_nonblock(generic->slave, nonblock); in snd_pcm_generic_nonblock()
55 return snd_pcm_async(generic->slave, sig, pid); in snd_pcm_generic_async()
61 return snd_pcm_poll_descriptors_count(generic->slave); in snd_pcm_generic_poll_descriptors_count()
67 return snd_pcm_poll_descriptors(generic->slave, pfds, space); in snd_pcm_generic_poll_descriptors()
73 return snd_pcm_poll_descriptors_revents(generic->slave, pfds, nfds, revents); in snd_pcm_generic_poll_revents()
79 return snd_pcm_info(generic->slave, info); in snd_pcm_generic_info()
85 return snd_pcm_hw_free(generic->slave); in snd_pcm_generic_hw_free()
91 return snd_pcm_sw_params(generic->slave, params); in snd_pcm_generic_sw_params()
97 return snd_pcm_hw_refine(generic->slave, params); in snd_pcm_generic_hw_refine()
[all …]
Dpcm_plugin.c142 int err = snd_pcm_delay(plugin->gen.slave, &sd); in snd_pcm_plugin_delay()
151 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_call_init_cb() local
154 assert(pcm->boundary == slave->boundary); in snd_pcm_plugin_call_init_cb()
155 *pcm->hw.ptr = *slave->hw.ptr; in snd_pcm_plugin_call_init_cb()
156 *pcm->appl.ptr = *slave->appl.ptr; in snd_pcm_plugin_call_init_cb()
169 err = snd_pcm_prepare(plugin->gen.slave); in snd_pcm_plugin_prepare()
179 err = snd_pcm_reset(plugin->gen.slave); in snd_pcm_plugin_reset()
202 sframes = snd_pcm_rewind(plugin->gen.slave, sframes); in snd_pcm_plugin_rewind()
226 sframes = INTERNAL(snd_pcm_forward)(plugin->gen.slave, sframes); in snd_pcm_plugin_forward()
239 snd_pcm_t *slave = plugin->gen.slave; in snd_pcm_plugin_write_areas() local
[all …]
Dpcm_mmap_emul.c66 err = snd_pcm_hw_refine(map->gen.slave, params); in snd_pcm_mmap_emul_hw_refine()
88 err = snd_pcm_hw_refine(map->gen.slave, &new); in snd_pcm_mmap_emul_hw_refine()
163 err = _snd_pcm_hw_params_internal(map->gen.slave, params); in snd_pcm_mmap_emul_hw_params()
189 err = _snd_pcm_hw_params_internal(map->gen.slave, params); in snd_pcm_mmap_emul_hw_params()
277 snd_pcm_t *slave = map->gen.slave; in sync_slave_write() local
284 size = map->appl_ptr - *slave->appl.ptr; in sync_slave_write()
288 offset = *slave->appl.ptr % pcm->buffer_size; in sync_slave_write()
300 snd_pcm_t *slave = map->gen.slave; in sync_slave_read() local
304 size = *slave->hw.ptr - map->hw_ptr; in sync_slave_read()
321 snd_pcm_t *slave = map->gen.slave; in snd_pcm_mmap_emul_mmap_commit() local
[all …]
Dpcm_rate.c355 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_hw_params() local
394 sinfo->format = slave->format; in snd_pcm_rate_hw_params()
395 sinfo->rate = slave->rate; in snd_pcm_rate_hw_params()
396 sinfo->buffer_size = slave->buffer_size; in snd_pcm_rate_hw_params()
397 sinfo->period_size = slave->period_size; in snd_pcm_rate_hw_params()
489 return snd_pcm_hw_free(rate->gen.slave); in snd_pcm_rate_hw_free()
495 snd_pcm_t *slave = rate->gen.slave; in recalc() local
499 *val = slave->buffer_size; in recalc()
503 *val = div * slave->period_size; in recalc()
505 *val = muldiv_near(*val, slave->period_size, pcm->period_size); in recalc()
[all …]
Dpcm_plug.c71 assert(plug->gen.slave == plug->req_slave); in snd_pcm_plug_close()
86 snd_pcm_t *slave = plug->req_slave; in snd_pcm_plug_info() local
89 if ((err = snd_pcm_info(slave, info)) < 0) in snd_pcm_plug_info()
349 snd_pcm_t *slave = plug->req_slave; in snd_pcm_plug_clear() local
351 if (plug->gen.slave != slave) { in snd_pcm_plug_clear()
352 snd_pcm_unlink_hw_ptr(pcm, plug->gen.slave); in snd_pcm_plug_clear()
353 snd_pcm_unlink_appl_ptr(pcm, plug->gen.slave); in snd_pcm_plug_clear()
354 snd_pcm_close(plug->gen.slave); in snd_pcm_plug_clear()
355 plug->gen.slave = slave; in snd_pcm_plug_clear()
356 pcm->fast_ops = slave->fast_ops; in snd_pcm_plug_clear()
[all …]
Dpcm_file.c154 snd_pcm_t *pcm = file->gen.slave; in snd_pcm_file_replace_fname()
515 int err = snd_pcm_reset(file->gen.slave); in snd_pcm_file_reset()
527 int err = snd_pcm_drop(file->gen.slave); in snd_pcm_file_drop()
540 int err = snd_pcm_drain(file->gen.slave); in snd_pcm_file_drain()
553 snd_pcm_sframes_t res = snd_pcm_rewindable(file->gen.slave); in snd_pcm_file_rewindable()
569 err = snd_pcm_rewind(file->gen.slave, frames); in snd_pcm_file_rewind()
581 snd_pcm_sframes_t res = snd_pcm_forwardable(file->gen.slave); in snd_pcm_file_forwardable()
597 err = INTERNAL(snd_pcm_forward)(file->gen.slave, frames); in snd_pcm_file_forward()
611 snd_pcm_sframes_t n = _snd_pcm_writei(file->gen.slave, buffer, size); in snd_pcm_file_writei()
629 snd_pcm_sframes_t n = _snd_pcm_writen(file->gen.slave, bufs, size); in snd_pcm_file_writen()
[all …]
Dpcm_copy.c152 snd_pcm_dump(copy->plug.gen.slave, out); in snd_pcm_copy_dump()
184 int snd_pcm_copy_open(snd_pcm_t **pcmp, const char *name, snd_pcm_t *slave, int close_slave) in snd_pcm_copy_open() argument
189 assert(pcmp && slave); in snd_pcm_copy_open()
199 copy->plug.gen.slave = slave; in snd_pcm_copy_open()
202 err = snd_pcm_new(&pcm, SND_PCM_TYPE_COPY, name, slave->stream, slave->mode); in snd_pcm_copy_open()
210 pcm->poll_fd = slave->poll_fd; in snd_pcm_copy_open()
211 pcm->poll_events = slave->poll_events; in snd_pcm_copy_open()
212 pcm->tstamp_type = slave->tstamp_type; in snd_pcm_copy_open()
269 snd_config_t *slave = NULL, *sconf; in _snd_pcm_copy_open() local
278 slave = n; in _snd_pcm_copy_open()
[all …]
Dpcm_meter.c189 snd_pcm_t *spcm = meter->gen.slave; in snd_pcm_meter_thread()
279 err = snd_pcm_close(meter->gen.slave); in snd_pcm_meter_close()
296 err = snd_pcm_prepare(meter->gen.slave); in snd_pcm_meter_prepare()
309 int err = snd_pcm_reset(meter->gen.slave); in snd_pcm_meter_reset()
322 err = snd_pcm_start(meter->gen.slave); in snd_pcm_meter_start()
332 snd_pcm_sframes_t err = snd_pcm_rewind(meter->gen.slave, frames); in snd_pcm_meter_rewind()
341 snd_pcm_sframes_t err = INTERNAL(snd_pcm_forward)(meter->gen.slave, frames); in snd_pcm_meter_forward()
353 snd_pcm_sframes_t result = snd_pcm_mmap_commit(meter->gen.slave, offset, size); in snd_pcm_meter_mmap_commit()
366 snd_pcm_sframes_t result = snd_pcm_avail_update(meter->gen.slave); in snd_pcm_meter_avail_update()
420 return snd_pcm_hw_refine(meter->gen.slave, params); in snd_pcm_meter_hw_refine_slave()
[all …]
/third_party/alsa-lib/src/conf/cards/
DEcho_Echo3G.conf81 { slave 0 channel 0 }
82 { slave 0 channel 1 }
83 { slave 1 channel 0 }
84 { slave 1 channel 1 }
125 { slave 0 channel 0 }
126 { slave 0 channel 1 }
127 { slave 1 channel 0 }
128 { slave 1 channel 1 }
129 { slave 2 channel 0 }
170 { slave 0 channel 0 }
[all …]
DICE1712.conf14 slave.pcm {
21 slave.pcm {
40 slave.pcm {
44 slave.channels 10
50 slave.pcm {
54 slave.channels 12
70 slave.pcm {
74 slave.channels 10
95 slave.pcm {
99 slave.channels 10
[all …]
DCA0106.conf14 slave.pcm {
21 slave.pcm {
104 { slave 0 channel 0 }
105 { slave 0 channel 1 }
106 { slave 1 channel 0 }
107 { slave 1 channel 1 }
153 { slave 0 channel 0 }
154 { slave 0 channel 1 }
155 { slave 1 channel 0 }
156 { slave 1 channel 1 }
[all …]
DAudigy2.conf13 slave.pcm {
66 slave.pcm {
102 slave.pcm {
154 slave.pcm {
230 { slave 0 channel 0 }
231 { slave 0 channel 1 }
232 { slave 1 channel 0 }
233 { slave 1 channel 1 }
275 { slave 0 channel 0 }
276 { slave 0 channel 1 }
[all …]
DCS46xx.conf26 slave.pcm {
33 slave.pcm {
48 slave.pcm {
108 { slave 0 channel 0 }
109 { slave 0 channel 1 }
110 { slave 1 channel 0 }
111 { slave 1 channel 1 }
156 { slave 0 channel 0 }
157 { slave 0 channel 1 }
158 { slave 1 channel 0 }
[all …]
DSI7018.conf27 slave.pcm {
74 { slave 0 channel 0 }
75 { slave 0 channel 1 }
76 { slave 1 channel 0 }
77 { slave 1 channel 1 }
122 { slave 0 channel 0 }
123 { slave 0 channel 1 }
124 { slave 1 channel 0 }
125 { slave 1 channel 1 }
126 { slave 2 channel 0 }
[all …]
DNFORCE.conf13 slave.pcm {
32 slave.pcm {
34 slave.pcm {
46 slave.pcm {
61 slave.pcm {
63 slave.pcm {
112 slave.pcm {
120 slave.pcm {
122 slave.pcm {
167 slave.channels 6
[all …]
DEMU10K1X.conf14 slave.pcm {
21 slave.pcm {
92 { slave 0 channel 0 }
93 { slave 0 channel 1 }
94 { slave 1 channel 0 }
95 { slave 1 channel 1 }
140 { slave 0 channel 0 }
141 { slave 0 channel 1 }
142 { slave 1 channel 0 }
143 { slave 1 channel 1 }
[all …]
DEMU10K1.conf15 slave.pcm {
74 slave.pcm {
113 slave.pcm {
213 { slave 0 channel 0 }
214 { slave 0 channel 1 }
215 { slave 1 channel 0 }
216 { slave 1 channel 1 }
261 { slave 0 channel 0 }
262 { slave 0 channel 1 }
263 { slave 1 channel 0 }
[all …]
DAudigy.conf13 slave.pcm {
66 slave.pcm {
102 slave.pcm {
178 { slave 0 channel 0 }
179 { slave 0 channel 1 }
180 { slave 1 channel 0 }
181 { slave 1 channel 1 }
223 { slave 0 channel 0 }
224 { slave 0 channel 1 }
225 { slave 1 channel 0 }
[all …]
DCMI8738-MC8.conf13 slave.pcm {
32 slave.pcm {
34 slave.pcm {
46 slave.pcm {
62 slave.pcm {
81 slave.pcm {
83 slave.pcm {
119 slave.pcm {
121 slave.pcm {
153 slave.pcm {
[all …]
DICH.conf13 slave.pcm {
32 slave.pcm {
34 slave.pcm {
46 slave.pcm {
61 slave.pcm {
63 slave.pcm {
112 slave.pcm {
120 slave.pcm {
122 slave.pcm {
167 slave.channels 6
[all …]
DICE1724.conf14 slave.pcm {
21 slave.pcm {
89 slave {
115 slave {
140 slave {
171 slave.pcm {
173 slave.pcm {
199 slave.format S32_LE
203 slave.pcm {
205 slave.pcm {
[all …]
/third_party/rust/crates/nix/test/
Dtest_pty.rs141 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair() localVariable
143 (master, slave) in open_ptty_pair()
153 let (master, slave) = open_ptty_pair(); in test_open_ptty_pair()
155 assert!(slave.as_raw_fd() > 0); in test_open_ptty_pair()
168 let (mut master, mut slave) = open_ptty_pair(); in test_read_ptty_pair()
169 make_raw(slave.as_raw_fd()); in test_read_ptty_pair()
172 slave.write_all(b"hello").unwrap(); in test_read_ptty_pair()
177 slave.write_all(b"hello").unwrap(); in test_read_ptty_pair()
185 let (mut master, mut slave) = open_ptty_pair(); in test_write_ptty_pair()
186 make_raw(slave.as_raw_fd()); in test_write_ptty_pair()
[all …]
/third_party/rust/crates/nix/test/sys/
Dtest_termios.rs25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
56 assert!(pty.slave > 0); in test_output_flags()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
59 close(pty.slave).unwrap(); in test_output_flags()
77 assert!(pty.slave > 0); in test_output_flags()
85 crate::read_exact(pty.slave, &mut buf); in test_output_flags()
88 close(pty.slave).unwrap(); in test_output_flags()
102 assert!(pty.slave > 0); in test_local_flags()
103 let termios = tcgetattr(pty.slave).unwrap(); in test_local_flags()
[all …]
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstclock.c77 GstClock *master, *slave; in GST_START_TEST() local
83 slave = g_object_new (TYPE_TEST_CLOCK, "name", "TestClockSlave", NULL); in GST_START_TEST()
84 gst_object_ref_sink (slave); in GST_START_TEST()
85 GST_OBJECT_FLAG_SET (slave, GST_CLOCK_FLAG_CAN_SET_MASTER); in GST_START_TEST()
88 fail_unless_equals_int (GST_OBJECT_REFCOUNT (slave), 1); in GST_START_TEST()
93 gst_clock_set_master (slave, master); in GST_START_TEST()
97 fail_unless_equals_int (GST_OBJECT_REFCOUNT (slave), 2); in GST_START_TEST()
107 gst_clock_set_master (slave, NULL); in GST_START_TEST()
110 fail_unless_equals_int (GST_OBJECT_REFCOUNT (slave), 1); in GST_START_TEST()
112 gst_object_unref (slave); in GST_START_TEST()

12345678