Lines Matching defs:size
145 static int set_period_size(snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hwparams, snd_pcm_uframes_t size) {
152 s = size;
155 s = size;
158 s = size;
170 static int set_buffer_size(snd_pcm_t *pcm_handle, snd_pcm_hw_params_t *hwparams, snd_pcm_uframes_t size) {
176 if ((ret = snd_pcm_hw_params_set_buffer_size_near(pcm_handle, hwparams, &size)) < 0) {
272 * devices, which have a low enough transfer size for timer-based
274 * querying the block transfer size. */
343 pa_log_debug("Maximum hw buffer size is %lu ms", (long unsigned) (max_frames * PA_MSEC_PER_SEC / _ss.rate));
346 * size first and the number of periods second (which would
353 /* First try: set buffer size first, followed by period size */
357 pa_log_debug("Set buffer size first (to %lu samples), period size second (to %lu samples).", (unsigned long) _buffer_size, (unsigned long) _period_size);
362 /* Second try: set period size first, followed by buffer size */
366 pa_log_debug("Set period size first (to %lu samples), buffer size second (to %lu samples).", (unsigned long) _period_size, (unsigned long) _buffer_size);
374 /* Third try: set only buffer size */
377 pa_log_debug("Set only buffer size (to %lu samples).", (unsigned long) _buffer_size);
385 /* Fourth try: set only period size */
388 pa_log_debug("Set only period size (to %lu samples).", (unsigned long) _period_size);
394 pa_log_debug("Set neither period nor buffer size.");
1897 pa_log_debug("ELD info has wrong size (for device=%d)", device);