/hardware/qcom/audio/hal/ |
D | voice.c | 40 static struct voice_session *voice_get_session_from_use_case(struct audio_device *adev, in voice_get_session_from_use_case() argument 46 ret = voice_extn_get_session_from_use_case(adev, usecase_id, &session); in voice_get_session_from_use_case() 48 session = &adev->voice.session[VOICE_SESS_IDX]; in voice_get_session_from_use_case() 54 int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id) in voice_stop_usecase() argument 62 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id); in voice_stop_usecase() 65 ret = platform_stop_voice_call(adev->platform, session->vsid); in voice_stop_usecase() 77 uc_info = get_usecase_from_list(adev, usecase_id); in voice_stop_usecase() 85 disable_audio_route(adev, uc_info); in voice_stop_usecase() 88 disable_snd_device(adev, uc_info->out_snd_device); in voice_stop_usecase() 89 disable_snd_device(adev, uc_info->in_snd_device); in voice_stop_usecase() [all …]
|
D | audio_hw.c | 178 static int set_voice_volume_l(struct audio_device *adev, float volume); 225 int enable_audio_route(struct audio_device *adev, in enable_audio_route() argument 242 platform_add_backend_name(adev->platform, mixer_path, snd_device); in enable_audio_route() 244 audio_route_apply_and_update_path(adev->audio_route, mixer_path); in enable_audio_route() 250 int disable_audio_route(struct audio_device *adev, in disable_audio_route() argument 265 platform_add_backend_name(adev->platform, mixer_path, snd_device); in disable_audio_route() 267 audio_route_reset_and_update_path(adev->audio_route, mixer_path); in disable_audio_route() 273 int enable_snd_device(struct audio_device *adev, in enable_snd_device() argument 282 adev->snd_dev_ref_cnt[snd_device]++; in enable_snd_device() 283 if (adev->snd_dev_ref_cnt[snd_device] > 1) { in enable_snd_device() [all …]
|
D | voice.h | 72 int voice_start_usecase(struct audio_device *adev, audio_usecase_t usecase_id); 73 int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id); 75 int voice_start_call(struct audio_device *adev); 76 int voice_stop_call(struct audio_device *adev); 77 int voice_set_parameters(struct audio_device *adev, struct str_parms *parms); 78 void voice_get_parameters(struct audio_device *adev, struct str_parms *query, 80 void voice_init(struct audio_device *adev); 81 bool voice_is_in_call(struct audio_device *adev); 85 int voice_set_volume(struct audio_device *adev, float volume); 86 int voice_check_and_set_incall_rec_usecase(struct audio_device *adev, [all …]
|
D | audio_hw.h | 239 int select_devices(struct audio_device *adev, 242 int disable_audio_route(struct audio_device *adev, 245 int disable_snd_device(struct audio_device *adev, 248 int enable_snd_device(struct audio_device *adev, 251 int enable_audio_route(struct audio_device *adev, 254 struct audio_usecase *get_usecase_from_list(struct audio_device *adev,
|
D | platform_api.h | 20 void *platform_init(struct audio_device *adev); 66 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device…
|
/hardware/qcom/audio/hal/voice_extn/ |
D | voice_extn.h | 21 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 …]
|
D | voice_extn.c | 70 int voice_extn_is_call_state_active(struct audio_device *adev, bool *is_call_active); 124 static uint32_t get_session_id_with_state(struct audio_device *adev, in get_session_id_with_state() argument 132 session = &adev->voice.session[i]; in get_session_id_with_state() 142 static int update_calls(struct audio_device *adev) in update_calls() argument 155 session = &adev->voice.session[i]; in update_calls() 166 ret = voice_start_usecase(adev, usecase_id); in update_calls() 204 ret = voice_stop_usecase(adev, usecase_id); in update_calls() 275 static int update_call_states(struct audio_device *adev, in update_call_states() argument 283 if (vsid == adev->voice.session[i].vsid) { in update_call_states() 284 session = &adev->voice.session[i]; in update_call_states() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | hfp.c | 35 static int32_t start_hfp(struct audio_device *adev, 38 static int32_t stop_hfp(struct audio_device *adev); 70 static int32_t hfp_set_volume(struct audio_device *adev, float value) in hfp_set_volume() argument 95 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in hfp_set_volume() 110 static int32_t start_hfp(struct audio_device *adev, in start_hfp() argument 122 uc_info->stream.out = adev->primary_output; in start_hfp() 123 uc_info->devices = adev->primary_output->devices; in start_hfp() 127 list_add_tail(&adev->usecase_list, &uc_info->list); in start_hfp() 129 select_devices(adev, hfpmod.ucid); in start_hfp() 147 __func__, adev->snd_card, pcm_dev_rx_id); in start_hfp() [all …]
|
D | audio_extn.h | 22 void *audio_extn_extspk_init(struct audio_device *adev); 29 #define audio_extn_hfp_is_active(adev) (0) argument 31 #define audio_extn_hfp_set_parameters(adev, params) (0) argument 33 bool audio_extn_hfp_is_active(struct audio_device *adev); 37 void audio_extn_hfp_set_parameters(struct audio_device *adev,
|
D | ext_speaker.c | 36 struct audio_device *adev; member 100 void *audio_extn_extspk_init(struct audio_device *adev) in audio_extn_extspk_init() argument 105 data->adev = adev; in audio_extn_extspk_init() 125 list_for_each(node, &data->adev->usecase_list) { in audio_extn_extspk_update() 128 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in audio_extn_extspk_update() 133 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { in audio_extn_extspk_update()
|
/hardware/intel/audio_media/hdmi/ |
D | tinyaudio_hw.c | 241 struct audio_device *adev = out->dev; in start_output_stream() local 246 if ((adev->card < 0) || (adev->device < 0)){ in start_output_stream() 249 adev->card = DEFAULT_CARD; in start_output_stream() 250 adev->device = DEFAULT_DEVICE; in start_output_stream() 251 ALOGV("%s : Setting default card/ device %d,%d",__func__,adev->card,adev->device); in start_output_stream() 273 adev->card = get_card_number_by_name("IntelHDMI"); in start_output_stream() 274 ALOGD("%s: HDMI card number = %d, device = %d",__func__,adev->card,adev->device); in start_output_stream() 276 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config); in start_output_stream() 395 struct audio_device *adev = out->dev; in out_set_parameters() local 404 pthread_mutex_lock(&adev->lock); in out_set_parameters() [all …]
|
/hardware/libhardware/modules/audio/ |
D | audio_hw.c | 389 struct stub_audio_device *adev; in adev_open() local 395 adev = calloc(1, sizeof(struct stub_audio_device)); in adev_open() 396 if (!adev) in adev_open() 399 adev->device.common.tag = HARDWARE_DEVICE_TAG; in adev_open() 400 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; in adev_open() 401 adev->device.common.module = (struct hw_module_t *) module; in adev_open() 402 adev->device.common.close = adev_close; in adev_open() 404 adev->device.init_check = adev_init_check; in adev_open() 405 adev->device.set_voice_volume = adev_set_voice_volume; in adev_open() 406 adev->device.set_master_volume = adev_set_master_volume; in adev_open() [all …]
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 79 struct audio_device *adev; member 252 void *platform_init(struct audio_device *adev) in platform_init() argument 259 adev->mixer = mixer_open(MIXER_CARD); in platform_init() 261 if (!adev->mixer) { in platform_init() 266 adev->audio_route = audio_route_init(MIXER_CARD, MIXER_XML_PATH); in platform_init() 267 if (!adev->audio_route) { in platform_init() 274 my_data->adev = adev; in platform_init() 283 adev->acdb_settings |= DMIC_FLAG; in platform_init() 286 adev->acdb_settings |= DMIC_FLAG; in platform_init() 449 voice_is_in_call(my_data->adev)) { in platform_switch_voice_call_device_pre() [all …]
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 75 struct audio_device *adev; member 410 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device) in platform_set_echo_reference() argument 419 snd_device = platform_get_output_snd_device(adev->platform, out_device); in platform_set_echo_reference() 420 platform_add_backend_name(adev->platform, mixer_path, snd_device); in platform_set_echo_reference() 424 audio_route_apply_and_update_path(adev->audio_route, mixer_path); in platform_set_echo_reference() 426 audio_route_reset_and_update_path(adev->audio_route, mixer_path); in platform_set_echo_reference() 652 void *platform_init(struct audio_device *adev) in platform_init() argument 660 adev->mixer = mixer_open(snd_card_num); in platform_init() 662 while (!adev->mixer && retry_num < RETRY_NUMBER) { in platform_init() 664 adev->mixer = mixer_open(snd_card_num); in platform_init() [all …]
|
/hardware/libhardware/modules/usbaudio/ |
D | audio_hw.c | 486 struct audio_device *adev = (struct audio_device *)dev; in adev_open_output_stream() local 514 out->dev = adev; in adev_open_output_stream() 516 out->profile = &adev->out_profile; in adev_open_output_stream() 1007 struct audio_device * adev = (struct audio_device *)dev; in adev_set_parameters() local 1027 pthread_mutex_lock(&adev->lock); in adev_set_parameters() 1029 profile_is_cached_for(&adev->out_profile, alsa_card, alsa_device)) { in adev_set_parameters() 1030 profile_decache(&adev->out_profile); in adev_set_parameters() 1033 profile_is_cached_for(&adev->in_profile, alsa_card, alsa_device)) { in adev_set_parameters() 1034 profile_decache(&adev->in_profile); in adev_set_parameters() 1036 pthread_mutex_unlock(&adev->lock); in adev_set_parameters() [all …]
|