Home
last modified time | relevance | path

Searched refs:avail_min (Results 1 – 24 of 24) sorted by relevance

/third_party/alsa-lib/src/rawmidi/
Drawmidi.c164 params->avail_min = 1; in snd_rawmidi_params_default()
751 assert(val > params->avail_min); in snd_rawmidi_params_set_buffer_size()
781 params->avail_min = val; in snd_rawmidi_params_set_avail_min()
793 return params->avail_min; in snd_rawmidi_params_get_avail_min()
929 rawmidi->avail_min = params->avail_min; in snd_rawmidi_params()
946 params->avail_min = rawmidi->avail_min; in snd_rawmidi_params_current()
Drawmidi_local.h51 size_t avail_min; member
/third_party/alsa-lib/src/pcm/
Dpcm_share.c275 ready_missing = pcm->avail_min - avail; in _snd_pcm_share_missing()
381 snd_pcm_sframes_t avail_min; in snd_pcm_share_thread() local
387 avail_min = hw_ptr - *spcm->appl.ptr; in snd_pcm_share_thread()
389 avail_min += spcm->buffer_size; in snd_pcm_share_thread()
390 if (avail_min < 0) in snd_pcm_share_thread()
391 avail_min += spcm->boundary; in snd_pcm_share_thread()
393 if ((snd_pcm_uframes_t)avail_min != spcm->avail_min) { in snd_pcm_share_thread()
394 snd_pcm_sw_params_set_avail_min(spcm, &slave->sw_params, avail_min); in snd_pcm_share_thread()
435 snd_pcm_sframes_t avail_min; in _snd_pcm_share_update() local
441 avail_min = hw_ptr - *spcm->appl.ptr; in _snd_pcm_share_update()
[all …]
Dpcm_rate.c536 recalc(pcm, &sparams->avail_min); in snd_pcm_rate_sw_params()
537 rate->orig_avail_min = sparams->avail_min; in snd_pcm_rate_sw_params()
539 if (sparams->avail_min < 1) sparams->avail_min = 1; in snd_pcm_rate_sw_params()
541 if (sparams->start_threshold > (slave->buffer_size / sparams->avail_min) * sparams->avail_min) in snd_pcm_rate_sw_params()
542 sparams->start_threshold = (slave->buffer_size / sparams->avail_min) * sparams->avail_min; in snd_pcm_rate_sw_params()
1130 saved_avail_min = sw_params.avail_min; in snd_pcm_rate_drain()
1131 sw_params.avail_min = 1; in snd_pcm_rate_drain()
1170 sw_params.avail_min = saved_avail_min; in snd_pcm_rate_drain()
Dpcm_plugin.c610 if ((snd_pcm_uframes_t)available >= pcm->avail_min) in snd_pcm_plugin_may_wait_for_avail_min()
616 needed_slave_avail_min = pcm->avail_min - available; in snd_pcm_plugin_may_wait_for_avail_min()
617 if (slave->avail_min != needed_slave_avail_min) { in snd_pcm_plugin_may_wait_for_avail_min()
631 swparams->avail_min = needed_slave_avail_min; in snd_pcm_plugin_may_wait_for_avail_min()
Dpcm_hw.c510 hw->mmap_control->avail_min = params->avail_min; in snd_pcm_hw_sw_params()
543 hw->mmap_control->avail_min = params->avail_min; in snd_pcm_hw_sw_params()
1018 hw->mmap_control->avail_min = 1; in map_status_and_control_data()
Dpcm.c994 if (! params->avail_min) { in snd_pcm_sw_params()
1003 params->start_threshold > (pcm->buffer_size / params->avail_min) * params->avail_min) { in snd_pcm_sw_params()
1020 pcm->avail_min = params->avail_min; in snd_pcm_sw_params()
2321 snd_output_printf(out, " avail_min : %ld\n", pcm->avail_min); in snd_pcm_dump_sw_setup()
2921 if (avail_update < (snd_pcm_sframes_t)pcm->avail_min) { in snd_pcm_wait_nocheck()
2923 printf("avail_min = %li, avail_update = %li\n", pcm->avail_min, avail_update); in snd_pcm_wait_nocheck()
6189 params->avail_min = pcm->avail_min; in snd_pcm_sw_params_current()
6212 snd_output_printf(out, "avail_min: %lu\n", params->avail_min); in snd_pcm_sw_params_dump()
6498 params->avail_min = val; in snd_pcm_sw_params_set_avail_min()
6518 *val = params->avail_min; in INTERNAL()
Dpcm_direct.h105 unsigned int avail_min; member
Dpcm_direct.c719 empty = avail < pcm->avail_min;
1117 COPY_SLAVE(avail_min);
1516 COPY_SLAVE(avail_min);
Dpcm_local.h213 snd_pcm_uframes_t avail_min; /* min avail frames for wakeup */ member
1142 if (avail >= pcm->avail_min) in snd_pcm_may_wait_for_avail_min()
Dpcm_dsnoop.c442 if (snd_pcm_mmap_capture_avail(pcm) < pcm->avail_min) in snd_pcm_dsnoop_mmap_commit()
Dpcm_dshare.c562 if (snd_pcm_mmap_playback_avail(pcm) < pcm->avail_min) in snd_pcm_dshare_mmap_commit()
Dpcm_dmix.c862 if (snd_pcm_mmap_playback_avail(pcm) < pcm->avail_min) in snd_pcm_dmix_mmap_commit()
Dpcm_params.c2331 params->avail_min = pcm->period_size; in snd_pcm_sw_params_default()
/third_party/alsa-utils/axfer/
Dxfer-libasound-irq-rw.c273 snd_pcm_uframes_t avail_min; in w_process_frames_blocking() local
275 &avail_min); in w_process_frames_blocking()
278 avail_count = (unsigned int)avail_min; in w_process_frames_blocking()
/third_party/alsa-lib/include/sound/uapi/
Dasound.h435 snd_pcm_uframes_t avail_min; /* min avail frames for wakeup */ member
529 snd_pcm_uframes_t avail_min; /* RW: min available frames for wakeup */ member
576 snd_pcm_uframes_t avail_min; /* RW: min available frames for wakeup */ member
759 size_t avail_min; /* minimum avail bytes for wakeup */ member
/third_party/alsa-utils/alsaloop/
Dpcmjob.c276 snd_pcm_sw_params_get_avail_min(swparams, &lhandle->avail_min); in setparams_set()
292 if (lhandle->avail_min + (lhandle->period_size / 2) > lhandle->buffer_size) { in increase_playback_avail_min()
305 err = snd_pcm_sw_params_set_avail_min(handle, swparams, lhandle->avail_min + 4); in increase_playback_avail_min()
310 snd_pcm_sw_params_get_avail_min(swparams, &lhandle->avail_min); in increase_playback_avail_min()
312 …t_printf(lhandle->loopback->output, "%s: change avail_min=%li\n", lhandle->id, lhandle->avail_min); in increase_playback_avail_min()
440 double maxbuf, pfilled, cfilled, cqueued = -1, avail_min; in xrun_stats0() local
463 avail_min = (((double)loop->play->buffer_size - in xrun_stats0()
464 (double)loop->play->avail_min ) / in xrun_stats0()
466 avail_min = expected - avail_min; in xrun_stats0()
475 …git(LOG_INFO, " last wake %.4fms, last check %.4fms, avail_min %.4fms\n", wake, check, avail_min); in xrun_stats0()
[all …]
Dalsaloop.h98 snd_pcm_uframes_t avail_min; member
/third_party/pulseaudio/src/modules/alsa/
Dalsa-util.h55 snd_pcm_uframes_t avail_min,
Dalsa-source.c962 snd_pcm_uframes_t avail_min; in update_sw_params() local
994 avail_min = 1; in update_sw_params()
1000 avail_min += pa_usec_to_bytes(sleep_usec, &u->source->sample_spec) / u->frame_size; in update_sw_params()
1003 pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min); in update_sw_params()
1005 if ((err = pa_alsa_set_sw_params(u->pcm_handle, avail_min, !u->use_tsched)) < 0) { in update_sw_params()
Dalsa-sink.c1058 snd_pcm_uframes_t avail_min; in update_sw_params() local
1092 avail_min = (snd_pcm_uframes_t) u->hwbuf_unused / u->frame_size + 1; in update_sw_params()
1098 avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec) / u->frame_size; in update_sw_params()
1101 pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min); in update_sw_params()
1103 if ((err = pa_alsa_set_sw_params(u->pcm_handle, avail_min, !u->use_tsched)) < 0) { in update_sw_params()
Dalsa-util.c462 int pa_alsa_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min, bool period_event) { in pa_alsa_set_sw_params() argument
501 if ((err = snd_pcm_sw_params_set_avail_min(pcm, swparams, avail_min)) < 0) { in pa_alsa_set_sw_params()
/third_party/alsa-utils/aplay/
Daplay.c120 static int avail_min = -1; variable
706 avail_min = parse_long(optarg, &err); in main()
1432 if (avail_min < 0) in set_params()
1435 n = (double) rate * avail_min / 1000000; in set_params()
/third_party/alsa-utils/po/
Dja.po635 msgstr "avail_min を設定できません: %s\n"
1482 msgstr "avail_min を設定できません: %s\n"
1492 msgstr "avail_min を設定できません: %s\n"