/hardware/qcom/audio/legacy/libalsa-intf/ |
D | arec.c | 130 pcm->period_size = pcm_period_size(params); in set_params() 131 pcm->period_cnt = pcm->buffer_size/pcm->period_size; in set_params() 133 fprintf (stderr,"period_size (%d)", pcm->period_size); in set_params() 146 sparams->avail_min = pcm->period_size/2; in set_params() 147 sparams->xfer_align = pcm->period_size/2; in set_params() 149 sparams->avail_min = pcm->period_size/8; in set_params() 150 sparams->xfer_align = pcm->period_size/8; in set_params() 152 sparams->avail_min = pcm->period_size/12; in set_params() 153 sparams->xfer_align = pcm->period_size/12; in set_params() 155 sparams->avail_min = pcm->period_size/4; in set_params() [all …]
|
D | aplay.c | 126 pcm->period_size = pcm_period_size(params); in set_params() 127 pcm->period_cnt = pcm->buffer_size/pcm->period_size; in set_params() 130 fprintf (stderr,"period_size = %d\n", pcm->period_size); in set_params() 142 sparams->avail_min = pcm->period_size/(channels * 2) ; in set_params() 143 sparams->start_threshold = pcm->period_size/(channels * 2) ; in set_params() 145 sparams->xfer_align = pcm->period_size/(channels * 2) ; /* needed for old kernels */ in set_params() 274 bufsize = pcm->period_size; in play_file() 434 bufsize = pcm->period_size; in play_file()
|
D | alsa_audio.h | 34 unsigned period_size; member
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioUsbALSA.cpp | 316 txHandle->period_size = pcm_period_size(params); in setHardwareParams() 318 txHandle->period_cnt = txHandle->buffer_size/txHandle->period_size; in setHardwareParams() 321 txHandle->buffer_size, txHandle->period_size, in setHardwareParams() 341 params->avail_min = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4; in setSoftwareParams() 344 params->start_threshold = (pcm->flags & PCM_MONO) ? pcm->period_size*8 : pcm->period_size*4; in setSoftwareParams() 345 params->xfer_align = (pcm->flags & PCM_MONO) ? pcm->period_size*8 : pcm->period_size*4; in setSoftwareParams() 347 params->start_threshold = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4; in setSoftwareParams() 348 params->xfer_align = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4; in setSoftwareParams() 352 params->xfer_align = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4; in setSoftwareParams() 429 bufsize = musbRecordingHandle->period_size; in RecordingThreadEntry() [all …]
|
D | AudioStreamOutALSA.cpp | 112 int period_size; in write() local 237 period_size = mHandle->periodSize; in write() 239 if (write_pending < period_size) { in write() 240 write_pending = period_size; in write() 245 period_size); in write() 249 period_size); in write() 276 sent += static_cast<ssize_t>((period_size)); in write() 277 write_pending -= period_size; in write()
|
D | AudioStreamInALSA.cpp | 128 int period_size; in read() local 325 period_size = mHandle->periodSize; in read() 334 int period_bytes = mHandle->handle->period_size; in read() 421 if (read_pending < period_size) { in read() 422 read_pending = period_size; in read() 426 period_size); in read() 456 read += static_cast<ssize_t>((period_size)); in read() 457 read_pending -= period_size; in read() 460 memset(buffer, 0, period_size); in read() 462 buffer = ((uint8_t *)buffer) + period_size; in read()
|
D | alsa_default.cpp | 326 handle->handle->period_size = pcm_period_size(params); in setHardwareParams() 327 handle->handle->period_cnt = handle->handle->buffer_size/handle->handle->period_size; in setHardwareParams() 329 handle->handle->buffer_size, handle->handle->period_size, in setHardwareParams() 333 handle->periodSize = handle->handle->period_size; in setHardwareParams() 338 handle->bufferSize = handle->handle->period_size; in setHardwareParams() 349 unsigned long periodSize = pcm->period_size; in setSoftwareParams() 780 pcm_write(handle->handle,&voc_pkt,handle->handle->period_size); in s_start_voip_call() 825 pcm_read(handle->handle,&voc_pkt,handle->handle->period_size); in s_start_voip_call()
|
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
D | compress_capture.c | 58 in->config.period_size = COMPRESS_IN_CONFIG_PERIOD_SIZE; in audio_extn_compr_cap_init() 61 c_in_mod.in_buf = (uint8_t*)calloc(1, in->config.period_size*2); in audio_extn_compr_cap_init() 123 c_in_buf_size = in->config.period_size*2; in audio_extn_compr_cap_read()
|
D | usb.c | 86 .period_size = USB_LOW_LATENCY_OUTPUT_PERIOD_SIZE, 357 pcm_config_usbmod.period_size = USB_PERIOD_SIZE/4; in usb_playback_entry() 361 pcm_config_usbmod.period_size, pcm_config_usbmod.channels, in usb_playback_entry() 381 pcm_config_usbmod.period_size = USB_PROXY_PERIOD_SIZE/3; in usb_playback_entry() 387 pcm_config_usbmod.period_size, pcm_config_usbmod.channels, in usb_playback_entry() 476 pcm_config_usbmod.period_size = USB_PERIOD_SIZE/4; in usb_record_entry() 480 pcm_config_usbmod.period_size, pcm_config_usbmod.channels, in usb_record_entry() 500 pcm_config_usbmod.period_size = USB_PROXY_PERIOD_SIZE/4; in usb_record_entry() 506 pcm_config_usbmod.period_size, pcm_config_usbmod.channels, in usb_record_entry()
|
D | fm.c | 42 .period_size = 256,
|
D | hfp.c | 81 .period_size = 240,
|
D | ssr.c | 389 in->config.period_size = SSR_PERIOD_SIZE; in audio_extn_ssr_init()
|
D | spkr_protection.c | 126 .period_size = 256,
|
/hardware/intel/audio_media/hdmi/ |
D | tinyaudio_hw.c | 108 .period_size = 1024, 241 out->pcm_config.period_size, in start_output_stream() 299 buf_size = out->pcm_config.period_size * in out_get_buffer_size() 303 buf_size = out->pcm_config.period_size * in out_get_buffer_size() 316 out->pcm_config.period_size, in out_get_buffer_size() 550 return (out->pcm_config.period_size * out->pcm_config.period_count * 1000) / in out_get_latency() 720 out->pcm_config.period_size = pcm_config_default.period_size; in adev_open_output_stream()
|
/hardware/qcom/audio/hal/audio_extn/ |
D | dsm_feedback.c | 34 .period_size = 256,
|
D | hfp.c | 62 .period_size = 240,
|
D | spkr_protection.c | 116 .period_size = 256,
|
/hardware/qcom/audio/hal/ |
D | audio_hw.c | 89 .period_size = DEEP_BUFFER_OUTPUT_PERIOD_SIZE, 100 .period_size = LOW_LATENCY_OUTPUT_PERIOD_SIZE, 111 .period_size = HDMI_MULTI_PERIOD_SIZE, 136 .period_size = AFE_PROXY_PLAYBACK_PERIOD_SIZE, 150 .period_size = AFE_PROXY_RECORD_PERIOD_SIZE, 1375 return out->config.period_size * in out_get_buffer_size() 1609 return (out->config.period_count * out->config.period_size * 1000) / in out_get_latency() 1824 size_t kernel_buffer_size = out->config.period_size * out->config.period_count; in out_get_presentation_position() 1937 return in->config.period_size * in in_get_buffer_size() 2283 out->config.period_size = HDMI_MULTI_PERIOD_BYTES / (out->config.channels * 2); in adev_open_output_stream() [all …]
|
D | voice.c | 36 .period_size = 160,
|
/hardware/qcom/audio/msm8909/hal/ |
D | audio_hw.c | 74 .period_size = DEEP_BUFFER_OUTPUT_PERIOD_SIZE, 85 .period_size = LOW_LATENCY_OUTPUT_PERIOD_SIZE, 96 .period_size = HDMI_MULTI_PERIOD_SIZE, 119 .period_size = AFE_PROXY_PLAYBACK_PERIOD_SIZE, 133 .period_size = AFE_PROXY_RECORD_PERIOD_SIZE, 1646 return out->config.period_size * in out_get_buffer_size() 1923 return (out->config.period_count * out->config.period_size * 1000) / in out_get_latency() 2171 size_t kernel_buffer_size = out->config.period_size * out->config.period_count; in out_get_presentation_position() 2304 return in->config.period_size * in in_get_buffer_size() 2663 out->config.period_size = HDMI_MULTI_PERIOD_BYTES / (out->config.channels * 2); in adev_open_output_stream() [all …]
|
D | voice.c | 40 .period_size = 160,
|
/hardware/qcom/audio/msm8909/hal/voice_extn/ |
D | compress_voip.c | 45 .period_size = COMPRESS_VOIP_IO_BUF_SIZE_NB/2, 53 .period_size = COMPRESS_VOIP_IO_BUF_SIZE_WB/2,
|
D | voice_extn.c | 67 .period_size = LOW_LATENCY_OUTPUT_PERIOD_SIZE,
|
/hardware/qcom/audio/hal/voice_extn/ |
D | voice_extn.c | 67 .period_size = LOW_LATENCY_OUTPUT_PERIOD_SIZE,
|
/hardware/qcom/audio/msm8909/visualizer/ |
D | offload_visualizer.c | 183 .period_size = AUDIO_CAPTURE_PERIOD_SIZE,
|