/third_party/alsa-lib/src/pcm/ |
H A D | pcm_share.c | 104 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() 136 /* Return number of frames to mmap_commit the slave */ 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 in _snd_pcm_share_slave_forward() 200 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_missing() local 346 _snd_pcm_share_slave_missing(snd_pcm_share_slave_t *slave) _snd_pcm_share_slave_missing() argument 364 snd_pcm_share_slave_t *slave = data; snd_pcm_share_thread() local 431 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_update() local 486 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_hw_refine_cprepare() local 530 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_hw_refine_sprepare() local 626 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_hw_params() local 682 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_hw_free() local 701 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_status() local 740 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_hwsync() local 753 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_hwsync() local 764 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_delay() local 783 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_delay() local 794 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_avail_update() local 816 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_htimestamp() local 830 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_mmap_commit() local 873 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_mmap_commit() local 884 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_prepare() local 917 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_reset() local 931 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_start() local 1007 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_channel_info() local 1020 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_rewind() local 1056 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_rewindable() local 1067 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_rewind() local 1078 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_forward() local 1113 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_forwardable() local 1124 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_forward() local 1136 snd_pcm_share_slave_t *slave = share->slave; _snd_pcm_share_stop() local 1171 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_drain() local 1229 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_drop() local 1266 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_close() local 1308 snd_pcm_share_slave_t *slave = share->slave; snd_pcm_share_dump() local 1394 snd_pcm_share_slave_t *slave = NULL; snd_pcm_share_open() local 1619 snd_config_t *slave = NULL, *sconf; _snd_pcm_share_open() local [all...] |
H A D | pcm_generic.c | 41 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, param in snd_pcm_generic_hw_refine() [all...] |
H A D | pcm_plugin.c | 40 The slave plugin can be specified directly with a string or the definition 67 slave slave_rate44100Hz 76 slave { 142 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() 239 snd_pcm_t *slave = plugin->gen.slave; snd_pcm_plugin_write_areas() local 296 snd_pcm_t *slave = plugin->gen.slave; snd_pcm_plugin_read_areas() local 391 snd_pcm_t *slave = plugin->gen.slave; snd_pcm_plugin_mmap_commit() local 464 snd_pcm_t *slave = plugin->gen.slave; snd_pcm_plugin_sync_hw_ptr_capture() local 540 snd_pcm_t *slave = plugin->gen.slave; snd_pcm_plugin_avail_update() local 605 snd_pcm_t *slave = generic->slave; snd_pcm_plugin_may_wait_for_avail_min_conv() local [all...] |
H A D | pcm_plug.c | 71 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() 354 snd_pcm_t *slave = plug->req_slave; in snd_pcm_plug_clear() local 356 if (plug->gen.slave != slave) { in snd_pcm_plug_clear() 357 snd_pcm_unlink_hw_ptr(pcm, plug->gen.slave); in snd_pcm_plug_clear() 358 snd_pcm_unlink_appl_ptr(pcm, plug->gen.slave); in snd_pcm_plug_clear() 359 snd_pcm_close(plug->gen.slave); in snd_pcm_plug_clear() 360 plug->gen.slave in snd_pcm_plug_clear() 499 iec958_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) iec958_open() argument 667 snd_pcm_plug_insert_plugins(snd_pcm_t *pcm, snd_pcm_plug_params_t *client, snd_pcm_plug_params_t *slave) snd_pcm_plug_insert_plugins() argument 816 snd_pcm_t *slave = plug->req_slave; snd_pcm_plug_hw_refine_schange() local 1037 snd_pcm_t *slave = plug->req_slave; snd_pcm_plug_hw_params() local 1091 snd_pcm_t *slave = plug->gen.slave; snd_pcm_plug_hw_free() local 1100 snd_pcm_t *slave = plug->gen.slave; snd_pcm_plug_sw_params() local 1146 snd_pcm_plug_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, int schannels, int srate, const snd_config_t *rate_converter, enum snd_pcm_plug_route_policy route_policy, snd_pcm_route_ttable_entry_t *ttable, unsigned int tt_ssize, unsigned int tt_cused, unsigned int tt_sused, snd_pcm_t *slave, int close_slave) snd_pcm_plug_open() argument 1271 snd_config_t *slave = NULL, *sconf; _snd_pcm_plug_open() local [all...] |
H A D | pcm_rate.c | 59 snd_pcm_channel_area_t *sareas; /* areas for splitted period (slave pcm) */ 68 int start_pending; /* start is triggered but not commited to slave */ 250 snd_output_printf(out, "REFINE (slave params):\n"); in snd_pcm_rate_hw_refine_cchange() 260 snd_output_printf(out, "REFINE (slave params):\n"); in snd_pcm_rate_hw_refine_cchange() 354 snd_pcm_t *slave = rate->gen.slave; in snd_pcm_rate_hw_params() local 393 sinfo->format = slave->format; in snd_pcm_rate_hw_params() 394 sinfo->rate = slave->rate; in snd_pcm_rate_hw_params() 395 sinfo->buffer_size = slave->buffer_size; in snd_pcm_rate_hw_params() 396 sinfo->period_size = slave in snd_pcm_rate_hw_params() 494 snd_pcm_t *slave = rate->gen.slave; recalc() local 511 snd_pcm_t *slave = rate->gen.slave; snd_pcm_rate_sw_params() local 999 snd_pcm_t *slave = rate->gen.slave; snd_pcm_rate_sync_playback_area() local 1047 snd_pcm_t *slave = rate->gen.slave; snd_pcm_rate_avail_update_capture() local 1495 snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, unsigned int srate, const snd_config_t *converter, snd_pcm_t *slave, int close_slave) snd_pcm_rate_open() argument 1681 snd_config_t *slave = NULL, *sconf; _snd_pcm_rate_open() local [all...] |
H A D | pcm_mmap_emul.c | 66 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() 150 * from the layering slave PCM, and they are sync'ed appropriately in 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() 220 /* HACK: don't auto-start in the slave PCM */ in snd_pcm_mmap_emul_sw_params() 272 /* write out the uncommitted chunk on mmap buffer to the slave PCM */ 277 snd_pcm_t *slave = map->gen.slave; in sync_slave_write() local 284 size = map->appl_ptr - *slave in sync_slave_write() 300 snd_pcm_t *slave = map->gen.slave; sync_slave_read() local 321 snd_pcm_t *slave = map->gen.slave; snd_pcm_mmap_emul_mmap_commit() local 334 snd_pcm_t *slave = map->gen.slave; snd_pcm_mmap_emul_avail_update() local 407 __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name, snd_pcm_t *slave, int close_slave) __snd_pcm_mmap_emul_open() argument 479 snd_config_t *slave = NULL, *sconf; _snd_pcm_mmap_emul_open() local [all...] |
H A D | pcm_copy.c | 152 snd_pcm_dump(copy->plug.gen.slave, out); in snd_pcm_copy_dump() 177 * \param slave Slave PCM handle 178 * \param close_slave When set, the slave PCM handle is closed with copy PCM 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 in snd_pcm_copy_open() 269 snd_config_t *slave = NULL, *sconf; _snd_pcm_copy_open() local [all...] |
H A D | pcm_meter.c | 191 snd_pcm_t *spcm = meter->gen.slave; in snd_pcm_meter_thread() 281 err = snd_pcm_close(meter->gen.slave); in snd_pcm_meter_close() 298 err = snd_pcm_prepare(meter->gen.slave); in snd_pcm_meter_prepare() 311 int err = snd_pcm_reset(meter->gen.slave); in snd_pcm_meter_reset() 324 err = snd_pcm_start(meter->gen.slave); in snd_pcm_meter_start() 334 snd_pcm_sframes_t err = snd_pcm_rewind(meter->gen.slave, frames); in snd_pcm_meter_rewind() 343 snd_pcm_sframes_t err = INTERNAL(snd_pcm_forward)(meter->gen.slave, frames); in snd_pcm_meter_forward() 355 snd_pcm_sframes_t result = snd_pcm_mmap_commit(meter->gen.slave, offset, size); in snd_pcm_meter_mmap_commit() 368 snd_pcm_sframes_t result = snd_pcm_avail_update(meter->gen.slave); in snd_pcm_meter_avail_update() 422 return snd_pcm_hw_refine(meter->gen.slave, param in snd_pcm_meter_hw_refine_slave() 445 snd_pcm_t *slave = meter->gen.slave; snd_pcm_meter_hw_params() local 569 snd_pcm_meter_open(snd_pcm_t **pcmp, const char *name, unsigned int frequency, snd_pcm_t *slave, int close_slave) snd_pcm_meter_open() argument 765 snd_config_t *slave = NULL, *sconf; _snd_pcm_meter_open() local [all...] |
H A D | pcm_file.c | 154 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, buf in snd_pcm_file_writen() 755 snd_pcm_t *slave = file->gen.slave; snd_pcm_file_hw_params() local 898 snd_pcm_file_open(snd_pcm_t **pcmp, const char *name, const char *fname, int fd, const char *ifname, int ifd, int trunc, const char *fmt, int perm, snd_pcm_t *slave, int close_slave, snd_pcm_stream_t stream) snd_pcm_file_open() argument 1041 snd_config_t *slave = NULL, *sconf; _snd_pcm_file_open() local [all...] |
H A D | pcm_lfloat.c | 271 snd_pcm_t *slave = lfloat->plug.gen.slave; in snd_pcm_lfloat_hw_params() local 282 dst_format = slave->format; in snd_pcm_lfloat_hw_params() 284 src_format = slave->format; in snd_pcm_lfloat_hw_params() 349 snd_pcm_dump(lfloat->plug.gen.slave, out); in snd_pcm_lfloat_dump() 375 * \param slave Slave PCM handle 376 * \param close_slave When set, the slave PCM handle is closed with copy PCM 382 int snd_pcm_lfloat_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_lfloat_open() argument 387 assert(pcmp && slave); in snd_pcm_lfloat_open() 401 lfloat->plug.gen.slave in snd_pcm_lfloat_open() 473 snd_config_t *slave = NULL, *sconf; _snd_pcm_lfloat_open() local [all...] |
H A D | pcm_asym.c | 26 playback STR # Playback slave name 28 playback { # Playback slave definition 33 capture STR # Capture slave name 35 capture { # Capture slave definition 83 snd_config_t *slave = NULL, *sconf; in _snd_pcm_asym_open() local 93 slave = n; in _snd_pcm_asym_open() 98 slave = n; in _snd_pcm_asym_open() 104 if (! slave) { in _snd_pcm_asym_open() 105 SNDERR("%s slave is not defined", in _snd_pcm_asym_open() 109 err = snd_pcm_slave_conf(root, slave, in _snd_pcm_asym_open() [all...] |
H A D | pcm_adpcm.c | 442 adpcm->states = malloc(adpcm->plug.gen.slave->channels * sizeof(*adpcm->states)); in snd_pcm_adpcm_hw_params() 453 return snd_pcm_hw_free(adpcm->plug.gen.slave); in snd_pcm_adpcm_hw_free() 517 snd_pcm_dump(adpcm->plug.gen.slave, out); in snd_pcm_adpcm_dump() 543 * \param slave Slave PCM handle 544 * \param close_slave When set, the slave PCM handle is closed with copy PCM 550 int snd_pcm_adpcm_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_adpcm_open() argument 555 assert(pcmp && slave); in snd_pcm_adpcm_open() 568 adpcm->plug.gen.slave = slave; in snd_pcm_adpcm_open() 571 err = snd_pcm_new(&pcm, SND_PCM_TYPE_ADPCM, name, slave in snd_pcm_adpcm_open() 640 snd_config_t *slave = NULL, *sconf; _snd_pcm_adpcm_open() local [all...] |
H A D | pcm_hooks.c | 152 snd_pcm_dump(h->gen.slave, out); in snd_pcm_hooks_dump() 209 * \param slave Slave PCM 210 * \param close_slave If set, slave PCM handle is closed when hooks PCM is closed 216 int snd_pcm_hooks_open(snd_pcm_t **pcmp, const char *name, snd_pcm_t *slave, int close_slave) in snd_pcm_hooks_open() argument 222 assert(pcmp && slave); in snd_pcm_hooks_open() 226 h->gen.slave = slave; in snd_pcm_hooks_open() 232 err = snd_pcm_new(&pcm, SND_PCM_TYPE_HOOKS, name, slave->stream, slave->mode); in snd_pcm_hooks_open() 240 pcm->poll_fd = slave in snd_pcm_hooks_open() 487 snd_config_t *slave = NULL, *sconf; _snd_pcm_hooks_open() local [all...] |
H A D | pcm_multi.c | 73 snd_pcm_multi_slave_t *slave = &multi->slaves[i]; in snd_pcm_multi_close() local 74 if (slave->close_slave) { in snd_pcm_multi_close() 75 int err = snd_pcm_close(slave->pcm); in snd_pcm_multi_close() 108 snd_pcm_t *slave; in snd_pcm_multi_poll_descriptors() local 114 slave = multi->slaves[i].pcm; in snd_pcm_multi_poll_descriptors() 115 if (slave == slave_0) in snd_pcm_multi_poll_descriptors() 117 err = snd_pcm_poll_descriptors(slave, pfds, space); in snd_pcm_multi_poll_descriptors() 169 snd_pcm_multi_slave_t *slave = &multi->slaves[slave_idx]; in snd_pcm_multi_hw_refine_sprepare() local 175 slave->channels_count, 0); in snd_pcm_multi_hw_refine_sprepare() 252 snd_pcm_t *slave in snd_pcm_multi_hw_refine_slave() local 302 snd_pcm_t *slave = multi->slaves[slave_idx].pcm; snd_pcm_multi_hw_params_slave() local 363 snd_pcm_t *slave = multi->slaves[i].pcm; snd_pcm_multi_hw_free() local 383 snd_pcm_t *slave = multi->slaves[i].pcm; snd_pcm_multi_sw_params() local 395 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; snd_pcm_multi_status() local 411 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; snd_pcm_multi_state() local 497 snd_pcm_t *slave = multi->slaves[multi->master_slave].pcm; snd_pcm_multi_htimestamp() local 786 snd_pcm_t *slave; snd_pcm_multi_mmap_commit() local 828 snd_pcm_t *slave; snd_pcm_multi_mmap() local 1116 snd_pcm_multi_slave_t *slave = &multi->slaves[i]; snd_pcm_multi_open() local 1360 int slave = -1; _snd_pcm_multi_open() local [all...] |
H A D | pcm_linear.c | 393 snd_pcm_dump(linear->plug.gen.slave, out); in snd_pcm_linear_dump() 420 * \param slave Slave PCM handle 421 * \param close_slave When set, the slave PCM handle is closed with copy PCM 427 int snd_pcm_linear_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_linear_open() argument 432 assert(pcmp && slave); in snd_pcm_linear_open() 445 linear->plug.gen.slave = slave; in snd_pcm_linear_open() 448 err = snd_pcm_new(&pcm, SND_PCM_TYPE_LINEAR, name, slave->stream, slave->mode); in snd_pcm_linear_open() 456 pcm->poll_fd = slave in snd_pcm_linear_open() 516 snd_config_t *slave = NULL, *sconf; _snd_pcm_linear_open() local [all...] |
H A D | pcm_mulaw.c | 405 snd_pcm_dump(mulaw->plug.gen.slave, out); in snd_pcm_mulaw_dump() 430 * \param slave Slave PCM handle 431 * \param close_slave When set, the slave PCM handle is closed with copy PCM 437 int snd_pcm_mulaw_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_mulaw_open() argument 442 assert(pcmp && slave); in snd_pcm_mulaw_open() 456 mulaw->plug.gen.slave = slave; in snd_pcm_mulaw_open() 459 err = snd_pcm_new(&pcm, SND_PCM_TYPE_MULAW, name, slave->stream, slave->mode); in snd_pcm_mulaw_open() 467 pcm->poll_fd = slave in snd_pcm_mulaw_open() 528 snd_config_t *slave = NULL, *sconf; _snd_pcm_mulaw_open() local [all...] |
H A D | pcm_alaw.c | 391 snd_pcm_dump(alaw->plug.gen.slave, out); in snd_pcm_alaw_dump() 417 * \param slave Slave PCM handle 418 * \param close_slave When set, the slave PCM handle is closed with copy PCM 424 int snd_pcm_alaw_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close_slave) in snd_pcm_alaw_open() argument 429 assert(pcmp && slave); in snd_pcm_alaw_open() 443 alaw->plug.gen.slave = slave; in snd_pcm_alaw_open() 446 err = snd_pcm_new(&pcm, SND_PCM_TYPE_ALAW, name, slave->stream, slave->mode); in snd_pcm_alaw_open() 454 pcm->poll_fd = slave in snd_pcm_alaw_open() 515 snd_config_t *slave = NULL, *sconf; _snd_pcm_alaw_open() local [all...] |
H A D | pcm_empty.c | 46 slave STR # Slave name 48 slave { # Slave definition 83 snd_config_t *slave = NULL, *sconf; in _snd_pcm_empty_open() local 94 if (strcmp(id, "slave") == 0) { in _snd_pcm_empty_open() 95 slave = n; in _snd_pcm_empty_open() 101 if (!slave) { in _snd_pcm_empty_open() 102 SNDERR("slave is not defined"); in _snd_pcm_empty_open() 105 err = snd_pcm_slave_conf(root, slave, &sconf, 0); in _snd_pcm_empty_open()
|
H A D | pcm_softvol.c | 451 snd_pcm_close(svol->plug.gen.slave); in softvol_free() 621 snd_pcm_t *slave = svol->plug.gen.slave; in snd_pcm_softvol_hw_params() local 629 if (slave->format != SND_PCM_FORMAT_S16_LE && in snd_pcm_softvol_hw_params() 630 slave->format != SND_PCM_FORMAT_S16_BE && in snd_pcm_softvol_hw_params() 631 slave->format != SND_PCM_FORMAT_S24_3LE && in snd_pcm_softvol_hw_params() 632 slave->format != SND_PCM_FORMAT_S24_LE && in snd_pcm_softvol_hw_params() 633 slave->format != SND_PCM_FORMAT_S32_LE && in snd_pcm_softvol_hw_params() 634 slave->format != SND_PCM_FORMAT_S32_BE) { in snd_pcm_softvol_hw_params() 639 svol->sformat = slave in snd_pcm_softvol_hw_params() 914 snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, int ctl_card, snd_ctl_elem_id_t *ctl_id, int cchannels, double min_dB, double max_dB, int resolution, snd_pcm_t *slave, int close_slave) snd_pcm_softvol_open() argument 1157 snd_config_t *slave = NULL, *sconf; _snd_pcm_softvol_open() local [all...] |
/third_party/rust/crates/nix/test/ |
H A D | test_pty.rs | 38 // Get the name of the slave in test_ptsname_equivalence() 55 // Get the name of the slave in test_ptsname_copy() 72 // Get the name of the slave in test_ptsname_r_copy() 93 // Get the name of the slave in test_ptsname_unique() 106 // Allow a slave to be generated for it in open_ptty_pair() 110 // Get the name of the slave in open_ptty_pair() 113 // Open the slave device in open_ptty_pair() 141 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair() 143 (master, slave) in open_ptty_pair() 146 /// Test opening a master/slave PTT [all...] |
/third_party/rust/crates/nix/test/sys/ |
H A D | test_termios.rs | 25 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() 83 // Read from the slave verifying that the output has been properly transformed in test_output_flags() 85 crate::read_exact(pty.slave, &mut buf); in test_output_flags() 88 close(pty.slave) in test_output_flags() [all...] |
/third_party/alsa-lib/include/ |
H A D | pcm_plugin.h | 81 snd_pcm_t *slave, int close_slave); 90 snd_pcm_format_t sformat, snd_pcm_t *slave, 100 snd_pcm_format_t sformat, snd_pcm_t *slave, 110 snd_pcm_format_t sformat, snd_pcm_t *slave, 120 snd_pcm_format_t sformat, snd_pcm_t *slave, 130 snd_pcm_format_t sformat, snd_pcm_t *slave, 140 snd_pcm_format_t sformat, snd_pcm_t *slave, 164 snd_pcm_t *slave, int close_slave); 175 snd_pcm_t *slave, int close_slave); 184 snd_pcm_t *slave, in [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | tee_common.c | 33 int ff_tee_parse_slave_options(void *log, char *slave, in ff_tee_parse_slave_options() argument 40 if (!strspn(slave, slave_opt_open)) { in ff_tee_parse_slave_options() 41 *filename = slave; in ff_tee_parse_slave_options() 44 p = slave + 1; in ff_tee_parse_slave_options()
|
H A D | tee.c | 156 static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) in open_slave() argument 170 if ((ret = ff_tee_parse_slave_options(avf, slave, &options, &filename)) < 0) in open_slave() 270 subselect, slave); in open_slave() 299 av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n", slave, in open_slave() 306 slave, av_err2str(ret)); in open_slave() 335 "Invalid stream specifier '%s' in bsfs option '%s' for slave " in open_slave() 341 av_log(avf, AV_LOG_DEBUG, "spec:%s bsfs:%s matches stream %d of slave " in open_slave() 345 "Duplicate bsfs specification associated to stream %d of slave " in open_slave() 353 "stream %d of slave output '%s'\n", entry->value, i, filename); in open_slave() 410 static void log_slave(TeeSlave *slave, voi argument 461 char *slave = av_get_token(&filename, slave_delim); tee_write_header() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_openpty.py | 11 master, slave = os.openpty() 13 self.addCleanup(os.close, slave) 14 if not os.isatty(slave): 17 os.write(slave, b'Ping!')
|