Home
last modified time | relevance | path

Searched refs:pcm_tx (Results 1 – 5 of 5) sorted by relevance

/hardware/qcom/audio/hal/audio_extn/
Dspkr_protection.c103 struct pcm *pcm_tx; member
355 handle.pcm_rx = handle.pcm_tx = NULL; in spkr_calibrate()
387 handle.pcm_tx = pcm_open(adev->snd_card, in spkr_calibrate()
390 if (handle.pcm_tx && !pcm_is_ready(handle.pcm_tx)) { in spkr_calibrate()
391 ALOGE("%s: %s", __func__, pcm_get_error(handle.pcm_tx)); in spkr_calibrate()
400 if (pcm_start(handle.pcm_tx) < 0) { in spkr_calibrate()
471 if (handle.pcm_tx) in spkr_calibrate()
472 pcm_close(handle.pcm_tx); in spkr_calibrate()
473 handle.pcm_tx = NULL; in spkr_calibrate()
832 handle.pcm_tx = NULL; in audio_extn_spkr_prot_start_processing()
[all …]
Dcirrus_playback.c48 struct pcm *pcm_tx; member
827 handle.pcm_tx = NULL; in audio_extn_spkr_prot_start_processing()
843 handle.pcm_tx = pcm_open(adev->snd_card, in audio_extn_spkr_prot_start_processing()
847 if (handle.pcm_tx && !pcm_is_ready(handle.pcm_tx)) { in audio_extn_spkr_prot_start_processing()
848 ALOGE("%s: PCM device not ready: %s", __func__, pcm_get_error(handle.pcm_tx)); in audio_extn_spkr_prot_start_processing()
853 if (pcm_start(handle.pcm_tx) < 0) { in audio_extn_spkr_prot_start_processing()
855 pcm_get_error(handle.pcm_tx)); in audio_extn_spkr_prot_start_processing()
872 if (handle.pcm_tx) { in audio_extn_spkr_prot_start_processing()
874 pcm_close(handle.pcm_tx); in audio_extn_spkr_prot_start_processing()
875 handle.pcm_tx = NULL; in audio_extn_spkr_prot_start_processing()
[all …]
/hardware/qcom/audio/hal/
Dvoice.c132 if (session->pcm_tx) { in voice_stop_usecase()
133 pcm_close(session->pcm_tx); in voice_stop_usecase()
134 session->pcm_tx = NULL; in voice_stop_usecase()
192 session->pcm_tx = pcm_open(adev->snd_card, in voice_start_usecase()
195 if (session->pcm_tx && !pcm_is_ready(session->pcm_tx)) { in voice_start_usecase()
196 ALOGE("%s: %s", __func__, pcm_get_error(session->pcm_tx)); in voice_start_usecase()
215 ret = pcm_start(session->pcm_tx); in voice_start_usecase()
557 adev->voice.session[i].pcm_tx = NULL; in voice_init()
Dvoice.h52 struct pcm *pcm_tx; member
/hardware/qcom/audio/hal/voice_extn/
Dvoice_extn.c198 if (pcm_ioctl(session->pcm_tx, SNDRV_VOICE_IOCTL_LCH, &lch_mode) < 0) { in update_calls()
246 if (pcm_ioctl(session->pcm_tx, SNDRV_VOICE_IOCTL_LCH, &lch_mode) < 0) { in update_calls()
268 if (pcm_ioctl(session->pcm_tx, SNDRV_VOICE_IOCTL_LCH, &lch_mode) < 0) { in update_calls()