Searched defs:pcm (Results 1 - 11 of 11) sorted by relevance

/hardware/libhardware/modules/usbaudio/
H A Dalsa_device_proxy.h29 struct pcm * pcm; member in struct:__anon1332
H A Dalsa_device_profile.c218 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/legacy/libalsa-intf/
H A Daplay.c55 {"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 Darec.c47 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 Dalsa_audio.h24 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 Dalsa_pcm.c185 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 DAudioUsbALSA.cpp278 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 Dalsa_default.cpp347 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 Dtinyaudio_hw.c86 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/
H A Daudio_hw.h92 * 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
/hardware/qcom/audio/visualizer/
H A Doffload_visualizer.c330 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...]

Completed in 218 milliseconds