Lines Matching refs:adev

168 void audio_extn_spkr_prot_init(void *adev) {  in audio_extn_spkr_prot_init()  argument
172 if (!adev) { in audio_extn_spkr_prot_init()
177 handle.adev_handle = adev; in audio_extn_spkr_prot_init()
193 void audio_extn_spkr_prot_deinit(void *adev __unused) { in audio_extn_spkr_prot_deinit()
207 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_run_calibration() local
346 ctl = mixer_get_ctl_by_name(adev->mixer, in audio_extn_cirrus_run_calibration()
388 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_load_usecase_configs() local
397 ctl_uc = mixer_get_ctl_by_name(adev->mixer, CRUS_SP_USECASE_MIXER); in audio_extn_cirrus_load_usecase_configs()
398 ctl_config = mixer_get_ctl_by_name(adev->mixer, in audio_extn_cirrus_load_usecase_configs()
459 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_calibration_thread() local
467 while (!adev->platform && retries) { in audio_extn_cirrus_calibration_thread()
481 pthread_mutex_lock(&adev->lock); in audio_extn_cirrus_calibration_thread()
486 uc_info_rx->stream.out = adev->primary_output; in audio_extn_cirrus_calibration_thread()
488 list_add_tail(&adev->usecase_list, &uc_info_rx->list); in audio_extn_cirrus_calibration_thread()
490 enable_snd_device(adev, SND_DEVICE_OUT_SPEAKER); in audio_extn_cirrus_calibration_thread()
491 enable_audio_route(adev, uc_info_rx); in audio_extn_cirrus_calibration_thread()
497 pthread_mutex_unlock(&adev->lock); in audio_extn_cirrus_calibration_thread()
501 handle.pcm_rx = pcm_open(adev->snd_card, pcm_dev_rx_id, in audio_extn_cirrus_calibration_thread()
507 pthread_mutex_unlock(&adev->lock); in audio_extn_cirrus_calibration_thread()
514 pthread_mutex_unlock(&adev->lock); in audio_extn_cirrus_calibration_thread()
517 pthread_mutex_unlock(&adev->lock); in audio_extn_cirrus_calibration_thread()
527 pthread_mutex_lock(&adev->lock); in audio_extn_cirrus_calibration_thread()
533 disable_audio_route(adev, uc_info_rx); in audio_extn_cirrus_calibration_thread()
534 disable_snd_device(adev, SND_DEVICE_OUT_SPEAKER); in audio_extn_cirrus_calibration_thread()
537 pthread_mutex_unlock(&adev->lock); in audio_extn_cirrus_calibration_thread()
557 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_config_thread() local
601 ctl_config = mixer_get_ctl_by_name(adev->mixer, in audio_extn_cirrus_config_thread()
640 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_failure_detect_thread() local
658 ctl = mixer_get_ctl_by_name(adev->mixer, CRUS_SP_FAIL_DET_MIXER); in audio_extn_cirrus_failure_detect_thread()
803 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_start_processing() local
808 if (!adev) { in audio_extn_spkr_prot_start_processing()
819 audio_route_apply_and_update_path(adev->audio_route, in audio_extn_spkr_prot_start_processing()
829 list_add_tail(&adev->usecase_list, &uc_info_tx->list); in audio_extn_spkr_prot_start_processing()
831 enable_snd_device(adev, SND_DEVICE_IN_CAPTURE_VI_FEEDBACK); in audio_extn_spkr_prot_start_processing()
832 enable_audio_route(adev, uc_info_tx); in audio_extn_spkr_prot_start_processing()
843 handle.pcm_tx = pcm_open(adev->snd_card, in audio_extn_spkr_prot_start_processing()
878 disable_audio_route(adev, uc_info_tx); in audio_extn_spkr_prot_start_processing()
879 disable_snd_device(adev, SND_DEVICE_IN_CAPTURE_VI_FEEDBACK); in audio_extn_spkr_prot_start_processing()
891 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_stop_processing() local
898 uc_info_tx = get_usecase_from_list(adev, USECASE_AUDIO_SPKR_CALIB_TX); in audio_extn_spkr_prot_stop_processing()
907 disable_audio_route(adev, uc_info_tx); in audio_extn_spkr_prot_stop_processing()
908 disable_snd_device(adev, SND_DEVICE_IN_CAPTURE_VI_FEEDBACK); in audio_extn_spkr_prot_stop_processing()
912 audio_route_reset_path(adev->audio_route, in audio_extn_spkr_prot_stop_processing()
939 void audio_extn_spkr_prot_calib_cancel(__unused void *adev) { in audio_extn_spkr_prot_calib_cancel() argument