/hardware/qcom/audio/hal/voice_extn/ |
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) 43 static int voice_extn_stop_call(struct audio_device *adev __unused [all...] |
voice_extn.c | 71 int voice_extn_is_call_state_active(struct audio_device *adev, bool *is_call_active); 125 static uint32_t get_session_id_with_state(struct audio_device *adev, 133 session = &adev->voice.session[i]; 143 static int update_calls(struct audio_device *adev) 156 session = &adev->voice.session[i]; 167 ret = voice_start_usecase(adev, usecase_id); 205 ret = voice_stop_usecase(adev, usecase_id); 276 static int update_call_states(struct audio_device *adev, 284 if (vsid == adev->voice.session[i].vsid) { 285 session = &adev->voice.session[i] [all...] |
/hardware/qcom/audio/hal/ |
voice.c | 41 static struct voice_session *voice_get_session_from_use_case(struct audio_device *adev, 47 ret = voice_extn_get_session_from_use_case(adev, usecase_id, &session); 49 session = &adev->voice.session[VOICE_SESS_IDX]; 55 int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id) 63 session = (struct voice_session *)voice_get_session_from_use_case(adev, usecase_id); 66 ret = platform_stop_voice_call(adev->platform, session->vsid); 78 uc_info = get_usecase_from_list(adev, usecase_id); 86 disable_audio_route(adev, uc_info); 89 disable_snd_device(adev, uc_info->out_snd_device); 90 disable_snd_device(adev, uc_info->in_snd_device) [all...] |
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...] |
audio_hw.c | 185 static int set_voice_volume_l(struct audio_device *adev, float volume); 186 static struct audio_device *adev = NULL; variable in typeref:struct:audio_device 197 if (adev != NULL && adev->platform != NULL) { 198 pthread_mutex_lock(&adev->lock); 199 ret_val = platform_send_gain_dep_cal(adev->platform, level); 200 pthread_mutex_unlock(&adev->lock); 202 ALOGE("%s: %s is NULL", __func__, adev == NULL ? "adev" : "adev->platform") 739 struct audio_device *adev = in->dev; local 770 struct audio_device *adev = in->dev; local 1059 struct audio_device *adev = out->dev; local 1100 struct audio_device *adev = out->dev; local 1285 struct audio_device *adev = out->dev; local 1361 struct audio_device *adev = out->dev; local 1506 struct audio_device *adev = out->dev; local 1552 struct audio_device *adev = out->dev; local 1814 struct audio_device *adev = in->dev; local 1850 struct audio_device *adev = in->dev; local 1907 struct audio_device *adev = in->dev; local 1966 struct audio_device *adev = in->dev; local 2029 struct audio_device *adev = (struct audio_device *)dev; local 2243 struct audio_device *adev = out->dev; local 2265 struct audio_device *adev = (struct audio_device *)dev; local 2339 struct audio_device *adev = (struct audio_device *)dev; local 2364 struct audio_device *adev = (struct audio_device *)dev; local 2398 struct audio_device *adev = (struct audio_device *)dev; local 2420 struct audio_device *adev = (struct audio_device *)dev; local 2455 struct audio_device *adev = (struct audio_device *)dev; local 2701 struct audio_device *adev = (struct audio_device *)device; local [all...] |
audio_hw.h | 245 int select_devices(struct audio_device *adev, 248 int disable_audio_route(struct audio_device *adev, 251 int disable_snd_device(struct audio_device *adev, 254 int enable_snd_device(struct audio_device *adev, 257 int enable_audio_route(struct audio_device *adev, 260 struct audio_usecase *get_usecase_from_list(struct audio_device *adev,
|
platform_api.h | 20 void *platform_init(struct audio_device *adev); 69 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device); 70 int platform_swap_lr_channels(struct audio_device *adev, bool swap_channels);
|
/hardware/qcom/audio/hal/audio_extn/ |
audio_extn.h | 22 void *audio_extn_extspk_init(struct audio_device *adev); 29 #define audio_extn_spkr_prot_init(adev) (0) 31 #define audio_extn_spkr_prot_calib_cancel(adev) (0) 37 void audio_extn_spkr_prot_init(void *adev); 43 void audio_extn_spkr_prot_calib_cancel(void *adev); 47 #define audio_extn_hfp_is_active(adev) (0) 49 #define audio_extn_hfp_set_parameters(adev, params) (0) 51 bool audio_extn_hfp_is_active(struct audio_device *adev); 55 void audio_extn_hfp_set_parameters(struct audio_device *adev, 60 #define audio_extn_sound_trigger_init(adev) (0 [all...] |
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) 95 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); 110 static int32_t start_hfp(struct audio_device *adev, 122 uc_info->stream.out = adev->primary_output; 123 uc_info->devices = adev->primary_output->devices; 127 list_add_tail(&adev->usecase_list, &uc_info->list); 129 select_devices(adev, hfpmod.ucid); 147 __func__, adev->snd_card, pcm_dev_rx_id) [all...] |
dsm_feedback.c | 42 int start_dsm_feedback_processing(struct audio_device *adev, int enable) 61 dsm_pcm_handle = pcm_open(adev->snd_card, 89 void audio_extn_dsm_feedback_enable(struct audio_device *adev, 93 if ( NULL == adev ) 104 start_dsm_feedback_processing(adev, benable);
|
ext_speaker.c | 37 struct audio_device *adev; member in struct:speaker_data 101 void *audio_extn_extspk_init(struct audio_device *adev) 106 data->adev = adev; 126 list_for_each(node, &data->adev->usecase_list) { 129 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) { 134 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
|
spkr_protection.c | 136 void audio_extn_spkr_prot_calib_cancel(void *adev) 143 if (pthread_equal(handle.speaker_prot_threadid, threadid) || !adev) { 147 uc_info = get_usecase_from_list(adev, USECASE_AUDIO_SPKR_CALIB_RX); 271 static int vi_feed_get_channels(struct audio_device *adev) 278 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); 293 // must be called with adev->lock acquired 296 struct audio_device *adev = handle.adev_handle; local 306 if (!adev) { 310 if (!list_empty(&adev->usecase_list)) { 337 uc_info_rx->stream.out = adev->primary_output 528 struct audio_device *adev = handle.adev_handle; local 803 struct audio_device *adev = handle.adev_handle; local 875 struct audio_device *adev = handle.adev_handle; local [all...] |
soundtrigger.c | 42 struct audio_device *adev; member in struct:sound_trigger_audio_device 240 void audio_extn_sound_trigger_set_parameters(struct audio_device *adev __unused, 288 int audio_extn_sound_trigger_init(struct audio_device *adev) 326 st_dev->adev = adev; 340 void audio_extn_sound_trigger_deinit(struct audio_device *adev) 343 if (st_dev && (st_dev->adev == adev) && st_dev->lib_handle) {
|
/device/generic/goldfish/audio/ |
audio_hw.c | 187 struct generic_audio_device *adev = out->dev; local 189 pthread_mutex_lock(&adev->lock); 190 if (adev->fd >= 0) 191 bytes = write(adev->fd, buffer, bytes); 192 pthread_mutex_unlock(&adev->lock); 339 struct generic_audio_device *adev = in->dev; local 341 pthread_mutex_lock(&adev->lock); 342 if (adev->fd >= 0) 343 bytes = read(adev->fd, buffer, bytes); 344 if (adev->mic_mute && (bytes > 0)) 377 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 433 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 456 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 498 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 508 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 532 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 586 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 598 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 623 struct generic_audio_device *adev = (struct generic_audio_device *)dev; local 638 struct generic_audio_device *adev; local [all...] |
/device/asus/fugu/libaudio/ |
audio_hal_thunks.cpp | 378 const struct atv_audio_device* adev = local 381 return adev->output->setParameters(kvpairs); 388 const struct atv_audio_device* adev = local 391 return adev->output->getParameters(keys); 410 const struct atv_audio_device* adev = local 413 return adev->input->setMicMute(state); 418 const struct atv_audio_device* adev = local 421 return adev->input->getMicMute(state); 427 const struct atv_audio_device* adev = local 430 return adev->input->getInputBufferSize(config) 445 struct atv_audio_device* adev = local 499 struct atv_audio_device* adev = local 518 struct atv_audio_device* adev = local 583 struct atv_audio_device* adev = local 594 const struct atv_audio_device* adev = local 602 struct atv_audio_device* adev = local 611 struct atv_audio_device* adev = local 619 struct atv_audio_device* adev = local 628 struct atv_audio_device* adev = local 636 const struct atv_audio_device* adev = local 648 struct atv_audio_device* adev = local 661 struct atv_audio_device* adev = NULL; local [all...] |
/device/htc/flounder/audio/hal/ |
audio_hw.c | 234 static void dummybuf_thread_close(struct audio_device *adev); 305 static struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card) 310 list_for_each(node, &adev->mixer_list) { 331 static void free_mixer_list(struct audio_device *adev) 337 list_for_each_safe(node, next, &adev->mixer_list) { 345 static int mixer_init(struct audio_device *adev) 356 list_init(&adev->mixer_list); 360 if (adev_get_mixer_for_card(adev, card) == NULL) { 385 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node); 392 free_mixer_list(adev); 1189 struct audio_device *adev = in->dev; local 1904 struct audio_device *adev = in->dev; local 1947 struct audio_device *adev = in->dev; local 2300 struct audio_device *adev = out->dev; local 2373 struct audio_device *adev = out->dev; local 2392 struct audio_device *adev = out->dev; local 2411 struct audio_device *adev = out->dev; local 2436 struct audio_device *adev = out->dev; local 2640 struct audio_device *adev = out->dev; local 2675 struct audio_device *adev = out->dev; local 2734 struct audio_device *adev = out->dev; local 2901 struct audio_device *adev = out->dev; local 2942 struct audio_device *adev = (struct audio_device *)context; local 2983 struct audio_device *adev = out->dev; local 3483 struct audio_device *adev = in->dev; local 3506 struct audio_device *adev = in->dev; local 3545 struct audio_device *adev = in->dev; local 3560 struct audio_device *adev = in->dev; local 3581 struct audio_device *adev = in->dev; local 3670 struct audio_device *adev = in->dev; local 3685 struct audio_device *adev = in->dev; local 3774 struct audio_device *adev = in->dev; local 3886 struct audio_device *adev = (struct audio_device *)dev; local 4045 struct audio_device *adev = out->dev; local 4064 struct audio_device *adev = (struct audio_device *)dev; local 4181 struct audio_device *adev = (struct audio_device *)dev; local 4225 struct audio_device *adev = (struct audio_device *)dev; local 4241 struct audio_device *adev = (struct audio_device *)dev; local 4257 struct audio_device *adev = (struct audio_device *)dev; local 4288 struct audio_device *adev = (struct audio_device *)dev; local 4366 struct audio_device *adev = (struct audio_device *)dev; local 4424 struct audio_device *adev = (struct audio_device *)device; local 4436 struct audio_device *adev = (struct audio_device *)context; local 4616 struct audio_device *adev; local [all...] |
/hardware/intel/audio_media/hdmi/ |
tinyaudio_hw.c | 226 struct audio_device *adev = out->dev; local 230 if ((adev->card < 0) || (adev->device < 0)){ 233 adev->card = DEFAULT_CARD; 234 adev->device = DEFAULT_DEVICE; 235 ALOGV("%s : Setting default card/ device %d,%d",__func__,adev->card,adev->device); 257 adev->card = get_card_number_by_name("IntelHDMI"); 258 ALOGD("%s: HDMI card number = %d, device = %d",__func__,adev->card,adev->device) 379 struct audio_device *adev = out->dev; local 473 struct audio_device *adev = out->dev; local 496 struct audio_device *adev = out->dev; local 684 struct audio_device *adev = (struct audio_device *)dev; local 916 struct audio_device *adev; local [all...] |
/hardware/libhardware/modules/audio/ |
audio_hw.c | 437 struct stub_audio_device *adev; local 443 adev = calloc(1, sizeof(struct stub_audio_device)); 444 if (!adev) 447 adev->device.common.tag = HARDWARE_DEVICE_TAG; 448 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; 449 adev->device.common.module = (struct hw_module_t *) module; 450 adev->device.common.close = adev_close; 452 adev->device.init_check = adev_init_check; 453 adev->device.set_voice_volume = adev_set_voice_volume; 454 adev->device.set_master_volume = adev_set_master_volume [all...] |
/hardware/qcom/audio/hal/msm8974/ |
platform.c | 89 struct audio_device *adev; member in struct:platform_data 460 struct audio_device *adev = my_data->adev; local 472 if (!voice_is_in_call(adev)) { 478 list_for_each(node, &adev->usecase_list) { 510 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device) 512 struct platform_data *my_data = (struct platform_data *)adev->platform; 517 audio_route_reset_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path); 523 snd_device = platform_get_output_snd_device(adev->platform, out_device); 524 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device) 1309 struct audio_device *adev = my_data->adev; local 1345 struct audio_device *adev = my_data->adev; local 1379 struct audio_device *adev = my_data->adev; local 1460 struct audio_device *adev = my_data->adev; local 1584 struct audio_device *adev = my_data->adev; local 1821 struct audio_device *adev = my_data->adev; local 1855 struct audio_device *adev = my_data->adev; local 1912 struct audio_device *adev = my_data->adev; local [all...] |
/hardware/qcom/audio/hal/msm8960/ |
platform.c | 79 struct audio_device *adev; member in struct:platform_data 253 void *platform_init(struct audio_device *adev) 260 adev->mixer = mixer_open(MIXER_CARD); 262 if (!adev->mixer) { 267 adev->audio_route = audio_route_init(MIXER_CARD, MIXER_XML_PATH); 268 if (!adev->audio_route) { 275 my_data->adev = adev; 284 adev->acdb_settings |= DMIC_FLAG; 287 adev->acdb_settings |= DMIC_FLAG 596 struct audio_device *adev = my_data->adev; local 690 struct audio_device *adev = my_data->adev; local 859 struct audio_device *adev = my_data->adev; local [all...] |
/hardware/libhardware/modules/usbaudio/ |
audio_hal.c | 483 struct audio_device *adev = (struct audio_device *)dev; local 514 out->dev = adev; 515 pthread_mutex_lock(&adev->lock); 516 out->profile = &adev->out_profile; 527 pthread_mutex_unlock(&adev->lock); 1012 struct audio_device * adev = (struct audio_device *)dev; local 1031 struct audio_device *adev = (struct audio_device *)device; local 1042 struct audio_device *adev = calloc(1, sizeof(struct audio_device)); local [all...] |
/system/bt/audio_a2dp_hw/ |
audio_a2dp_hw.c | 1327 struct a2dp_audio_device *adev; local [all...] |