• Home
  • Raw
  • Download

Lines Matching refs:my_data

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
973 get_cvd_version(cvd_version, my_data->adev); in platform_acdb_init()
977 snd_card_name = mixer_get_name(my_data->adev->mixer); in platform_acdb_init()
979 if (my_data->acdb_init_v3) { in platform_acdb_init()
980 result = my_data->acdb_init_v3(snd_card_name, cvd_version, in platform_acdb_init()
981 &my_data->acdb_meta_key_list); in platform_acdb_init()
982 } else if (my_data->acdb_init) { in platform_acdb_init()
983 result = my_data->acdb_init((char *)snd_card_name, cvd_version, key); in platform_acdb_init()
990 audio_hwdep_send_cal(my_data); in platform_acdb_init()
1024 struct platform_data *my_data = NULL; in platform_init() local
1033 my_data = calloc(1, sizeof(struct platform_data)); in platform_init()
1034 if (!my_data) { in platform_init()
1047 free(my_data); in platform_init()
1048 my_data = NULL; in platform_init()
1076 my_data->hw_info = hw_info_init(snd_card_name); in platform_init()
1077 if (!my_data->hw_info) { in platform_init()
1093 hw_info_deinit(my_data->hw_info); in platform_init()
1094 my_data->hw_info = NULL; in platform_init()
1095 free(my_data); in platform_init()
1096 my_data = NULL; in platform_init()
1112 my_data->max_vol_index = atoi(value); in platform_init()
1114 my_data->adev = adev; in platform_init()
1115 my_data->fluence_in_spkr_mode = false; in platform_init()
1116 my_data->fluence_in_voice_call = false; in platform_init()
1117 my_data->fluence_in_voice_rec = false; in platform_init()
1118 my_data->fluence_type = FLUENCE_NONE; in platform_init()
1119 my_data->fluence_mode = FLUENCE_ENDFIRE; in platform_init()
1121 property_get("ro.qc.sdk.audio.fluencetype", my_data->fluence_cap, ""); in platform_init()
1122 if (!strncmp("fluencepro", my_data->fluence_cap, sizeof("fluencepro"))) { in platform_init()
1123 my_data->fluence_type = FLUENCE_QUAD_MIC | FLUENCE_DUAL_MIC; in platform_init()
1124 } else if (!strncmp("fluence", my_data->fluence_cap, sizeof("fluence"))) { in platform_init()
1125 my_data->fluence_type = FLUENCE_DUAL_MIC; in platform_init()
1127 my_data->fluence_type = FLUENCE_NONE; in platform_init()
1130 if (my_data->fluence_type != FLUENCE_NONE) { in platform_init()
1133 my_data->fluence_in_voice_call = true; in platform_init()
1138 my_data->fluence_in_voice_rec = true; in platform_init()
1143 my_data->fluence_in_spkr_mode = true; in platform_init()
1148 my_data->fluence_mode = FLUENCE_BROADSIDE; in platform_init()
1160 list_init(&my_data->acdb_meta_key_list); in platform_init()
1165 platform_info_init(platform_info_path, my_data, in platform_init()
1168 my_data->acdb_handle = dlopen(LIB_ACDB_LOADER, RTLD_NOW); in platform_init()
1169 if (my_data->acdb_handle == NULL) { in platform_init()
1173 my_data->acdb_deallocate = (acdb_deallocate_t)dlsym(my_data->acdb_handle, in platform_init()
1175 if (!my_data->acdb_deallocate) in platform_init()
1179 my_data->acdb_send_audio_cal_v3 = (acdb_send_audio_cal_v3_t)dlsym(my_data->acdb_handle, in platform_init()
1181 if (!my_data->acdb_send_audio_cal_v3) in platform_init()
1185 my_data->acdb_send_audio_cal = (acdb_send_audio_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1187 if (!my_data->acdb_send_audio_cal) in platform_init()
1191 my_data->acdb_get_audio_cal = (acdb_get_audio_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1193 if (!my_data->acdb_get_audio_cal) in platform_init()
1197 my_data->acdb_send_voice_cal = (acdb_send_voice_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1199 if (!my_data->acdb_send_voice_cal) in platform_init()
1203 my_data->acdb_reload_vocvoltable = (acdb_reload_vocvoltable_t)dlsym(my_data->acdb_handle, in platform_init()
1205 if (!my_data->acdb_reload_vocvoltable) in platform_init()
1209 my_data->acdb_init = (acdb_init_v2_cvd_t)dlsym(my_data->acdb_handle, in platform_init()
1211 if (my_data->acdb_init == NULL) { in platform_init()
1216 my_data->acdb_init_v3 = (acdb_init_v3_t)dlsym(my_data->acdb_handle, in platform_init()
1218 if (my_data->acdb_init_v3 == NULL) { in platform_init()
1221 platform_acdb_init(my_data); in platform_init()
1232 return my_data; in platform_init()
1237 struct platform_data *my_data = (struct platform_data *)platform; in platform_deinit() local
1244 audio_extn_spkr_prot_deinit(my_data->adev); in platform_deinit()
1246 hw_info_deinit(my_data->hw_info); in platform_deinit()
1275 mixer_close(my_data->adev->mixer); in platform_deinit()
1293 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_snd_device_name_extn() local
1306 hw_info_append_hw_type(my_data->hw_info, snd_device, device_name); in platform_get_snd_device_name_extn()
1344 struct platform_data *my_data = (struct platform_data *)platform; in platform_add_backend_name() local
1631 struct platform_data *my_data = (struct platform_data *)platform; local
1648 if ((my_data->acdb_send_audio_cal_v3) &&
1652 my_data->acdb_send_audio_cal_v3(acdb_dev_id, ACDB_DEV_TYPE_IN,
1654 my_data->acdb_send_audio_cal_v3(acdb_dev_id, ACDB_DEV_TYPE_OUT,
1656 } else if ((my_data->acdb_send_audio_cal_v3) &&
1662 my_data->acdb_send_audio_cal_v3(acdb_dev_id, ACDB_DEV_TYPE_IN,
1664 my_data->acdb_send_audio_cal_v3(acdb_dev_id, ACDB_DEV_TYPE_OUT,
1666 } else if (my_data->acdb_send_audio_cal) {
1667 my_data->acdb_send_audio_cal(acdb_dev_id, acdb_dev_type);
1688 struct platform_data *my_data = (struct platform_data *)platform; local
1691 if (my_data->acdb_send_voice_cal == NULL) {
1698 my_data->acdb_send_voice_cal(acdb_rx_id, acdb_tx_id);
1743 struct platform_data *my_data = (struct platform_data *)platform; local
1744 struct audio_device *adev = my_data->adev;
1756 vol_index = (int)percent_to_index(volume, MIN_VOL_INDEX, my_data->max_vol_index);
1769 if (vol_index == my_data->max_vol_index) {
1789 struct platform_data *my_data = (struct platform_data *)platform; local
1790 struct audio_device *adev = my_data->adev;
1819 struct platform_data *my_data = (struct platform_data *)platform; local
1820 struct audio_device *adev = my_data->adev;
1888 struct platform_data *my_data = (struct platform_data *)platform; local
1889 struct audio_device *adev = my_data->adev;
1997 if (my_data->speaker_lr_swap &&
2026 static snd_device_t get_snd_device_for_voice_comm(struct platform_data *my_data,
2031 struct audio_device *adev = my_data->adev;
2034 if (my_data->fluence_type != FLUENCE_NONE) {
2037 if (my_data->fluence_in_spkr_mode) {
2038 if (my_data->fluence_type & FLUENCE_QUAD_MIC) {
2040 } else if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2041 if (my_data->fluence_mode == FLUENCE_BROADSIDE)
2051 if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2067 static snd_device_t get_snd_device_for_voice_comm(struct platform_data *my_data,
2072 struct audio_device *adev = my_data->adev;
2075 if (my_data->fluence_type != FLUENCE_NONE &&
2079 if (my_data->fluence_in_spkr_mode) {
2080 if (my_data->fluence_type & FLUENCE_QUAD_MIC) {
2082 } else if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2083 if (my_data->fluence_mode == FLUENCE_BROADSIDE)
2092 if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2101 } else if (my_data->fluence_type != FLUENCE_NONE &&
2104 if (my_data->fluence_in_spkr_mode) {
2105 if (my_data->fluence_type & FLUENCE_QUAD_MIC) {
2107 } else if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2108 if (my_data->fluence_mode == FLUENCE_BROADSIDE)
2117 if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2126 } else if (my_data->fluence_type != FLUENCE_NONE &&
2129 if (my_data->fluence_in_spkr_mode) {
2130 if (my_data->fluence_type & FLUENCE_QUAD_MIC) {
2132 } else if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2133 if (my_data->fluence_mode == FLUENCE_BROADSIDE)
2142 if (my_data->fluence_type & FLUENCE_DUAL_MIC) {
2162 struct platform_data *my_data = (struct platform_data *)platform; local
2163 struct audio_device *adev = my_data->adev;
2206 if (my_data->fluence_type == FLUENCE_NONE ||
2207 my_data->fluence_in_voice_call == false) {
2232 if (my_data->fluence_type != FLUENCE_NONE &&
2233 my_data->fluence_in_voice_call &&
2234 my_data->fluence_in_spkr_mode) {
2235 if(my_data->fluence_type & FLUENCE_QUAD_MIC) {
2240 if (my_data->fluence_mode == FLUENCE_BROADSIDE)
2259 if (my_data->fluence_type & FLUENCE_DUAL_MIC &&
2272 else if (my_data->fluence_type != FLUENCE_NONE &&
2273 my_data->fluence_in_voice_rec) {
2286 snd_device = get_snd_device_for_voice_comm(my_data, in,
2304 if (my_data->fluence_type & (FLUENCE_DUAL_MIC | FLUENCE_QUAD_MIC) &&
2380 struct platform_data *my_data = (struct platform_data *)platform; local
2381 struct audio_device *adev = my_data->adev;
2414 struct platform_data *my_data = (struct platform_data *)platform; local
2415 struct audio_device *adev = my_data->adev;
2472 struct platform_data *my_data = (struct platform_data *)platform; local
2473 struct audio_device *adev = my_data->adev;
2521 struct platform_data *my_data = (struct platform_data *)platform; local
2551 audio_extn_hfp_set_parameters(my_data->adev, parms);
2686 struct platform_data *my_data = (struct platform_data *)adev->platform; local
2689 if (swap_channels && !my_data->speaker_lr_swap)
2724 struct platform_data *my_data = (struct platform_data *)adev->platform; local
2726 my_data->speaker_lr_swap = swap_channels;
2736 struct platform_data *my_data = (struct platform_data *)adev->platform; local