/third_party/alsa-lib/src/pcm/ |
D | pcm_direct.c | 582 if (snd_pcm_state(direct->spcm) != SND_PCM_STATE_XRUN) { 593 ret = snd_pcm_prepare(direct->spcm); 607 dst_areas = snd_pcm_mmap_areas(direct->spcm); 608 snd_pcm_areas_silence(dst_areas, 0, direct->spcm->channels, 609 direct->spcm->buffer_size, 610 direct->spcm->format); 613 ret = snd_pcm_start(direct->spcm); 721 switch (snd_pcm_state(dmix->spcm)) { 767 if (dmix->spcm && !dmix->shmptr->use_server) 768 return snd_pcm_info(dmix->spcm, info); [all …]
|
D | pcm_dsnoop.c | 64 ptr2 = *dsnoop->spcm->hw.ptr; in snoop_timestamp() 68 dsnoop->update_tstamp = snd_pcm_hw_fast_tstamp(dsnoop->spcm); in snoop_timestamp() 111 src_areas = snd_pcm_mmap_areas(dsnoop->spcm); in snd_pcm_dsnoop_sync_area() 137 switch (snd_pcm_state(dsnoop->spcm)) { in snd_pcm_dsnoop_sync_ptr() 151 snd_pcm_hwsync(dsnoop->spcm); in snd_pcm_dsnoop_sync_ptr() 193 snd_pcm_status(dsnoop->spcm, status); in snd_pcm_dsnoop_status() 194 state = snd_pcm_state(dsnoop->spcm); in snd_pcm_dsnoop_status() 211 state = snd_pcm_state(dsnoop->spcm); in snd_pcm_dsnoop_state() 290 snd_pcm_hwsync(dsnoop->spcm); in snd_pcm_dsnoop_start() 400 snd_pcm_close(dsnoop->spcm); in snd_pcm_dsnoop_close() [all …]
|
D | pcm_dshare.c | 65 dst_areas = snd_pcm_mmap_areas(dshare->spcm); in do_silence() 134 dst_areas = snd_pcm_mmap_areas(dshare->spcm); in snd_pcm_dshare_sync_area() 204 switch (snd_pcm_state(dshare->spcm)) { in snd_pcm_dshare_sync_ptr() 218 snd_pcm_hwsync(dshare->spcm); in snd_pcm_dshare_sync_ptr() 220 return snd_pcm_dshare_sync_ptr0(pcm, *dshare->spcm->hw.ptr); in snd_pcm_dshare_sync_ptr() 234 snd_pcm_status(dshare->spcm, status); in snd_pcm_dshare_status() 260 state = snd_pcm_state(dshare->spcm); in snd_pcm_dshare_state() 330 dshare->slave_appl_ptr = dshare->slave_hw_ptr = *dshare->spcm->hw.ptr; in snd_pcm_dshare_reset() 339 snd_pcm_hwsync(dshare->spcm); in snd_pcm_dshare_start_timer() 340 dshare->slave_appl_ptr = dshare->slave_hw_ptr = *dshare->spcm->hw.ptr; in snd_pcm_dshare_start_timer() [all …]
|
D | pcm_share.c | 201 snd_pcm_t *spcm = slave->pcm; in _snd_pcm_share_missing() local 202 snd_pcm_uframes_t buffer_size = spcm->buffer_size; in _snd_pcm_share_missing() 238 err = snd_pcm_mmap_commit(spcm, snd_pcm_mmap_offset(spcm), frames); in _snd_pcm_share_missing() 356 snd_pcm_t *spcm = slave->pcm; in snd_pcm_share_thread() local 362 err = snd_pcm_poll_descriptors(spcm, &pfd[1], 1); in snd_pcm_share_thread() 383 hw_ptr += spcm->period_size - 1; in snd_pcm_share_thread() 384 if (hw_ptr >= spcm->boundary) in snd_pcm_share_thread() 385 hw_ptr -= spcm->boundary; in snd_pcm_share_thread() 386 hw_ptr -= hw_ptr % spcm->period_size; in snd_pcm_share_thread() 387 avail_min = hw_ptr - *spcm->appl.ptr; in snd_pcm_share_thread() [all …]
|
D | pcm_dmix.c | 359 dst_areas = snd_pcm_mmap_areas(dmix->spcm); in snd_pcm_dmix_sync_area() 429 switch (snd_pcm_state(dmix->spcm)) { in snd_pcm_dmix_sync_ptr() 443 snd_pcm_hwsync(dmix->spcm); in snd_pcm_dmix_sync_ptr() 445 return snd_pcm_dmix_sync_ptr0(pcm, *dmix->spcm->hw.ptr); in snd_pcm_dmix_sync_ptr() 457 state = snd_pcm_state(dmix->spcm); in snd_pcm_dmix_state() 481 snd_pcm_status(dmix->spcm, status); in snd_pcm_dmix_status() 556 dmix->slave_appl_ptr = dmix->slave_hw_ptr = *dmix->spcm->hw.ptr; in snd_pcm_dmix_reset() 565 snd_pcm_hwsync(dmix->spcm); in snd_pcm_dmix_start_timer() 566 dmix->slave_appl_ptr = dmix->slave_hw_ptr = *dmix->spcm->hw.ptr; in snd_pcm_dmix_start_timer() 614 switch (snd_pcm_state(dmix->spcm)) { in __snd_pcm_dmix_drain() [all …]
|
D | pcm_meter.c | 189 snd_pcm_t *spcm = meter->gen.slave; in snd_pcm_meter_thread() local 202 err = snd_pcm_status(spcm, &status); in snd_pcm_meter_thread() 206 spcm->stream != SND_PCM_STREAM_PLAYBACK)) { in snd_pcm_meter_thread() 762 snd_pcm_t *spcm; in _snd_pcm_meter_open() local 803 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_meter_open() 807 …err = snd_pcm_meter_open(pcmp, name, frequency > 0 ? (unsigned int) frequency : FREQUENCY, spcm, 1… in _snd_pcm_meter_open() 809 snd_pcm_close(spcm); in _snd_pcm_meter_open() 1010 snd_pcm_t *spcm = meter->gen.slave; in s16_enable() local 1014 if (spcm->format == SND_PCM_FORMAT_S16 && in s16_enable() 1015 spcm->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) { in s16_enable() [all …]
|
D | pcm_copy.c | 268 snd_pcm_t *spcm; in _snd_pcm_copy_open() local 291 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_copy_open() 295 err = snd_pcm_copy_open(pcmp, name, spcm, 1); in _snd_pcm_copy_open() 297 snd_pcm_close(spcm); in _snd_pcm_copy_open()
|
D | pcm_extplug.c | 682 snd_pcm_t *spcm, *pcm; in snd_pcm_extplug_create() local 701 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, NULL); in snd_pcm_extplug_create() 718 ext->plug.gen.slave = spcm; in snd_pcm_extplug_create() 733 pcm->poll_fd = spcm->poll_fd; in snd_pcm_extplug_create() 734 pcm->poll_events = spcm->poll_events; in snd_pcm_extplug_create() 735 pcm->tstamp_type = spcm->tstamp_type; in snd_pcm_extplug_create()
|
D | pcm_mmap_emul.c | 478 snd_pcm_t *spcm; in _snd_pcm_mmap_emul_open() local 502 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_mmap_emul_open() 506 err = __snd_pcm_mmap_emul_open(pcmp, name, spcm, 1); in _snd_pcm_mmap_emul_open() 508 snd_pcm_close(spcm); in _snd_pcm_mmap_emul_open()
|
D | pcm_alaw.c | 514 snd_pcm_t *spcm; in _snd_pcm_alaw_open() local 545 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_alaw_open() 549 err = snd_pcm_alaw_open(pcmp, name, sformat, spcm, 1); in _snd_pcm_alaw_open() 551 snd_pcm_close(spcm); in _snd_pcm_alaw_open()
|
D | pcm_mulaw.c | 528 snd_pcm_t *spcm; in _snd_pcm_mulaw_open() local 559 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_mulaw_open() 563 err = snd_pcm_mulaw_open(pcmp, name, sformat, spcm, 1); in _snd_pcm_mulaw_open() 565 snd_pcm_close(spcm); in _snd_pcm_mulaw_open()
|
D | pcm_route.c | 1295 snd_pcm_t *spcm; in _snd_pcm_route_open() local 1367 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_route_open() 1378 chmaps = snd_pcm_query_chmaps(spcm); in _snd_pcm_route_open() 1385 snd_pcm_close(spcm); in _snd_pcm_route_open() 1394 snd_pcm_close(spcm); in _snd_pcm_route_open() 1401 snd_pcm_close(spcm); in _snd_pcm_route_open() 1410 snd_pcm_close(spcm); in _snd_pcm_route_open() 1417 spcm, 1); in _snd_pcm_route_open() 1422 snd_pcm_close(spcm); in _snd_pcm_route_open()
|
D | pcm_lfloat.c | 473 snd_pcm_t *spcm; in _snd_pcm_lfloat_open() local 504 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_lfloat_open() 508 err = snd_pcm_lfloat_open(pcmp, name, sformat, spcm, 1); in _snd_pcm_lfloat_open() 510 snd_pcm_close(spcm); in _snd_pcm_lfloat_open()
|
D | pcm_linear.c | 516 snd_pcm_t *spcm; in _snd_pcm_linear_open() local 546 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_linear_open() 550 err = snd_pcm_linear_open(pcmp, name, sformat, spcm, 1); in _snd_pcm_linear_open() 552 snd_pcm_close(spcm); in _snd_pcm_linear_open()
|
D | pcm_direct.h | 141 snd_pcm_t *spcm; /* slave PCM handle */ member 317 int snd_pcm_direct_initialize_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, struct slave_params *p… 318 int snd_pcm_direct_initialize_secondary_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, struct slave…
|
D | pcm_hooks.c | 486 snd_pcm_t *rpcm = NULL, *spcm; in _snd_pcm_hooks_open() local 518 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_hooks_open() 522 err = snd_pcm_hooks_open(&rpcm, name, spcm, 1); in _snd_pcm_hooks_open() 524 snd_pcm_close(spcm); in _snd_pcm_hooks_open()
|
D | pcm_adpcm.c | 640 snd_pcm_t *spcm; in _snd_pcm_adpcm_open() local 671 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_adpcm_open() 675 err = snd_pcm_adpcm_open(pcmp, name, sformat, spcm, 1); in _snd_pcm_adpcm_open() 677 snd_pcm_close(spcm); in _snd_pcm_adpcm_open()
|
D | pcm_iec958.c | 693 snd_pcm_t *spcm; in _snd_pcm_iec958_open() local 805 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_iec958_open() 809 err = snd_pcm_iec958_open(pcmp, name, sformat, spcm, 1, in _snd_pcm_iec958_open() 813 snd_pcm_close(spcm); in _snd_pcm_iec958_open()
|
D | pcm_softvol.c | 1157 snd_pcm_t *spcm; in _snd_pcm_softvol_open() local 1255 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_softvol_open() 1261 snd_pcm_close(spcm); in _snd_pcm_softvol_open() 1266 resolution, spcm, 1); in _snd_pcm_softvol_open() 1268 snd_pcm_close(spcm); in _snd_pcm_softvol_open()
|
D | pcm_file.c | 1040 snd_pcm_t *spcm; in _snd_pcm_file_open() local 1132 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_file_open() 1137 trunc, format, perm, spcm, 1, stream); in _snd_pcm_file_open() 1139 snd_pcm_close(spcm); in _snd_pcm_file_open()
|
D | pcm_plug.c | 1229 snd_pcm_t *spcm; in _snd_pcm_plug_open() local 1324 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_plug_open() 1329 route_policy, ttable, ssize, cused, sused, spcm, 1); in _snd_pcm_plug_open() 1331 snd_pcm_close(spcm); in _snd_pcm_plug_open()
|
D | pcm_rate.c | 1646 snd_pcm_t *spcm; in _snd_pcm_rate_open() local 1686 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_rate_open() 1691 converter, spcm, 1); in _snd_pcm_rate_open() 1693 snd_pcm_close(spcm); in _snd_pcm_rate_open()
|
D | pcm_ladspa.c | 1739 snd_pcm_t *spcm; in _snd_pcm_ladspa_open() local 1797 err = snd_pcm_open_slave(&spcm, root, sconf, stream, mode, conf); in _snd_pcm_ladspa_open() 1801 err = snd_pcm_ladspa_open(pcmp, name, path, channels, pplugins, cplugins, spcm, 1); in _snd_pcm_ladspa_open() 1803 snd_pcm_close(spcm); in _snd_pcm_ladspa_open()
|