• Home
  • Raw
  • Download

Lines Matching refs:my_data

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()
1118 audio_route_reset_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path); in platform_set_echo_reference()
1122 strcpy(my_data->ec_ref_mixer_path, "echo-reference"); in platform_set_echo_reference()
1125 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device); in platform_set_echo_reference()
1128 ALOGV("%s: enabling %s", __func__, my_data->ec_ref_mixer_path); in platform_set_echo_reference()
1129 audio_route_apply_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path); in platform_set_echo_reference()
1273 static void platform_csd_init(struct platform_data *my_data) in platform_csd_init() argument
1281 my_data->csd = NULL; in platform_csd_init()
1307 my_data->csd = open_csd_client(false /*is_i2s_ext_modem*/); in platform_csd_init()
1312 my_data->csd = NULL; in platform_csd_init()
1316 static void set_platform_defaults(struct platform_data * my_data) in set_platform_defaults() argument
1486 my_data->max_mic_count = PLATFORM_DEFAULT_MIC_COUNT; in set_platform_defaults()
1518 struct platform_data *my_data = (struct platform_data *)platform; in platform_acdb_init() local
1519 struct audio_device *adev = my_data->adev; in platform_acdb_init()
1521 if (!my_data->acdb_init) { in platform_acdb_init()
1526 if (my_data->acdb_initialized) { in platform_acdb_init()
1537 my_data->acdb_init((char *)my_data->snd_card_name, cvd_version, 0); in platform_acdb_init()
1541 my_data->acdb_init((char *)my_data->snd_card_name); in platform_acdb_init()
1543 my_data->acdb_init(); in platform_acdb_init()
1545 my_data->acdb_initialized = true; in platform_acdb_init()
1695 struct platform_data *my_data = NULL; in platform_init() local
1705 my_data = calloc(1, sizeof(struct platform_data)); in platform_init()
1707 my_data->adev = adev; in platform_init()
1712 set_platform_defaults(my_data); in platform_init()
1727 my_data->hw_info = hw_info_init(snd_card_name); in platform_init()
1773 my_data->declared_mic_count = 0; in platform_init()
1775 platform_info_init(platform_info_file, my_data, in platform_init()
1785 hw_info_deinit(my_data->hw_info); in platform_init()
1786 my_data->hw_info = NULL; in platform_init()
1794 my_data->max_vol_index = atoi(value); in platform_init()
1801 my_data->source_mic_type = 0; in platform_init()
1803 my_data->fluence_in_spkr_mode = false; in platform_init()
1804 my_data->fluence_in_voice_call = false; in platform_init()
1805 my_data->fluence_in_voice_comm = false; in platform_init()
1806 my_data->fluence_in_voice_rec = false; in platform_init()
1810 my_data->fluence_type = FLUENCE_PRO_ENABLE; in platform_init()
1812 my_data->fluence_type = FLUENCE_ENABLE; in platform_init()
1814 my_data->fluence_type = FLUENCE_DISABLE; in platform_init()
1817 if (my_data->fluence_type != FLUENCE_DISABLE) { in platform_init()
1820 my_data->fluence_in_voice_call = true; in platform_init()
1825 my_data->fluence_in_voice_comm = true; in platform_init()
1830 my_data->fluence_in_voice_rec = true; in platform_init()
1835 my_data->fluence_in_spkr_mode = true; in platform_init()
1840 switch (my_data->max_mic_count) { in platform_init()
1842 my_data->source_mic_type |= SOURCE_QUAD_MIC; in platform_init()
1844 my_data->source_mic_type |= SOURCE_THREE_MIC; in platform_init()
1846 my_data->source_mic_type |= SOURCE_DUAL_MIC; in platform_init()
1848 my_data->source_mic_type |= SOURCE_MONO_MIC; in platform_init()
1852 __func__, my_data->max_mic_count); in platform_init()
1853 my_data->source_mic_type = SOURCE_MONO_MIC|SOURCE_DUAL_MIC; in platform_init()
1859 __func__, my_data->fluence_type, my_data->max_mic_count, my_data->source_mic_type, in platform_init()
1860 my_data->fluence_in_voice_call, my_data->fluence_in_voice_comm, in platform_init()
1861 my_data->fluence_in_voice_rec, my_data->fluence_in_spkr_mode); in platform_init()
1863 my_data->acdb_handle = dlopen(LIB_ACDB_LOADER, RTLD_NOW); in platform_init()
1864 if (my_data->acdb_handle == NULL) { in platform_init()
1868 my_data->acdb_deallocate = (acdb_deallocate_t)dlsym(my_data->acdb_handle, in platform_init()
1870 if (!my_data->acdb_deallocate) in platform_init()
1874 my_data->acdb_send_audio_cal_v3 = (acdb_send_audio_cal_v3_t)dlsym(my_data->acdb_handle, in platform_init()
1876 if (!my_data->acdb_send_audio_cal_v3) in platform_init()
1880 my_data->acdb_send_audio_cal = (acdb_send_audio_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1882 if (!my_data->acdb_send_audio_cal) in platform_init()
1886 my_data->acdb_send_voice_cal = (acdb_send_voice_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1888 if (!my_data->acdb_send_voice_cal) in platform_init()
1892 my_data->acdb_reload_vocvoltable = (acdb_reload_vocvoltable_t)dlsym(my_data->acdb_handle, in platform_init()
1894 if (!my_data->acdb_reload_vocvoltable) in platform_init()
1898 my_data->acdb_send_gain_dep_cal = (acdb_send_gain_dep_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1900 if (!my_data->acdb_send_gain_dep_cal) in platform_init()
1910 acdb_init_local = (acdb_init_v2_cvd_t)dlsym(my_data->acdb_handle, in platform_init()
1918 acdb_init_local = (acdb_init_v2_t)dlsym(my_data->acdb_handle, in platform_init()
1926 acdb_init_local = (acdb_init_t)dlsym(my_data->acdb_handle, in platform_init()
1932 my_data->acdb_init = acdb_init_local; in platform_init()
1934 my_data->acdb_send_custom_top = (acdb_send_custom_top_t) in platform_init()
1935 dlsym(my_data->acdb_handle, in platform_init()
1938 if (!my_data->acdb_send_custom_top) in platform_init()
1942 my_data->acdb_set_audio_cal = (acdb_set_audio_cal_t)dlsym(my_data->acdb_handle, in platform_init()
1944 if (!my_data->acdb_set_audio_cal) in platform_init()
1950 my_data->acdb_initialized = true; in platform_init()
1953 my_data->acdb_initialized = false; in platform_init()
1966 audio_extn_hwdep_cal_send(adev->snd_card, my_data->acdb_handle); in platform_init()
1969 platform_csd_init(my_data); in platform_init()
1971 platform_backend_config_init(my_data); in platform_init()
1976 platform_backend_app_type_cfg_init(my_data, adev->mixer); in platform_init()
1978 return my_data; in platform_init()
1981 if (my_data) in platform_init()
1982 free(my_data); in platform_init()
1995 struct platform_data *my_data = (struct platform_data *)platform; in platform_deinit() local
1996 close_csd_client(my_data->csd); in platform_deinit()
1998 audio_extn_spkr_prot_deinit(my_data->adev); in platform_deinit()
2000 hw_info_deinit(my_data->hw_info); in platform_deinit()
2031 if (my_data->snd_card_name) in platform_deinit()
2032 free(my_data->snd_card_name); in platform_deinit()
2051 mixer_close(my_data->adev->mixer); in platform_deinit()
2072 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_snd_device_name_extn() local
2085 hw_info_append_hw_type(my_data->hw_info, snd_device, device_name); in platform_get_snd_device_name_extn()
2097 struct platform_data *my_data = (struct platform_data *)platform; in platform_add_backend_name() local
2378 struct platform_data *my_data = (struct platform_data *)platform; in platform_send_audio_calibration() local
2390 if (my_data->acdb_send_audio_cal) { in platform_send_audio_calibration()
2398 my_data->acdb_send_audio_cal(acdb_dev_id, acdb_dev_type); in platform_send_audio_calibration()
2406 struct platform_data *my_data = (struct platform_data *)platform; in platform_send_audio_calibration_v2() local
2446 if (my_data->acdb_send_audio_cal_v3) { in platform_send_audio_calibration_v2()
2447 my_data->acdb_send_audio_cal_v3(acdb_dev_id, acdb_dev_type, in platform_send_audio_calibration_v2()
2449 } else if (my_data->acdb_send_audio_cal) { in platform_send_audio_calibration_v2()
2450my_data->acdb_send_audio_cal(acdb_dev_id, acdb_dev_type); // this version differs from internal in platform_send_audio_calibration_v2()
2460 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_device_pre() local
2463 if (my_data->csd != NULL && in platform_switch_voice_call_device_pre()
2464 voice_is_in_call(my_data->adev)) { in platform_switch_voice_call_device_pre()
2466 ret = my_data->csd->disable_device(); in platform_switch_voice_call_device_pre()
2479 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_enable_device_config() local
2483 if (my_data->csd == NULL) in platform_switch_voice_call_enable_device_config()
2490 ret = my_data->csd->enable_device_config(acdb_rx_id, acdb_tx_id); in platform_switch_voice_call_enable_device_config()
2507 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_device_post() local
2510 if (my_data->acdb_send_voice_cal == NULL) { in platform_switch_voice_call_device_post()
2517 my_data->acdb_send_voice_cal(acdb_rx_id, acdb_tx_id); in platform_switch_voice_call_device_post()
2530 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_usecase_route_post() local
2534 if (my_data->csd == NULL) in platform_switch_voice_call_usecase_route_post()
2541 ret = my_data->csd->enable_device(acdb_rx_id, acdb_tx_id, in platform_switch_voice_call_usecase_route_post()
2542 my_data->adev->acdb_settings); in platform_switch_voice_call_usecase_route_post()
2556 struct platform_data *my_data = (struct platform_data *)platform; in platform_start_voice_call() local
2559 if (my_data->csd != NULL) { in platform_start_voice_call()
2560 ret = my_data->csd->start_voice(vsid); in platform_start_voice_call()
2570 struct platform_data *my_data = (struct platform_data *)platform; in platform_stop_voice_call() local
2573 if (my_data->csd != NULL) { in platform_stop_voice_call()
2574 ret = my_data->csd->stop_voice(vsid); in platform_stop_voice_call()
2585 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_mic_break_det() local
2586 struct audio_device *adev = my_data->adev; in platform_set_mic_break_det()
2604 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_sample_rate() local
2607 if (my_data->csd != NULL) { in platform_get_sample_rate()
2608 ret = my_data->csd->get_sample_rate(rate); in platform_get_sample_rate()
2655 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_voice_volume() local
2656 struct audio_device *adev = my_data->adev; in platform_set_voice_volume()
2668 vol_index = (int)percent_to_index(volume, MIN_VOL_INDEX, my_data->max_vol_index); in platform_set_voice_volume()
2682 if (vol_index == my_data->max_vol_index) { in platform_set_voice_volume()
2698 if (my_data->csd != NULL) { in platform_set_voice_volume()
2699 ret = my_data->csd->volume(ALL_SESSION_VSID, volume, in platform_set_voice_volume()
2710 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_mic_mute() local
2711 struct audio_device *adev = my_data->adev; in platform_set_mic_mute()
2736 if (my_data->csd != NULL) { in platform_set_mic_mute()
2737 ret = my_data->csd->mic_mute(ALL_SESSION_VSID, state, in platform_set_mic_mute()
2748 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_device_mute() local
2749 struct audio_device *adev = my_data->adev; in platform_set_device_mute()
2883 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_output_snd_device() local
2884 struct audio_device *adev = my_data->adev; in platform_get_output_snd_device()
3045 if (my_data->speaker_lr_swap && in platform_get_output_snd_device()
3083 static snd_device_t get_snd_device_for_voice_comm(struct platform_data *my_data, in get_snd_device_for_voice_comm() argument
3088 struct audio_device *adev = my_data->adev; in get_snd_device_for_voice_comm()
3091 if (my_data->fluence_type != FLUENCE_DISABLE) { in get_snd_device_for_voice_comm()
3094 if (my_data->fluence_in_spkr_mode) { in get_snd_device_for_voice_comm()
3095 if ((my_data->fluence_type & FLUENCE_PRO_ENABLE) && in get_snd_device_for_voice_comm()
3096 (my_data->source_mic_type & SOURCE_QUAD_MIC)) { in get_snd_device_for_voice_comm()
3098 } else if (((my_data->fluence_type & FLUENCE_PRO_ENABLE) || in get_snd_device_for_voice_comm()
3099 (my_data->fluence_type & FLUENCE_ENABLE)) && in get_snd_device_for_voice_comm()
3100 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3108 if (((my_data->fluence_type & FLUENCE_PRO_ENABLE) || in get_snd_device_for_voice_comm()
3109 (my_data->fluence_type & FLUENCE_ENABLE)) && in get_snd_device_for_voice_comm()
3110 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3126 static snd_device_t get_snd_device_for_voice_comm(struct platform_data *my_data, in get_snd_device_for_voice_comm() argument
3131 struct audio_device *adev = my_data->adev; in get_snd_device_for_voice_comm()
3137 if (my_data->fluence_in_spkr_mode && in get_snd_device_for_voice_comm()
3138 my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3139 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3145 if (my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3146 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3158 if (my_data->fluence_in_spkr_mode && in get_snd_device_for_voice_comm()
3159 my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3160 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3166 if (my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3167 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3179 if (my_data->fluence_in_spkr_mode && in get_snd_device_for_voice_comm()
3180 my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3181 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3187 if (my_data->fluence_in_voice_comm && in get_snd_device_for_voice_comm()
3188 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in get_snd_device_for_voice_comm()
3204 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_input_snd_device() local
3205 struct audio_device *adev = my_data->adev; in platform_get_input_snd_device()
3261 if (my_data->fluence_in_voice_call == false) { in platform_get_input_snd_device()
3287 if (my_data->fluence_in_voice_call && my_data->fluence_in_spkr_mode) { in platform_get_input_snd_device()
3288 if (my_data->source_mic_type & SOURCE_DUAL_MIC) { in platform_get_input_snd_device()
3309 } else if (my_data->fluence_in_voice_call && my_data->fluence_in_spkr_mode) { in platform_get_input_snd_device()
3310 if (my_data->source_mic_type & SOURCE_DUAL_MIC) { in platform_get_input_snd_device()
3349 if (my_data->fluence_in_voice_rec && channel_count == 1) { in platform_get_input_snd_device()
3350 if ((my_data->fluence_type == FLUENCE_PRO_ENABLE) && in platform_get_input_snd_device()
3351 (my_data->source_mic_type & SOURCE_QUAD_MIC)) { in platform_get_input_snd_device()
3356 } else if ((my_data->fluence_type == FLUENCE_PRO_ENABLE) && in platform_get_input_snd_device()
3357 (my_data->source_mic_type & SOURCE_THREE_MIC)) { in platform_get_input_snd_device()
3362 } else if (((my_data->fluence_type == FLUENCE_PRO_ENABLE) || in platform_get_input_snd_device()
3363 (my_data->fluence_type == FLUENCE_ENABLE)) && in platform_get_input_snd_device()
3364 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in platform_get_input_snd_device()
3372 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in platform_get_input_snd_device()
3375 (my_data->source_mic_type & SOURCE_THREE_MIC)) { in platform_get_input_snd_device()
3378 (my_data->source_mic_type & SOURCE_QUAD_MIC)) { in platform_get_input_snd_device()
3403 (my_data->source_mic_type & SOURCE_DUAL_MIC)) { in platform_get_input_snd_device()
3406 (my_data->source_mic_type & SOURCE_THREE_MIC)) { in platform_get_input_snd_device()
3409 (my_data->source_mic_type & SOURCE_QUAD_MIC)) { in platform_get_input_snd_device()
3429 snd_device = get_snd_device_for_voice_comm(my_data, in, out_device, in_device); in platform_get_input_snd_device()
3444 if ((my_data->source_mic_type & SOURCE_QUAD_MIC) && in platform_get_input_snd_device()
3447 } else if ((my_data->source_mic_type & SOURCE_THREE_MIC) && in platform_get_input_snd_device()
3450 } else if ((my_data->source_mic_type & SOURCE_DUAL_MIC) && in platform_get_input_snd_device()
3453 } else if ((my_data->source_mic_type & SOURCE_MONO_MIC) && in platform_get_input_snd_device()
3459 my_data->source_mic_type, channel_count, channel_mask); in platform_get_input_snd_device()
3463 if ((my_data->source_mic_type & SOURCE_DUAL_MIC) && in platform_get_input_snd_device()
3466 } else if ((my_data->source_mic_type & SOURCE_MONO_MIC) && in platform_get_input_snd_device()
3472 my_data->source_mic_type, channel_count); in platform_get_input_snd_device()
3507 if ((my_data->source_mic_type & SOURCE_DUAL_MIC) && in platform_get_input_snd_device()
3510 } else if ((my_data->source_mic_type & SOURCE_MONO_MIC) && in platform_get_input_snd_device()
3516 my_data->source_mic_type, channel_count); in platform_get_input_snd_device()
3551 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_hdmi_channels() local
3552 struct audio_device *adev = my_data->adev; in platform_set_hdmi_channels()
3585 struct platform_data *my_data = (struct platform_data *)platform; in platform_edid_get_max_channels() local
3586 struct audio_device *adev = my_data->adev; in platform_edid_get_max_channels()
3642 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_incall_recording_session_id() local
3643 struct audio_device *adev = my_data->adev; in platform_set_incall_recording_session_id()
3665 if (my_data->csd != NULL) { in platform_set_incall_recording_session_id()
3666 ret = my_data->csd->start_record(ALL_SESSION_VSID, rec_mode); in platform_set_incall_recording_session_id()
3680 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_incall_recording_session_channels() local
3681 struct audio_device *adev = my_data->adev; in platform_set_incall_recording_session_channels()
3708 struct platform_data *my_data = (struct platform_data *)platform; in platform_stop_incall_recording_usecase() local
3710 if (my_data->csd != NULL) { in platform_stop_incall_recording_usecase()
3711 ret = my_data->csd->stop_record(ALL_SESSION_VSID); in platform_stop_incall_recording_usecase()
3724 struct platform_data *my_data = (struct platform_data *)platform; in platform_start_incall_music_usecase() local
3726 if (my_data->csd != NULL) { in platform_start_incall_music_usecase()
3727 ret = my_data->csd->start_playback(ALL_SESSION_VSID); in platform_start_incall_music_usecase()
3740 struct platform_data *my_data = (struct platform_data *)platform; in platform_stop_incall_music_usecase() local
3742 if (my_data->csd != NULL) { in platform_stop_incall_music_usecase()
3743 ret = my_data->csd->stop_playback(ALL_SESSION_VSID); in platform_stop_incall_music_usecase()
3755 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_parameters() local
3781 my_data->snd_card_name = strdup(value); in platform_set_parameters()
3782 ALOGV("%s: sound card name %s", __func__, my_data->snd_card_name); in platform_set_parameters()
3807 my_data->max_mic_count = atoi(value); in platform_set_parameters()
3808 ALOGV("%s: max_mic_count %s/%d", __func__, value, my_data->max_mic_count); in platform_set_parameters()
3961 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_swap_mixer() local
3964 if (swap_channels && !my_data->speaker_lr_swap) in platform_set_swap_mixer()
3999 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_check_and_set_swap_lr_channels() local
4001 my_data->speaker_lr_swap = swap_channels; in platform_check_and_set_swap_lr_channels()
4011 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_swap_channels() local
4098 struct platform_data *my_data = (struct platform_data *)platform; in platform_snd_card_update() local
4099 struct audio_device *adev = my_data->adev; in platform_snd_card_update()
4102 if (my_data->acdb_send_custom_top) in platform_snd_card_update()
4103 my_data->acdb_send_custom_top(); in platform_snd_card_update()
4118 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_backend_cfg() local
4131 if ((my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl) && in platform_set_backend_cfg()
4132 (bit_width != my_data->current_backend_cfg[backend_idx].bit_width)) { in platform_set_backend_cfg()
4136 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl); in platform_set_backend_cfg()
4140 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl); in platform_set_backend_cfg()
4156 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl, bit_width, format); in platform_set_backend_cfg()
4158 my_data->current_backend_cfg[backend_idx].bit_width = bit_width; in platform_set_backend_cfg()
4160 my_data->current_backend_cfg[backend_idx].bitwidth_mixer_ctl, bit_width, format); in platform_set_backend_cfg()
4166 if (passthrough_enabled || ((my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl) && in platform_set_backend_cfg()
4167 … (sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate))) { in platform_set_backend_cfg()
4217 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl); in platform_set_backend_cfg()
4221 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl); in platform_set_backend_cfg()
4226 my_data->current_backend_cfg[backend_idx].samplerate_mixer_ctl, rate_str); in platform_set_backend_cfg()
4228 my_data->current_backend_cfg[backend_idx].sample_rate = sample_rate; in platform_set_backend_cfg()
4230 if ((my_data->current_backend_cfg[backend_idx].channels_mixer_ctl) && in platform_set_backend_cfg()
4231 (channels != my_data->current_backend_cfg[backend_idx].channels)) { in platform_set_backend_cfg()
4256 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl); in platform_set_backend_cfg()
4260 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl); in platform_set_backend_cfg()
4264 my_data->current_backend_cfg[backend_idx].channels = channels; in platform_set_backend_cfg()
4269 my_data->current_backend_cfg[backend_idx].channels_mixer_ctl, in platform_set_backend_cfg()
4324 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_check_capture_backend_cfg() local
4355 if ((bit_width != my_data->current_backend_cfg[backend_idx].bit_width) || in platform_check_capture_backend_cfg()
4356 (sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate) || in platform_check_capture_backend_cfg()
4357 (channels != my_data->current_backend_cfg[backend_idx].channels)) { in platform_check_capture_backend_cfg()
4439 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_check_playback_backend_cfg() local
4518 if (bit_width != my_data->current_backend_cfg[backend_idx].bit_width || in platform_check_playback_backend_cfg()
4519 sample_rate != my_data->current_backend_cfg[backend_idx].sample_rate || in platform_check_playback_backend_cfg()
4520 channels != my_data->current_backend_cfg[backend_idx].channels) { in platform_check_playback_backend_cfg()
4541 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_check_and_set_playback_backend_cfg() local
4756 struct platform_data* my_data = (struct platform_data *)platform; in platform_check_and_update_copp_sample_rate() local
4758 int device_sr = my_data->current_backend_cfg[backend_idx].sample_rate; in platform_check_and_update_copp_sample_rate()
4886 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_mmap_data_fd() local
4887 struct audio_device *adev = my_data->adev; in platform_get_mmap_data_fd()
4962 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_microphone_characteristic() local
4963 if (my_data->declared_mic_count >= AUDIO_MICROPHONE_MAX_COUNT) { in platform_set_microphone_characteristic()
4970 my_data->microphones[my_data->declared_mic_count++] = mic; in platform_set_microphone_characteristic()
4977 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_microphones() local
4986 *mic_count = my_data->declared_mic_count; in platform_get_microphones()
4992 for (size_t i = 0; i < max_mic_count && i < my_data->declared_mic_count; i++) { in platform_get_microphones()
4993 mic_array[i] = my_data->microphones[i]; in platform_get_microphones()
5002 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_microphone_map() local
5007 size_t m_count = my_data->mic_map[in_snd_device].mic_count++; in platform_set_microphone_map()
5010 my_data->mic_map[in_snd_device].mic_count--; in platform_set_microphone_map()
5013 my_data->mic_map[in_snd_device].microphones[m_count] = *info; in platform_set_microphone_map()
5021 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_active_microphones() local
5022 struct audio_usecase *usecase = get_usecase_from_list(my_data->adev, uc_id); in platform_get_active_microphones()
5026 size_t max_mic_count = my_data->declared_mic_count; in platform_get_active_microphones()
5036 size_t active_mic_count = my_data->mic_map[active_input_snd_device].mic_count; in platform_get_active_microphones()
5037 struct mic_info *m_info = my_data->mic_map[active_input_snd_device].microphones; in platform_get_active_microphones()
5045 if (strcmp(my_data->microphones[j].device_id, in platform_get_active_microphones()
5047 mic_array[actual_mic_count] = my_data->microphones[j]; in platform_get_active_microphones()