Searched refs:period_size (Results 1 - 12 of 12) sorted by relevance

/hardware/qcom/audio/legacy/libalsa-intf/
H A Darec.c130 pcm->period_size = pcm_period_size(params);
131 pcm->period_cnt = pcm->buffer_size/pcm->period_size;
133 fprintf (stderr,"period_size (%d)", pcm->period_size);
146 sparams->avail_min = pcm->period_size/2;
147 sparams->xfer_align = pcm->period_size/2;
149 sparams->avail_min = pcm->period_size/8;
150 sparams->xfer_align = pcm->period_size/8;
152 sparams->avail_min = pcm->period_size/12;
153 sparams->xfer_align = pcm->period_size/1
[all...]
H A Daplay.c126 pcm->period_size = pcm_period_size(params);
127 pcm->period_cnt = pcm->buffer_size/pcm->period_size;
130 fprintf (stderr,"period_size = %d\n", pcm->period_size);
142 sparams->avail_min = pcm->period_size/(channels * 2) ;
143 sparams->start_threshold = pcm->period_size/(channels * 2) ;
145 sparams->xfer_align = pcm->period_size/(channels * 2) ; /* needed for old kernels */
274 bufsize = pcm->period_size;
434 bufsize = pcm->period_size;
H A Dalsa_audio.h34 unsigned period_size; member in struct:pcm
/hardware/qcom/audio/legacy/alsa_sound/
H A DAudioStreamOutALSA.cpp112 int period_size; local
237 period_size = mHandle->periodSize;
239 if (write_pending < period_size) {
240 write_pending = period_size;
245 period_size);
249 period_size);
276 sent += static_cast<ssize_t>((period_size));
277 write_pending -= period_size;
H A DAudioUsbALSA.cpp316 txHandle->period_size = pcm_period_size(params);
318 txHandle->period_cnt = txHandle->buffer_size/txHandle->period_size;
320 ALOGD("setHardwareParams: buffer_size %d, period_size %d, period_cnt %d",
321 txHandle->buffer_size, txHandle->period_size,
341 params->avail_min = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4;
344 params->start_threshold = (pcm->flags & PCM_MONO) ? pcm->period_size*8 : pcm->period_size*4;
345 params->xfer_align = (pcm->flags & PCM_MONO) ? pcm->period_size*8 : pcm->period_size*
[all...]
H A DAudioStreamInALSA.cpp128 int period_size; local
325 period_size = mHandle->periodSize;
334 int period_bytes = mHandle->handle->period_size;
421 if (read_pending < period_size) {
422 read_pending = period_size;
426 period_size);
456 read += static_cast<ssize_t>((period_size));
457 read_pending -= period_size;
460 memset(buffer, 0, period_size);
462 buffer = ((uint8_t *)buffer) + period_size;
[all...]
H A Dalsa_default.cpp326 handle->handle->period_size = pcm_period_size(params);
327 handle->handle->period_cnt = handle->handle->buffer_size/handle->handle->period_size;
328 ALOGD("setHardwareParams: buffer_size %d, period_size %d, period_cnt %d",
329 handle->handle->buffer_size, handle->handle->period_size,
333 handle->periodSize = handle->handle->period_size;
338 handle->bufferSize = handle->handle->period_size;
349 unsigned long periodSize = pcm->period_size;
780 pcm_write(handle->handle,&voc_pkt,handle->handle->period_size);
825 pcm_read(handle->handle,&voc_pkt,handle->handle->period_size);
/hardware/libhardware/modules/audio_remote_submix/
H A Daudio_hw.cpp58 unsigned int period_size; // size of the audio pipe is period_size * period_count in frames member in struct:android::submix_config
127 size_t buffer_size = config_out.period_size * popcount(config_out.channel_mask)
130 // buffer_size, config_out.period_size);
331 in->dev->config.period_size * audio_stream_frame_size(stream));
332 return in->dev->config.period_size * audio_stream_frame_size(stream);
560 rsxadev->config.period_size = 1024;
719 rsxadev->config.period_size = 1024;
/hardware/libhardware/modules/usbaudio/
H A Daudio_hw.c39 .period_size = 1024,
104 return pcm_config.period_size *
180 return (pcm_config.period_size * pcm_config.period_count * 1000) /
/hardware/qcom/audio/hal/
H A Daudio_hw.c61 .period_size = DEEP_BUFFER_OUTPUT_PERIOD_SIZE,
72 .period_size = LOW_LATENCY_OUTPUT_PERIOD_SIZE,
83 .period_size = HDMI_MULTI_PERIOD_SIZE,
100 .period_size = 160,
1155 return out->config.period_size * audio_stream_frame_size(stream);
1378 return (out->config.period_count * out->config.period_size * 1000) /
1535 size_t kernel_buffer_size = out->config.period_size * out->config.period_count;
1648 return in->config.period_size * audio_stream_frame_size(stream);
1885 out->config.period_size = HDMI_MULTI_PERIOD_BYTES / (out->config.channels * 2);
2282 in->config.period_size
[all...]
/hardware/qcom/audio/visualizer/
H A Doffload_visualizer.c180 .period_size = AUDIO_CAPTURE_PERIOD_SIZE,
/hardware/ti/wpan/tools/kfmapp/
H A Dkfmapp.c858 config.period_size = 1024;

Completed in 229 milliseconds