/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 | 107 static struct platform_info my_data = {PTHREAD_MUTEX_INITIALIZER, variable 539 str_parms_add_str(my_data.kvpairs, (char*)attr[1], (char*)attr[3]); in process_config_params() 540 my_data.set_parameters(my_data.platform, my_data.kvpairs); in process_config_params() 741 platform_set_microphone_characteristic(my_data.platform, microphone); in process_microphone_characteristic() 798 platform_set_microphone_map(my_data.platform, in_snd_device, in process_mic_info() 819 if (platform_set_acdb_metainfo_key(my_data.platform, in process_acdb_metainfo_key() 836 if (my_data.do_full_parse) { in start_tag() 1047 pthread_mutex_lock(&my_data.lock); in platform_info_init() 1049 my_data.do_full_parse = do_full_parse; in platform_info_init() 1050 my_data.platform = platform; in platform_info_init() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | maxxaudio.c | 169 static struct ma_platform_data *my_data = NULL; variable 175 return platform_set_parameters(my_data->platform, in set_audio_cal() 182 return my_data->ma_set_lr_swap(g_ma_audio_cal_handle, in ma_set_lr_swap_l() 189 return my_data->ma_set_orientation(g_ma_audio_cal_handle, in ma_set_orientation_l() 196 return my_data->ma_set_sound_mode(g_ma_audio_cal_handle, in ma_set_sound_mode_l() 203 return my_data->ma_set_volume(g_ma_audio_cal_handle, audio_cal_settings, in ma_set_volume_l() 211 return my_data->ma_set_volume_table(g_ma_audio_cal_handle, in ma_set_volume_table_l() 220 return my_data->ma_set_param(g_ma_audio_cal_handle, in ma_set_param_l() 338 ret = ma_set_orientation_l(&ma_cal, my_data->dispaly_orientation); in check_and_send_all_audio_cal() 341 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 584 if (platform_info_init(platform_info_file, my_data, false, in audio_extn_utils_get_snd_card_num() 600 if (my_data->snd_card_name != NULL && in audio_extn_utils_get_snd_card_num() 601 strncmp(snd_card_name, my_data->snd_card_name, in audio_extn_utils_get_snd_card_num() 602 min(strlen(snd_card_name), strlen(my_data->snd_card_name))) != 0) { in audio_extn_utils_get_snd_card_num() 604 __func__, snd_card_name, my_data->snd_card_name); in audio_extn_utils_get_snd_card_num() 609 __func__, snd_card_name, my_data->snd_card_name); in audio_extn_utils_get_snd_card_num() 623 if (my_data) in audio_extn_utils_get_snd_card_num() 624 free(my_data); in audio_extn_utils_get_snd_card_num()
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 276 struct platform_data *my_data; in platform_init() local 291 my_data = calloc(1, sizeof(struct platform_data)); in platform_init() 293 my_data->adev = adev; in platform_init() 294 my_data->dualmic_config = DUALMIC_CONFIG_NONE; in platform_init() 295 my_data->fluence_in_spkr_mode = false; in platform_init() 296 my_data->fluence_in_voice_call = false; in platform_init() 297 my_data->fluence_in_voice_rec = false; in platform_init() 301 my_data->dualmic_config = DUALMIC_CONFIG_BROADSIDE; in platform_init() 304 my_data->dualmic_config = DUALMIC_CONFIG_ENDFIRE; in platform_init() 308 if (my_data->dualmic_config != DUALMIC_CONFIG_NONE) { in platform_init() [all …]
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 981 struct platform_data *my_data = (struct platform_data *)platform; in set_audiocal() local 1039 if (my_data->acdb_set_audio_cal) { in set_audiocal() 1040 ret = my_data->acdb_set_audio_cal((void *)&cal, (void *)dptr, dlen); in set_audiocal() 1051 struct platform_data *my_data = (struct platform_data *)platform; in platform_send_gain_dep_cal() local 1052 struct audio_device *adev = my_data->adev; in platform_send_gain_dep_cal() 1061 if (my_data->acdb_send_gain_dep_cal == NULL) { in platform_send_gain_dep_cal() 1093 if (!my_data->acdb_send_gain_dep_cal(acdb_dev_id, app_type, in platform_send_gain_dep_cal() 1113 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_echo_reference() local 1116 if (strcmp(my_data->ec_ref_mixer_path, "")) { in platform_set_echo_reference() 1117 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 | 697 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_echo_reference() local 700 if (strcmp(my_data->ec_ref_mixer_path, "")) { in platform_set_echo_reference() 701 ALOGV("%s: disabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference() 703 my_data->ec_ref_mixer_path); in platform_set_echo_reference() 709 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device); in platform_set_echo_reference() 712 strlcpy(my_data->ec_ref_mixer_path, "echo-reference", in platform_set_echo_reference() 713 sizeof(my_data->ec_ref_mixer_path)); in platform_set_echo_reference() 715 ALOGD("%s: enabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference() 717 my_data->ec_ref_mixer_path); in platform_set_echo_reference() 960 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()
|