/hardware/qcom/audio/legacy/libalsa-intf/ |
H A D | alsa_pcm.c | 185 static int oops(struct pcm *pcm, int e, const char *fmt, ...); 329 int param_set_hw_refine(struct pcm *pcm, struct snd_pcm_hw_params *params) argument 331 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_REFINE, params)) { 338 int param_set_hw_params(struct pcm *pcm, struct snd_pcm_hw_params *params) argument 340 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_PARAMS, params)) { 343 pcm->hw_p = params; 347 int param_set_sw_params(struct pcm *pc argument 376 pcm_error(struct pcm *pcm) argument 381 oops(struct pcm *pcm, int e, const char *fmt, ...) argument 397 pcm_avail(struct pcm *pcm) argument 421 sync_ptr(struct pcm *pcm) argument 434 mmap_buffer(struct pcm *pcm) argument 459 dst_address(struct pcm *pcm) argument 471 mmap_transfer(struct pcm *pcm, void *data, unsigned offset, long frames) argument 492 mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset, long frames) argument 516 pcm_prepare(struct pcm *pcm) argument 526 pcm_write_mmap(struct pcm *pcm, void *data, unsigned count) argument 576 pcm_write_nmmap(struct pcm *pcm, void *data, unsigned count) argument 607 pcm_write(struct pcm *pcm, void *data, unsigned count) argument 615 pcm_read(struct pcm *pcm, void *data, unsigned count) argument 662 enable_timer(struct pcm *pcm) argument 714 disable_timer(struct pcm *pcm) argument 722 pcm_close(struct pcm *pcm) argument 759 struct pcm *pcm; local 853 pcm_ready(struct pcm *pcm) argument [all...] |
H A D | aplay.c | 55 {"pcm", 0, 0, 'P'}, 83 static int set_params(struct pcm *pcm) argument 90 unsigned int requestedRate = pcm->rate; 91 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); 102 (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); 103 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); 112 pcm->channels * 16); 114 pcm 167 struct pcm *pcm; local [all...] |
H A D | arec.c | 47 static struct pcm *pcm; variable in typeref:struct:pcm 59 {"pcm", 0, 0, 'P'}, 87 static int set_params(struct pcm *pcm) argument 94 unsigned int requestedRate = pcm->rate; 105 (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); 106 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); 115 pcm->channels * 16); 117 pcm [all...] |
H A D | alsa_audio.h | 24 struct pcm { struct 82 /* Acquire/release a pcm channel. 137 struct pcm *pcm_open(unsigned flags, char *device); 138 int pcm_close(struct pcm *pcm); 139 int pcm_ready(struct pcm *pcm); 140 int mmap_buffer(struct pcm *pcm); 141 u_int8_t *dst_address(struct pcm *pc [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | AudioUsbALSA.h | 77 struct pcm *mproxyRecordingHandle; 78 struct pcm *musbRecordingHandle; 79 struct pcm *mproxyPlaybackHandle; 80 struct pcm *musbPlaybackHandle; 90 struct pcm * configureDevice(unsigned flags, char* hw, int sampleRate, int channelCount, int periodSize, bool playback); 91 status_t syncPtr(struct pcm *handle, bool *killThread); 101 status_t startDevice(pcm *handle, bool *killThread); 109 status_t setHardwareParams(pcm *local_handle, uint32_t sampleRate, uint32_t channels, int periodSize); 111 status_t setSoftwareParams(pcm *pcm, boo [all...] |
H A D | AudioUsbALSA.cpp | 278 status_t AudioUsbALSA::setHardwareParams(pcm *txHandle, uint32_t sampleRate, uint32_t channels, int periodBytes) 327 status_t AudioUsbALSA::setSoftwareParams(pcm *pcm, bool playback) argument 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 [all...] |
H A D | AudioHardwareALSA.h | 170 struct pcm * handle; 179 struct pcm * rxHandle;
|
H A D | alsa_default.cpp | 347 struct pcm* pcm = handle->handle; local 349 unsigned long periodSize = pcm->period_size; 642 /* No need to call s_close for LPA as pcm device open and close is handled by LPAPlayer in stagefright */ 698 ALOGE("Failed to get pcm device node: %s", devName); 704 ALOGE("Failed to get pcm device node"); 722 ALOGE("Set HW/SW params failed: Closing the pcm stream"); 745 ALOGE("Failed to get pcm device node"); 752 ALOGE("Failed to get pcm device node"); 763 ALOGE(" pcm read [all...] |
/hardware/libhardware/modules/usbaudio/ |
H A D | alsa_device_proxy.c | 62 proxy->pcm = NULL; 71 proxy->pcm = pcm_open(profile->card, profile->device, profile->direction, &proxy->alsa_config); 72 if (proxy->pcm == NULL) { 76 if (!pcm_is_ready(proxy->pcm)) { 77 ALOGE("[%s] proxy_open() pcm_open() failed: %s", LOG_TAG, pcm_get_error(proxy->pcm)); 81 pcm_close(proxy->pcm); 82 proxy->pcm = NULL; 91 ALOGV("proxy_close() [pcm:%p]", proxy->pcm); 93 if (proxy->pcm ! [all...] |
H A D | alsa_device_proxy.h | 29 struct pcm * pcm; member in struct:__anon1332
|
H A D | alsa_device_profile.c | 218 struct pcm * pcm = pcm_open(profile->card, profile->device, local 221 if (pcm != NULL) { 222 works = pcm_is_ready(pcm); 223 pcm_close(pcm);
|
/hardware/qcom/audio/hal/ |
H A D | voice.h | 50 struct pcm *pcm_rx; 51 struct pcm *pcm_tx;
|
H A D | audio_hw.h | 92 * one frame = channel_count * sizeof (pcm sample) 124 struct pcm *pcm; member in struct:stream_out 160 struct pcm *pcm; member in struct:stream_in
|
H A D | audio_hw.c | 723 in->pcm = pcm_open(adev->snd_card, in->pcm_device_id, 725 if (in->pcm == NULL || !pcm_is_ready(in->pcm)) { 726 ALOGE("%s: %s", __func__, pcm_get_error(in->pcm)); 727 if (in->pcm != NULL) { 728 pcm_close(in->pcm); 729 in->pcm = NULL; 1060 out->pcm = pcm_open(adev->snd_card, out->pcm_device_id, 1062 if (out->pcm == NULL || !pcm_is_ready(out->pcm)) { [all...] |
/hardware/intel/audio_media/hdmi/ |
H A D | tinyaudio_hw.c | 86 struct pcm * activePcm = NULL; 129 struct pcm *pcm; member in struct:stream_out 276 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config); 278 if (out->pcm && !pcm_is_ready(out->pcm)) { 279 ALOGE("pcm_open() failed: %s", pcm_get_error(out->pcm)); 280 pcm_close(out->pcm); 285 activePcm = out->pcm; 372 out->pcm [all...] |
/hardware/qcom/audio/hal/audio_extn/ |
H A D | hfp.c | 41 struct pcm *hfp_sco_rx; 42 struct pcm *hfp_sco_tx; 43 struct pcm *hfp_pcm_rx; 44 struct pcm *hfp_pcm_tx; 143 ALOGV("%s: HFP PCM devices (hfp rx tx: %d pcm rx tx: %d) for the usecase(%d)",
|
/hardware/qcom/audio/visualizer/ |
H A D | offload_visualizer.c | 330 struct pcm *pcm = NULL; local 359 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, 361 if (pcm && !pcm_is_ready(pcm)) { 362 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); 363 pcm_close(pcm); 364 pcm = NULL; 374 if (pcm != NULL) 375 pcm_close(pcm); [all...] |