Home
last modified time | relevance | path

Searched refs:PA_MIN (Results 1 – 25 of 40) sorted by relevance

12

/third_party/pulseaudio/src/pulsecore/filter/
Dbiquad.c43 cutoff = PA_MIN(cutoff, 1.0); in biquad_lowpass()
75 cutoff = PA_MIN(cutoff, 1.0); in biquad_highpass()
/third_party/pulseaudio/src/utils/
Dpacmd.c186 ibuf_size = PA_MIN(buf_size, pa_pipe_buf(STDIN_FILENO)); in main()
188 obuf_size = PA_MIN(buf_size, pa_pipe_buf(STDOUT_FILENO)); in main()
197 k = PA_MIN(ibuf_size - ibuf_length, strlen(argv[i])); in main()
/third_party/pulseaudio/src/pulsecore/
Dmacro.h82 #define PA_MIN(a,b) \ macro
89 #define PA_MIN(a, b) ((a) < (b) ? (a) : (b)) macro
Dsrbchannel.c67 *count = PA_MIN(r->capacity - r->writeindex, r->capacity - c); in pa_ringbuffer_begin_write()
246 capacity = PA_MIN(capacity, srh->writebuf_offset - srh->readbuf_offset); in pa_srbchannel_new()
Dplay-memblockq.c142 chunk->length = PA_MIN(chunk->length, nbytes); in sink_input_pop_cb()
Dsound-file-stream.c155 chunk->length = PA_MIN(chunk->length, length); in sink_input_pop_cb()
Dsample-util.c187 length = PA_MIN(pa_mempool_block_size_max(pool), PA_SILENCE_MAX); in silence_memblock_new()
Dmemblockq.c575 tchunk.length = PA_MIN(tchunk.length, (size_t) (item->index - ri)); in pa_memblockq_peek_fixed_size()
591 rchunk.length = tchunk.length = PA_MIN(tchunk.length, block_size - rchunk.index); in pa_memblockq_peek_fixed_size()
/third_party/pulseaudio/src/tests/
Dresampler-rewind-test.c54 length = PA_MIN(pa_mempool_block_size_max(pool), PA_SILENCE_MAX); in silence_memblock_new()
114 history_frames = PA_MIN((size_t)(delay * 2.5), history_max); in calculate_resampler_history_bytes()
Dconnect-stress.c129 int n = PA_MIN(sizeof(silence), nbytes); in stream_write_callback()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-sink.c370 …u->tsched_watermark = PA_MIN(u->tsched_watermark * 2, u->tsched_watermark + u->watermark_inc_step); in increase_watermark()
386 new_min_latency = PA_MIN(old_min_latency * 2, old_min_latency + TSCHED_WATERMARK_INC_STEP_USEC); in increase_watermark()
387 new_min_latency = PA_MIN(new_min_latency, u->sink->thread_info.max_latency); in increase_watermark()
734 frames = PA_MIN(frames, u->frames_per_block); in mmap_write()
803 *sleep_usec = PA_MIN(*sleep_usec, underrun_sleep); in mmap_write()
967 *sleep_usec = PA_MIN(*sleep_usec, underrun_sleep); in unix_write()
1023 u->smoother_interval = PA_MIN (u->smoother_interval * 2, SMOOTHER_MAX_INTERVAL); in update_smoother()
2060 rtpoll_sleep = PA_MIN(sleep_usec, cusec); in thread_func()
2072 rtpoll_sleep = PA_MIN(volume_sleep, rtpoll_sleep); in thread_func()
Dalsa-source.c342 …u->tsched_watermark = PA_MIN(u->tsched_watermark * 2, u->tsched_watermark + u->watermark_inc_step); in increase_watermark()
358 new_min_latency = PA_MIN(old_min_latency * 2, old_min_latency + TSCHED_WATERMARK_INC_STEP_USEC); in increase_watermark()
359 new_min_latency = PA_MIN(new_min_latency, u->source->thread_info.max_latency); in increase_watermark()
690 frames = PA_MIN(frames, u->frames_per_block); in mmap_read()
947 u->smoother_interval = PA_MIN (u->smoother_interval * 2, SMOOTHER_MAX_INTERVAL); in update_smoother()
1767 rtpoll_sleep = PA_MIN(sleep_usec, cusec); in thread_func()
1776 rtpoll_sleep = PA_MIN(volume_sleep, rtpoll_sleep); in thread_func()
/third_party/pulseaudio/src/pulse/
Dvolume.c480 dest->channels = PA_MIN(a->channels, b->channels); in pa_sw_cvolume_multiply()
515 dest->channels = PA_MIN(a->channels, b->channels); in pa_sw_cvolume_divide()
945 dest->channels = PA_MIN(a->channels, b->channels); in pa_cvolume_merge()
Dohos_pa_volume.c496 dest->channels = PA_MIN(a->channels, b->channels); in pa_sw_cvolume_multiply()
531 dest->channels = PA_MIN(a->channels, b->channels); in pa_sw_cvolume_divide()
961 dest->channels = PA_MIN(a->channels, b->channels); in pa_cvolume_merge()
/third_party/pulseaudio/src/modules/
Dmodule-virtual-sink.c244 tchunk.length = PA_MIN(nbytes, tchunk.length); in sink_input_pop_cb()
303 amount = PA_MIN(u->sink->thread_info.rewind_nbytes, max_rewrite); in sink_input_process_rewind_cb()
Dmodule-solaris.c651 rewind_nbytes = PA_MIN(u->memchunk.length, rewind_nbytes); in process_rewind()
739 len = PA_MIN(u->memchunk.length, len); in thread_func()
773 … pa_rtpoll_set_timer_absolute(u->rtpoll, xtime0 + PA_MIN(xsleep_interval, ysleep_interval)); in thread_func()
Dmodule-null-source.c164 chunk.length = PA_MIN(max_block_size, chunk.length); in thread_func()
Dmodule-sine-source.c143 chunk.length = PA_MIN(chunk.length - u->peek_index, k); in process_render()
Dmodule-ladspa-sink.c491 tchunk.length = PA_MIN(nbytes, tchunk.length); in sink_input_pop_cb()
495 n = (unsigned) (PA_MIN(tchunk.length, u->block_size) / fs); in sink_input_pop_cb()
540 amount = PA_MIN(u->sink->thread_info.rewind_nbytes, max_rewrite); in sink_input_process_rewind_cb()
Dmodule-equalizer-sink.c530 tchunk.length = PA_MIN((u->output_buffer_length - i), mbs); in flatten_to_memblockq()
664 pa_sink_render_full(u->sink, PA_MIN(input_remaining * fs, mbs), &tchunk); in sink_input_pop_cb()
670 tchunk.length = PA_MIN(input_remaining * fs, tchunk.length); in sink_input_pop_cb()
760 amount = PA_MIN(u->sink->thread_info.rewind_nbytes, max_rewrite); in sink_input_process_rewind_cb()
1051 n_profs = PA_MIN(n_profs, u->channels); in load_state()
Dmodule-null-sink.c247 request_size = PA_MIN(request_size, u->sink->thread_info.max_request); in process_render()
Dmodule-remap-sink.c199 amount = PA_MIN(u->sink->thread_info.rewind_nbytes, nbytes); in sink_input_process_rewind_cb()
/third_party/pulseaudio/src/modules/bluetooth/
Dbackend-ofono.c95 write_mtu = PA_MIN(t->last_read_size, write_mtu); in sco_transport_write()
103 write_size = PA_MIN(size - written, write_mtu); in sco_transport_write()
Da2dp-codec-sbc.c520 …config->max_bitpool = (uint8_t) PA_MIN(default_bitpool(config->frequency, config->channel_mode), c… in fill_preferred_configuration()
772 bitpool = PA_MIN(sbc_info->sbc.bitpool + SBC_BITPOOL_INC_STEP, sbc_info->max_bitpool); in increase_encoder_bitrate()
Dbackend-native.c396 write_mtu = PA_MIN(t->last_read_size, write_mtu); in sco_transport_write()
404 write_size = PA_MIN(size - written, write_mtu); in sco_transport_write()

12