Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 6 of 6) sorted by relevance

/device/htc/flounder/audio/hal/
Daudio_hw.c939 if (pcm_get_htimestamp(ref_device->pcm, &kernel_frames, &tstamp) < 0) { in get_capture_reference_delay()
978 if (pcm_get_htimestamp(pcm_device->pcm, &kernel_frames, &tstamp) < 0) { in get_capture_delay()
1030 … in->ref_buf = (int16_t *)realloc(in->ref_buf, pcm_frames_to_bytes(pcm_device->pcm, frames)); in update_echo_reference()
1034 in->ref_buf, pcm_frames_to_bytes(pcm_device->pcm, frames)); in update_echo_reference()
1211 …ref_device->pcm = pcm_open(ref_device->pcm_profile->card, ref_device->pcm_profile->id, PCM_IN | PC… in get_hw_echo_reference()
1213 if (ref_device->pcm && !pcm_is_ready(ref_device->pcm)) { in get_hw_echo_reference()
1214 ALOGE("%s: %s", __func__, pcm_get_error(ref_device->pcm)); in get_hw_echo_reference()
1215 pcm_close(ref_device->pcm); in get_hw_echo_reference()
1216 ref_device->pcm = NULL; in get_hw_echo_reference()
1242 status = pcm_get_htimestamp(pcm_device->pcm, &kernel_frames, &buffer->time_stamp); in get_playback_delay()
[all …]
Daudio_hw.h257 struct pcm* pcm; member
/device/asus/fugu/libaudio/
DAudioStreamIn.cpp358 struct pcm* pcm = pcm_open(deviceInfo->pcmCard, deviceInfo->pcmDevice, in startInputStream_l() local
361 if (!pcm_is_ready(pcm)) { in startInputStream_l()
363 pcm_close(pcm); in startInputStream_l()
372 mBufferSize = pcm_frames_to_bytes(pcm, mPcmConfig.period_size); in startInputStream_l()
393 pcm_close(pcm); in startInputStream_l()
398 mPcm = pcm; in startInputStream_l()
DAudioStreamIn.h104 struct pcm* mPcm;
DAudioOutput.h154 struct pcm* mDevice;
/device/htc/flounder/audio/visualizer/
Dnv_offload_visualizer.c288 struct pcm *pcm = NULL; in effects_capture_thread_loop() local
302 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, in effects_capture_thread_loop()
304 if (pcm && !pcm_is_ready(pcm)) { in effects_capture_thread_loop()
305 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); in effects_capture_thread_loop()
306 pcm_close(pcm); in effects_capture_thread_loop()
307 pcm = NULL; in effects_capture_thread_loop()
315 if (pcm != NULL) { in effects_capture_thread_loop()
317 pcm_close(pcm); in effects_capture_thread_loop()
328 ret = pcm_read(pcm, data, sizeof(data)); in effects_capture_thread_loop()
349 ALOGW("%s: read status %d %s", __func__, ret, pcm_get_error(pcm)); in effects_capture_thread_loop()
[all …]