Home
last modified time | relevance | path

Searched refs:audio_device (Results 1 – 25 of 26) sorted by relevance

12

/hardware/qcom/audio/hal/
Dvoice.h38 struct audio_device;
73 int voice_start_usecase(struct audio_device *adev, audio_usecase_t usecase_id);
74 int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id);
76 int voice_start_call(struct audio_device *adev);
77 int voice_stop_call(struct audio_device *adev);
78 int voice_set_parameters(struct audio_device *adev, struct str_parms *parms);
79 void voice_get_parameters(struct audio_device *adev, struct str_parms *query,
81 void voice_init(struct audio_device *adev);
82 bool voice_is_in_call(struct audio_device *adev);
84 int voice_set_mic_mute(struct audio_device *dev, bool state);
[all …]
Dvoice.c42 static struct voice_session *voice_get_session_from_use_case(struct audio_device *adev, in voice_get_session_from_use_case()
86 void voice_set_sidetone(struct audio_device *adev, in voice_set_sidetone()
102 int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id) in voice_stop_usecase()
156 int voice_start_usecase(struct audio_device *adev, audio_usecase_t usecase_id) in voice_start_usecase()
248 bool voice_is_call_state_active(struct audio_device *adev) in voice_is_call_state_active()
261 bool voice_is_in_call(struct audio_device *adev) in voice_is_in_call()
279 uint32_t voice_get_active_session_id(struct audio_device *adev) in voice_get_active_session_id()
291 int voice_check_and_set_incall_rec_usecase(struct audio_device *adev, in voice_check_and_set_incall_rec_usecase()
334 int voice_check_and_stop_incall_rec_usecase(struct audio_device *adev, in voice_check_and_stop_incall_rec_usecase()
349 int voice_check_and_set_incall_music_usecase(struct audio_device *adev, in voice_check_and_set_incall_music_usecase()
[all …]
Dplatform_api.h61 void *platform_init(struct audio_device *adev);
98 void platform_set_speaker_gain_in_combo(struct audio_device *adev,
153 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device…
154 int platform_check_and_set_swap_lr_channels(struct audio_device *adev, bool swap_channels);
155 int platform_set_swap_channels(struct audio_device *adev, bool swap_channels);
165 bool platform_check_and_set_playback_backend_cfg(struct audio_device* adev,
168 bool platform_check_and_set_capture_backend_cfg(struct audio_device* adev,
184 int platform_set_sidetone(struct audio_device *adev,
213 struct stream_in *adev_get_active_input(const struct audio_device *adev);
Daudio_hw.h254 struct audio_device *dev;
305 struct audio_device *dev;
362 struct audio_device { struct
434 int select_devices(struct audio_device *adev, argument
437 int disable_audio_route(struct audio_device *adev,
440 int disable_snd_device(struct audio_device *adev,
443 int enable_snd_device(struct audio_device *adev,
446 int enable_audio_route(struct audio_device *adev,
449 struct audio_usecase *get_usecase_from_list(struct audio_device *adev,
452 int check_a2dp_restore(struct audio_device *adev, struct stream_out *out, bool restore);
Daudio_hw.c354 static int set_voice_volume_l(struct audio_device *adev, float volume);
355 static struct audio_device *adev = NULL;
361 static int check_a2dp_restore_l(struct audio_device *adev, struct stream_out *out, bool restore);
368 static bool may_use_noirq_mode(struct audio_device *adev, audio_usecase_t uc_id, in may_use_noirq_mode()
391 struct audio_device *adev = out->dev; in register_out_stream()
414 struct audio_device *adev = in->dev; in register_in_stream()
435 struct audio_device *adev = out->dev; in request_out_focus()
446 struct audio_device *adev = in->dev; in request_in_focus()
457 struct audio_device *adev = out->dev; in release_out_focus()
465 struct audio_device *adev = in->dev; in release_in_focus()
[all …]
/hardware/qcom/audio/hal/voice_extn/
Dvoice_extn.h21 int voice_extn_start_call(struct audio_device *adev);
22 int voice_extn_stop_call(struct audio_device *adev);
23 int voice_extn_get_session_from_use_case(struct audio_device *adev,
26 void voice_extn_init(struct audio_device *adev);
27 int voice_extn_set_parameters(struct audio_device *adev,
29 void voice_extn_get_parameters(const struct audio_device *adev,
33 int voice_extn_get_active_session_id(struct audio_device *adev,
35 int voice_extn_is_call_state_active(struct audio_device *adev,
38 static int voice_extn_start_call(struct audio_device *adev __unused) in voice_extn_start_call()
43 static int voice_extn_stop_call(struct audio_device *adev __unused) in voice_extn_stop_call()
[all …]
Dvoice_extn.c75 int voice_extn_is_call_state_active(struct audio_device *adev, bool *is_call_active);
139 static uint32_t get_session_id_with_state(struct audio_device *adev, in get_session_id_with_state()
157 static int update_calls(struct audio_device *adev) in update_calls()
290 static int update_call_states(struct audio_device *adev, in update_call_states()
329 int voice_extn_get_active_session_id(struct audio_device *adev, in voice_extn_get_active_session_id()
336 int voice_extn_is_call_state_active(struct audio_device *adev, bool *is_call_active) in voice_extn_is_call_state_active()
366 void voice_extn_init(struct audio_device *adev) in voice_extn_init()
377 int voice_extn_get_session_from_use_case(struct audio_device *adev, in voice_extn_get_session_from_use_case()
421 int voice_extn_start_call(struct audio_device *adev) in voice_extn_start_call()
430 int voice_extn_stop_call(struct audio_device *adev) in voice_extn_stop_call()
[all …]
/hardware/qcom/audio/hal/audio_extn/
Daudio_extn.h30 void *audio_extn_extspk_init(struct audio_device *adev);
64 bool audio_extn_hfp_is_active(struct audio_device *adev);
68 void audio_extn_hfp_set_parameters(struct audio_device *adev,
70 int audio_extn_hfp_set_mic_mute(struct audio_device *adev, bool state);
137 int audio_extn_sound_trigger_init(struct audio_device *adev);
138 void audio_extn_sound_trigger_deinit(struct audio_device *adev);
143 void audio_extn_sound_trigger_set_parameters(struct audio_device *adev,
181 void audio_extn_dsm_feedback_enable(struct audio_device *adev,
187 int audio_extn_utils_send_app_type_cfg(struct audio_device *adev,
189 void audio_extn_utils_send_audio_calibration(struct audio_device *adev,
[all …]
Dmaxxaudio.h30 bool audio_extn_ma_set_state(struct audio_device *adev, int stream_type,
33 void audio_extn_ma_set_parameters(struct audio_device *adev,
Dhfp.c43 static int32_t start_hfp(struct audio_device *adev,
46 static int32_t stop_hfp(struct audio_device *adev);
84 static int32_t hfp_set_volume(struct audio_device *adev, float value) in hfp_set_volume()
139 static int hfp_set_mic_volume(struct audio_device *adev, float value) in hfp_set_mic_volume()
180 static float hfp_get_mic_volume(struct audio_device *adev) in hfp_get_mic_volume()
226 int audio_extn_hfp_set_mic_mute(struct audio_device *adev, bool state) in audio_extn_hfp_set_mic_mute()
243 static int32_t start_hfp(struct audio_device *adev, in start_hfp()
357 static int32_t stop_hfp(struct audio_device *adev) in stop_hfp()
414 bool audio_extn_hfp_is_active(struct audio_device *adev) in audio_extn_hfp_is_active()
430 void audio_extn_hfp_set_parameters(struct audio_device *adev, struct str_parms *parms) in audio_extn_hfp_set_parameters()
Ddsm_feedback.c42 int start_dsm_feedback_processing(struct audio_device *adev, int enable) in start_dsm_feedback_processing()
89 void audio_extn_dsm_feedback_enable(struct audio_device *adev, in audio_extn_dsm_feedback_enable()
Dutils.c38 static int set_stream_app_type_mixer_ctrl(struct audio_device *adev, in set_stream_app_type_mixer_ctrl()
119 static int audio_extn_utils_send_app_type_cfg_hfp(struct audio_device *adev, in audio_extn_utils_send_app_type_cfg_hfp()
211 static int derive_capture_app_type_cfg(struct audio_device *adev, in derive_capture_app_type_cfg()
264 static int derive_playback_app_type_cfg(struct audio_device *adev, in derive_playback_app_type_cfg()
331 static int derive_acdb_dev_id(struct audio_device *adev __unused, in derive_acdb_dev_id()
345 int audio_extn_utils_send_app_type_cfg(struct audio_device *adev, in audio_extn_utils_send_app_type_cfg()
418 int audio_extn_utils_send_app_type_gain(struct audio_device *adev, in audio_extn_utils_send_app_type_gain()
442 void audio_extn_utils_send_audio_calibration(struct audio_device *adev, in audio_extn_utils_send_audio_calibration()
Dtfa_98xx.c64 struct audio_device *adev;
133 static int adev_i2s_clock_operation(int enable, struct audio_device *adev, char *paths) in adev_i2s_clock_operation()
154 static int tfa_98xx_set_audio_mode(int enable, struct audio_device *adev, exTfa98xx_audio_mode_t au… in tfa_98xx_set_audio_mode()
230 static int tfa_98xx_set_func_mode(int enable, struct audio_device *adev, exTfa98xx_func_mode_t func… in tfa_98xx_set_func_mode()
498 int audio_extn_tfa_98xx_init(struct audio_device *adev) in audio_extn_tfa_98xx_init()
Dext_speaker.c37 struct audio_device *adev;
101 void *audio_extn_extspk_init(struct audio_device *adev) in audio_extn_extspk_init()
Dtfa_98xx.h27 int audio_extn_tfa_98xx_init(struct audio_device *adev);
Dcirrus_playback.c207 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_run_calibration()
388 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_load_usecase_configs()
459 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_calibration_thread()
557 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_config_thread()
640 struct audio_device *adev = handle.adev_handle; in audio_extn_cirrus_failure_detect_thread()
803 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_start_processing()
891 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_stop_processing()
Dsoundtrigger.c156 struct audio_device *adev;
440 void audio_extn_sound_trigger_set_parameters(struct audio_device *adev __unused, in audio_extn_sound_trigger_set_parameters()
501 int audio_extn_sound_trigger_init(struct audio_device *adev) in audio_extn_sound_trigger_init()
566 void audio_extn_sound_trigger_deinit(struct audio_device *adev) in audio_extn_sound_trigger_deinit()
Dmaxxaudio.c286 static bool check_and_send_all_audio_cal(struct audio_device *adev, ma_cmd_t cmd) in check_and_send_all_audio_cal()
391 static void ma_set_swap_l(struct audio_device *adev, bool enable) in ma_set_swap_l()
399 static void ma_set_rotation_l(struct audio_device *adev, int orientation) in ma_set_rotation_l()
644 bool audio_extn_ma_set_state(struct audio_device *adev, int stream_type, in audio_extn_ma_set_state()
738 void audio_extn_ma_set_parameters(struct audio_device *adev, in audio_extn_ma_set_parameters()
Dspkr_protection.c273 static int vi_feed_get_channels(struct audio_device *adev) in vi_feed_get_channels()
298 struct audio_device *adev = handle.adev_handle; in spkr_calibrate()
544 struct audio_device *adev = handle.adev_handle; in spkr_calibration_thread()
806 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_start_processing()
892 struct audio_device *adev = handle.adev_handle; in audio_extn_spkr_prot_stop_processing()
Daudiozoom.c190 struct audio_device *adev = in->dev; in audio_extn_audiozoom_set_microphone_field_dimension_zoom()
Dusb.c92 struct audio_device *adev;
1335 usbmod->adev = (struct audio_device*)adev; in audio_extn_usb_init()
/hardware/qcom/audio/hal/msm8960/
Dplatform.c80 struct audio_device *adev;
271 void *platform_init(struct audio_device *adev) in platform_init()
587 void platform_set_speaker_gain_in_combo(struct audio_device *adev __unused, in platform_set_speaker_gain_in_combo()
645 struct audio_device *adev = my_data->adev; in platform_get_output_snd_device()
749 struct audio_device *adev = my_data->adev; in platform_get_input_snd_device()
920 struct audio_device *adev = my_data->adev; in platform_set_hdmi_channels()
1079 void platform_set_echo_reference(struct audio_device *adev __unused, in platform_set_echo_reference()
1087 int ramp_speaker_gain(struct audio_device *adev, bool ramp_up, int target_ramp_up_gain) { in ramp_speaker_gain()
1147 int platform_set_swap_mixer(struct audio_device *adev, bool swap_channels) in platform_set_swap_mixer()
1185 int platform_check_and_set_swap_lr_channels(struct audio_device *adev, bool swap_channels) in platform_check_and_set_swap_lr_channels()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c53 struct audio_device { struct
85 struct audio_device *adev; /* hardware information - only using this for the lock */ argument
118 struct audio_device *adev; /* hardware information - only using this for the lock */
170 static void device_lock(struct audio_device *adev) { in device_lock()
174 static int device_try_lock(struct audio_device *adev) { in device_try_lock()
178 static void device_unlock(struct audio_device *adev) { in device_unlock()
186 struct audio_device* adev, struct listnode* list, struct listnode* stream_node) { in adev_add_stream_to_list()
195 struct audio_device* adev, struct listnode* stream_node) { in adev_remove_stream_from_list()
556 out->adev = (struct audio_device *)hw_dev; in adev_open_output_stream()
996 in->adev = (struct audio_device *)hw_dev; in adev_open_input_stream()
[all …]
/hardware/qcom/audio/hal/msm8916/
Dplatform.c145 struct audio_device *adev;
694 void platform_set_echo_reference(struct audio_device *adev, bool enable, in platform_set_echo_reference()
756 void get_cvd_version(char *cvd_version, struct audio_device *adev) in get_cvd_version()
1019 void *platform_init(struct audio_device *adev) in platform_init()
1317 bool platform_check_and_set_playback_backend_cfg(struct audio_device* adev __unused, in platform_check_and_set_playback_backend_cfg()
1324 bool platform_check_and_set_capture_backend_cfg(struct audio_device* adev __unused, in platform_check_and_set_capture_backend_cfg()
1736 void platform_set_speaker_gain_in_combo(struct audio_device *adev __unused,
1746 struct audio_device *adev = my_data->adev;
1792 struct audio_device *adev = my_data->adev;
1822 struct audio_device *adev = my_data->adev;
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c148 struct audio_device *adev;
747 static int init_be_dai_name_table(struct audio_device *adev);
1052 struct audio_device *adev = my_data->adev; in platform_send_gain_dep_cal()
1111 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device) in platform_set_echo_reference()
1489 void get_cvd_version(char *cvd_version, struct audio_device *adev) in get_cvd_version()
1519 struct audio_device *adev = my_data->adev; in platform_acdb_init()
1692 void *platform_init(struct audio_device *adev) in platform_init()
2588 struct audio_device *adev = my_data->adev; in platform_set_mic_break_det()
2618 void platform_set_speaker_gain_in_combo(struct audio_device *adev, in platform_set_speaker_gain_in_combo()
2658 struct audio_device *adev = my_data->adev; in platform_set_voice_volume()
[all …]

12