/hardware/qcom/audio/hal/ |
D | acdb.c | 42 struct acdb_platform_data *my_data = NULL; in acdb_init() local 56 my_data = calloc(1, sizeof(struct acdb_platform_data)); in acdb_init() 57 if (!my_data) { in acdb_init() 62 list_init(&my_data->acdb_meta_key_list); in acdb_init() 64 my_data->acdb_handle = dlopen(LIB_ACDB_LOADER, RTLD_NOW); in acdb_init() 65 if (my_data->acdb_handle == NULL) { in acdb_init() 72 my_data->acdb_init_v3 = (acdb_init_v3_t)dlsym(my_data->acdb_handle, in acdb_init() 74 if (my_data->acdb_init_v3 == NULL) in acdb_init() 77 my_data->acdb_init_v2 = (acdb_init_v2_cvd_t)dlsym(my_data->acdb_handle, in acdb_init() 79 if (my_data->acdb_init_v2 == NULL) in acdb_init() [all …]
|
D | platform_info.c | 113 static struct platform_info my_data = {PTHREAD_MUTEX_INITIALIZER, variable 600 str_parms_add_str(my_data.kvpairs, (char*)attr[1], (char*)attr[3]); in process_config_params() 601 my_data.set_parameters(my_data.platform, my_data.kvpairs); in process_config_params() 802 platform_set_microphone_characteristic(my_data.platform, microphone); in process_microphone_characteristic() 859 platform_set_microphone_map(my_data.platform, in_snd_device, in process_mic_info() 880 if (platform_set_acdb_metainfo_key(my_data.platform, in process_acdb_metainfo_key() 897 if (my_data.do_full_parse) { in start_tag() 1118 pthread_mutex_lock(&my_data.lock); in platform_info_init() 1120 my_data.do_full_parse = do_full_parse; in platform_info_init() 1121 my_data.platform = platform; in platform_info_init() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | maxxaudio.c | 170 static struct ma_platform_data *my_data = NULL; variable 176 return platform_set_parameters(my_data->platform, in set_audio_cal() 183 return my_data->ma_set_lr_swap(g_ma_audio_cal_handle, in ma_set_lr_swap_l() 190 return my_data->ma_set_orientation(g_ma_audio_cal_handle, in ma_set_orientation_l() 197 return my_data->ma_set_sound_mode(g_ma_audio_cal_handle, in ma_set_sound_mode_l() 204 return my_data->ma_set_volume(g_ma_audio_cal_handle, audio_cal_settings, in ma_set_volume_l() 212 return my_data->ma_set_volume_table(g_ma_audio_cal_handle, in ma_set_volume_table_l() 221 return my_data->ma_set_param(g_ma_audio_cal_handle, in ma_set_param_l() 339 ret = ma_set_orientation_l(&ma_cal, my_data->dispaly_orientation); in check_and_send_all_audio_cal() 342 my_data->dispaly_orientation); in check_and_send_all_audio_cal() [all …]
|
D | utils.c | 541 struct acdb_platform_data *my_data = calloc(1, sizeof(struct acdb_platform_data)); in audio_extn_utils_get_snd_card_num() local 586 if (platform_info_init(platform_info_file, my_data, false, in audio_extn_utils_get_snd_card_num() 602 if (my_data->snd_card_name != NULL && in audio_extn_utils_get_snd_card_num() 603 strncmp(snd_card_name, my_data->snd_card_name, in audio_extn_utils_get_snd_card_num() 604 min(strlen(snd_card_name), strlen(my_data->snd_card_name))) != 0) { in audio_extn_utils_get_snd_card_num() 606 __func__, snd_card_name, my_data->snd_card_name); in audio_extn_utils_get_snd_card_num() 611 __func__, snd_card_name, my_data->snd_card_name); in audio_extn_utils_get_snd_card_num() 625 if (my_data) in audio_extn_utils_get_snd_card_num() 626 free(my_data); in audio_extn_utils_get_snd_card_num()
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 294 struct platform_data *my_data; in platform_init() local 309 my_data = calloc(1, sizeof(struct platform_data)); in platform_init() 311 my_data->adev = adev; in platform_init() 312 my_data->dualmic_config = DUALMIC_CONFIG_NONE; in platform_init() 313 my_data->fluence_in_spkr_mode = false; in platform_init() 314 my_data->fluence_in_voice_call = false; in platform_init() 315 my_data->fluence_in_voice_rec = false; in platform_init() 319 my_data->dualmic_config = DUALMIC_CONFIG_BROADSIDE; in platform_init() 322 my_data->dualmic_config = DUALMIC_CONFIG_ENDFIRE; in platform_init() 326 if (my_data->dualmic_config != DUALMIC_CONFIG_NONE) { in platform_init() [all …]
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 1000 struct platform_data *my_data = (struct platform_data *)platform; in set_audiocal() local 1058 if (my_data->acdb_set_audio_cal) { in set_audiocal() 1059 ret = my_data->acdb_set_audio_cal((void *)&cal, (void *)dptr, dlen); in set_audiocal() 1070 struct platform_data *my_data = (struct platform_data *)platform; in platform_send_gain_dep_cal() local 1071 struct audio_device *adev = my_data->adev; in platform_send_gain_dep_cal() 1080 if (my_data->acdb_send_gain_dep_cal == NULL) { in platform_send_gain_dep_cal() 1112 if (!my_data->acdb_send_gain_dep_cal(acdb_dev_id, app_type, in platform_send_gain_dep_cal() 1132 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_echo_reference() local 1135 if (strcmp(my_data->ec_ref_mixer_path, "")) { in platform_set_echo_reference() 1136 ALOGV("%s: diabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference() [all …]
|
D | hw_info.c | 130 struct hardware_info *my_data = (struct hardware_info*) hw_info; in hw_info_append_hw_type() local 133 if (my_data == NULL) in hw_info_append_hw_type() 137 (snd_device_t *) my_data->snd_devices; in hw_info_append_hw_type() 140 for (i = 0; i < my_data->num_snd_devices; i++) { in hw_info_append_hw_type() 143 (snd_device_t)snd_devices[i], device_name, my_data->dev_extn); in hw_info_append_hw_type() 144 CHECK(strlcat(device_name, my_data->dev_extn, in hw_info_append_hw_type()
|
/hardware/qcom/audio/hal/msm8916/ |
D | platform.c | 715 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_echo_reference() local 718 if (strcmp(my_data->ec_ref_mixer_path, "")) { in platform_set_echo_reference() 719 ALOGV("%s: disabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference() 721 my_data->ec_ref_mixer_path); in platform_set_echo_reference() 727 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device); in platform_set_echo_reference() 730 strlcpy(my_data->ec_ref_mixer_path, "echo-reference", in platform_set_echo_reference() 731 sizeof(my_data->ec_ref_mixer_path)); in platform_set_echo_reference() 733 ALOGD("%s: enabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference() 735 my_data->ec_ref_mixer_path); in platform_set_echo_reference() 978 struct platform_data *my_data = (struct platform_data *)platform; in platform_acdb_init() local [all …]
|
D | hw_info.c | 95 struct hardware_info *my_data = (struct hardware_info*) hw_info; in hw_info_deinit() local 97 if(my_data) in hw_info_deinit() 98 free(my_data); in hw_info_deinit() 104 struct hardware_info *my_data = (struct hardware_info*) hw_info; in hw_info_append_hw_type() local 107 if (my_data == NULL) in hw_info_append_hw_type() 111 (snd_device_t *) my_data->snd_devices; in hw_info_append_hw_type() 114 for (i = 0; i < my_data->num_snd_devices; i++) { in hw_info_append_hw_type() 117 (snd_device_t)snd_devices[i], my_data->dev_extn); in hw_info_append_hw_type() 118 CHECK(strlcat(device_name, my_data->dev_extn, in hw_info_append_hw_type()
|