/hardware/qcom/audio/legacy/libalsa-intf/ |
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) in param_set_hw_refine() argument 331 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_REFINE, params)) { in param_set_hw_refine() 338 int param_set_hw_params(struct pcm *pcm, struct snd_pcm_hw_params *params) in param_set_hw_params() argument 340 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_PARAMS, params)) { in param_set_hw_params() 343 pcm->hw_p = params; in param_set_hw_params() 347 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams) in param_set_sw_params() argument 349 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, sparams)) { in param_set_sw_params() 352 pcm->sw_p = sparams; in param_set_sw_params() 376 const char* pcm_error(struct pcm *pcm) in pcm_error() argument [all …]
|
D | aplay.c | 83 static int set_params(struct pcm *pcm) in set_params() argument 90 unsigned int requestedRate = pcm->rate; in set_params() 91 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); in set_params() 102 … (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); in set_params() 103 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params() 112 pcm->channels * 16); in set_params() 114 pcm->channels); in set_params() 115 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params() 116 param_set_hw_refine(pcm, params); in set_params() 118 if (param_set_hw_params(pcm, params)) { in set_params() [all …]
|
D | arec.c | 47 static struct pcm *pcm; variable 87 static int set_params(struct pcm *pcm) in set_params() argument 94 unsigned int requestedRate = pcm->rate; in set_params() 105 … (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); in set_params() 106 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); in set_params() 115 pcm->channels * 16); in set_params() 117 pcm->channels); in set_params() 118 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); in set_params() 120 param_set_hw_refine(pcm, params); in set_params() 122 if (param_set_hw_params(pcm, params)) { in set_params() [all …]
|
D | alsa_audio.h | 24 struct pcm { struct 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 *pcm); 142 int sync_ptr(struct pcm *pcm); 149 int param_set_hw_refine(struct pcm *pcm, struct snd_pcm_hw_params *params); 150 int param_set_hw_params(struct pcm *pcm, struct snd_pcm_hw_params *params); 151 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams); [all …]
|
/hardware/qcom/audio/legacy/alsa_sound/ |
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 perio… 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 periodSi… 111 status_t setSoftwareParams(pcm *pcm, bool playback); 113 status_t closeDevice(pcm *handle);
|
D | AudioUsbALSA.cpp | 278 status_t AudioUsbALSA::setHardwareParams(pcm *txHandle, uint32_t sampleRate, uint32_t channels, int… in setHardwareParams() 327 status_t AudioUsbALSA::setSoftwareParams(pcm *pcm, bool playback) in setSoftwareParams() argument 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() 350 params->stop_threshold = pcm->buffer_size; in setSoftwareParams() 352 params->xfer_align = (pcm->flags & PCM_MONO) ? pcm->period_size/2 : pcm->period_size/4; in setSoftwareParams() 356 if (param_set_sw_params(pcm, params)) { in setSoftwareParams() [all …]
|
D | AudioHardwareALSA.h | 170 struct pcm * handle; 179 struct pcm * rxHandle;
|
D | alsa_default.cpp | 347 struct pcm* pcm = handle->handle; in setSoftwareParams() local 349 unsigned long periodSize = pcm->period_size; in setSoftwareParams() 1093 struct pcm *h = handle->rxHandle; in s_close() 1151 struct pcm *h = handle->rxHandle; in s_standby()
|
/hardware/libhardware/modules/usbaudio/ |
D | alsa_device_proxy.c | 62 proxy->pcm = NULL; in proxy_prepare() 71 proxy->pcm = pcm_open(profile->card, profile->device, profile->direction, &proxy->alsa_config); in proxy_open() 72 if (proxy->pcm == NULL) { in proxy_open() 76 if (!pcm_is_ready(proxy->pcm)) { in proxy_open() 77 ALOGE("[%s] proxy_open() pcm_open() failed: %s", LOG_TAG, pcm_get_error(proxy->pcm)); in proxy_open() 81 pcm_close(proxy->pcm); in proxy_open() 82 proxy->pcm = NULL; in proxy_open() 91 ALOGV("proxy_close() [pcm:%p]", proxy->pcm); in proxy_close() 93 if (proxy->pcm != NULL) { in proxy_close() 94 pcm_close(proxy->pcm); in proxy_close() [all …]
|
D | alsa_device_proxy.h | 29 struct pcm * pcm; member
|
D | alsa_device_profile.c | 218 struct pcm * pcm = pcm_open(profile->card, profile->device, in profile_test_sample_rate() local 221 if (pcm != NULL) { in profile_test_sample_rate() 222 works = pcm_is_ready(pcm); in profile_test_sample_rate() 223 pcm_close(pcm); in profile_test_sample_rate()
|
/hardware/intel/audio_media/hdmi/ |
D | tinyaudio_hw.c | 86 struct pcm * activePcm = NULL; 129 struct pcm *pcm; member 276 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config); in start_output_stream() 278 if (out->pcm && !pcm_is_ready(out->pcm)) { in start_output_stream() 279 ALOGE("pcm_open() failed: %s", pcm_get_error(out->pcm)); in start_output_stream() 280 pcm_close(out->pcm); in start_output_stream() 285 activePcm = out->pcm; in start_output_stream() 372 out->pcm = NULL; in out_standby() 607 if((!out->pcm) || (activeChannel != out->pcm_config.channels)){ in out_write() 630 ret = pcm_write(out->pcm, (void *)dstbuff, outbytes); in out_write() [all …]
|
/hardware/qcom/audio/hal/ |
D | audio_hw.h | 124 struct pcm *pcm; member 160 struct pcm *pcm; member
|
D | voice.h | 50 struct pcm *pcm_rx; 51 struct pcm *pcm_tx;
|
D | audio_hw.c | 723 in->pcm = pcm_open(adev->snd_card, in->pcm_device_id, in start_input_stream() 725 if (in->pcm == NULL || !pcm_is_ready(in->pcm)) { in start_input_stream() 726 ALOGE("%s: %s", __func__, pcm_get_error(in->pcm)); in start_input_stream() 727 if (in->pcm != NULL) { in start_input_stream() 728 pcm_close(in->pcm); in start_input_stream() 729 in->pcm = NULL; in start_input_stream() 1060 out->pcm = pcm_open(adev->snd_card, out->pcm_device_id, in start_output_stream() 1062 if (out->pcm == NULL || !pcm_is_ready(out->pcm)) { in start_output_stream() 1063 ALOGE("%s: %s", __func__, pcm_get_error(out->pcm)); in start_output_stream() 1064 if (out->pcm != NULL) { in start_output_stream() [all …]
|
/hardware/qcom/audio/visualizer/ |
D | offload_visualizer.c | 330 struct pcm *pcm = NULL; in capture_thread_loop() local 359 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, in capture_thread_loop() 361 if (pcm && !pcm_is_ready(pcm)) { in capture_thread_loop() 362 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); in capture_thread_loop() 363 pcm_close(pcm); in capture_thread_loop() 364 pcm = NULL; in capture_thread_loop() 374 if (pcm != NULL) in capture_thread_loop() 375 pcm_close(pcm); in capture_thread_loop() 386 ret = pcm_mmap_read(pcm, data, sizeof(data)); in capture_thread_loop() 407 ALOGW("%s: read status %d %s", __func__, ret, pcm_get_error(pcm)); in capture_thread_loop() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
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;
|