/hardware/qcom/audio/legacy/libalsa-intf/ |
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...] |
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...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
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 | 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/intel/audio_media/hdmi/ |
H A D | tinyaudio_hw.c | 86 struct pcm * activePcm = NULL; 129 struct pcm *pcm; member in struct:stream_out 260 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config); 262 if (out->pcm && !pcm_is_ready(out->pcm)) { 263 ALOGE("pcm_open() failed: %s", pcm_get_error(out->pcm)); 264 pcm_close(out->pcm); 269 activePcm = out->pcm; 356 out->pcm [all...] |
/hardware/qcom/audio/hal/ |
H A D | audio_hw.h | 119 * one frame = channel_count * sizeof (pcm sample) 152 struct pcm *pcm; member in struct:stream_out 189 struct pcm *pcm; member in struct:stream_in
|
/hardware/qcom/audio/msm8909/hal/ |
H A D | audio_hw.c | 356 int pcm_ioctl(struct pcm *pcm, int request, ...) argument 360 int pcm_fd = *(int*)pcm; 1047 in->pcm = pcm_open(adev->snd_card, in->pcm_device_id, 1049 if (in->pcm == NULL || !pcm_is_ready(in->pcm)) { 1050 ALOGE("%s: %s", __func__, pcm_get_error(in->pcm)); 1051 if (in->pcm != NULL) { 1052 pcm_close(in->pcm); 1053 in->pcm [all...] |
H A D | audio_hw.h | 127 * one frame = channel_count * sizeof (pcm sample) 165 struct pcm *pcm; member in struct:stream_out 203 struct pcm *pcm; member in struct:stream_in 320 int pcm_ioctl(struct pcm *pcm, int request, ...);
|
/hardware/qcom/audio/msm8909/visualizer/ |
H A D | offload_visualizer.c | 317 struct pcm *pcm = NULL; local 346 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, 348 if (pcm && !pcm_is_ready(pcm)) { 349 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); 350 pcm_close(pcm); 351 pcm = NULL; 361 if (pcm != NULL) 362 pcm_close(pcm); [all...] |
/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...] |