Home
last modified time | relevance | path

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

/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_pcm.c181 static int oops(struct pcm *pcm, int e, const char *fmt, ...);
325 int param_set_hw_refine(struct pcm *pcm, struct snd_pcm_hw_params *params) in param_set_hw_refine() argument
327 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_REFINE, params)) { in param_set_hw_refine()
334 int param_set_hw_params(struct pcm *pcm, struct snd_pcm_hw_params *params) in param_set_hw_params() argument
336 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_PARAMS, params)) { in param_set_hw_params()
339 pcm->hw_p = params; in param_set_hw_params()
343 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams) in param_set_sw_params() argument
345 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SW_PARAMS, sparams)) { in param_set_sw_params()
348 pcm->sw_p = sparams; in param_set_sw_params()
372 const char* pcm_error(struct pcm *pcm) in pcm_error() argument
[all …]
Daplay.c83 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 …]
Darec.c47 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 …]
Dalsa_audio.h24 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/
DAudioUsbALSA.h77 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);
DAudioUsbALSA.cpp278 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 …]
DAudioHardwareALSA.h170 struct pcm * handle;
179 struct pcm * rxHandle;
Dalsa_default.cpp347 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/qcom/audio/hal/
Daudio_hw.h220 struct pcm *pcm; member
280 struct pcm *pcm; member
356 struct pcm *,
411 struct pcm *haptic_pcm;
Daudio_hw.c408 out->pcm, &out->config); in register_out_stream()
428 in->pcm, in register_in_stream()
1953 if (in->pcm == NULL || !pcm_is_ready(in->pcm)) { in start_input_stream()
1957 ret = pcm_start(in->pcm); in start_input_stream()
1977 in->pcm = pcm_open(adev->snd_card, in->pcm_device_id, in start_input_stream()
1979 if (in->pcm == NULL || !pcm_is_ready(in->pcm)) { in start_input_stream()
1980 ALOGE("%s: %s", __func__, pcm_get_error(in->pcm)); in start_input_stream()
1981 if (in->pcm != NULL) { in start_input_stream()
1982 pcm_close(in->pcm); in start_input_stream()
1983 in->pcm = NULL; in start_input_stream()
[all …]
Dvoice.h51 struct pcm *pcm_rx;
52 struct pcm *pcm_tx;
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c89 struct pcm *pcm; member
245 st_ses_info->st_ses.capture_handle, st_ses_info->st_ses.pcm); in audio_hw_call_back()
257 ALOGE("%s: pcm %p not in the list!", __func__, config->st_ses.pcm); in audio_hw_call_back()
262 st_ses_info->st_ses.capture_handle, st_ses_info->st_ses.pcm); in audio_hw_call_back()
326 ALOGV("%s: AUDIO_EVENT_STOP_LAB pcm %p", __func__, st_ses_info->st_ses.pcm); in audio_extn_sound_trigger_stop_lab()
347 in->pcm = st_ses_info->st_ses.pcm; in audio_extn_sound_trigger_check_and_get_session()
Dhfp.c49 struct pcm *hfp_sco_rx;
50 struct pcm *hfp_sco_tx;
51 struct pcm *hfp_pcm_rx;
52 struct pcm *hfp_pcm_tx;
Ddsm_feedback.c46 static struct pcm *dsm_pcm_handle = NULL; in start_dsm_feedback_processing()
Dcirrus_playback.c47 struct pcm *pcm_rx;
48 struct pcm *pcm_tx;
Dspkr_protection.c102 struct pcm *pcm_rx;
103 struct pcm *pcm_tx;
Da2dp.c189 struct pcm *abr_tx_handle;
/hardware/knowles/athletico/sound_trigger_hal/
Dsound_trigger_intf.h107 struct pcm *pcm; member
Dsound_trigger_hw_iaxxx.c422 event_info.st_ses.pcm = NULL; in reg_hal_event_session()
442 event_info.st_ses.pcm = NULL; in dereg_hal_event_session()
/hardware/qcom/audio/visualizer/
Doffload_visualizer.c333 struct pcm *pcm = NULL; in capture_thread_loop() local
362 pcm = pcm_open(capture_config.snd_card_num, in capture_thread_loop()
365 if (pcm && !pcm_is_ready(pcm)) { in capture_thread_loop()
366 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); in capture_thread_loop()
367 pcm_close(pcm); in capture_thread_loop()
368 pcm = NULL; in capture_thread_loop()
378 if (pcm != NULL) in capture_thread_loop()
379 pcm_close(pcm); in capture_thread_loop()
390 ret = pcm_mmap_read(pcm, data, sizeof(data)); in capture_thread_loop()
411 ALOGW("%s: read status %d %s", __func__, ret, pcm_get_error(pcm)); in capture_thread_loop()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/audio/
DVtsHalMediaOmxV1_0TargetAudioDecTest.cpp103 {"pcm", pcm}, {"g711alaw", g711alaw}, {"g711mlaw", g711mlaw}, in SetUp()
131 {pcm, OMX_AUDIO_CodingPCM}, in SetUp()
238 pcm, enumerator
/hardware/google/av/codec2/hidl/1.0/mts/audio/
DMtsHidlC2V1_0TargetAudioDecTest.cpp110 {"pcm", pcm}, in SetUp()
196 pcm, enumerator