Lines Matching refs:my_data

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()
329 my_data->fluence_in_voice_call = true; in platform_init()
334 my_data->fluence_in_voice_rec = true; in platform_init()
339 my_data->fluence_in_spkr_mode = true; in platform_init()
343 my_data->acdb_handle = dlopen(LIB_ACDB_LOADER, RTLD_NOW); in platform_init()
344 if (my_data->acdb_handle == NULL) { in platform_init()
348 my_data->acdb_deallocate = (acdb_deallocate_t)dlsym(my_data->acdb_handle, in platform_init()
350 my_data->acdb_send_audio_cal = (acdb_send_audio_cal_t)dlsym(my_data->acdb_handle, in platform_init()
352 if (!my_data->acdb_send_audio_cal) in platform_init()
355 my_data->acdb_send_voice_cal = (acdb_send_voice_cal_t)dlsym(my_data->acdb_handle, in platform_init()
357 my_data->acdb_init = (acdb_init_t)dlsym(my_data->acdb_handle, in platform_init()
359 if (my_data->acdb_init == NULL) in platform_init()
362 my_data->acdb_init(); in platform_init()
372 my_data->csd_client = dlopen(LIB_CSD_CLIENT, RTLD_NOW); in platform_init()
373 if (my_data->csd_client == NULL) in platform_init()
377 if (my_data->csd_client) { in platform_init()
379 my_data->csd_client_deinit = (csd_client_deinit_t)dlsym(my_data->csd_client, in platform_init()
381 my_data->csd_disable_device = (csd_disable_device_t)dlsym(my_data->csd_client, in platform_init()
383 my_data->csd_enable_device = (csd_enable_device_t)dlsym(my_data->csd_client, in platform_init()
385 my_data->csd_start_voice = (csd_start_voice_t)dlsym(my_data->csd_client, in platform_init()
387 my_data->csd_stop_voice = (csd_stop_voice_t)dlsym(my_data->csd_client, in platform_init()
389 my_data->csd_volume = (csd_volume_t)dlsym(my_data->csd_client, in platform_init()
391 my_data->csd_mic_mute = (csd_mic_mute_t)dlsym(my_data->csd_client, in platform_init()
393 my_data->csd_client_init = (csd_client_init_t)dlsym(my_data->csd_client, in platform_init()
396 if (my_data->csd_client_init == NULL) { in platform_init()
399 my_data->csd_client_init(); in platform_init()
403 return my_data; in platform_init()
490 struct platform_data *my_data = (struct platform_data *)platform; in platform_send_audio_calibration() local
499 if (my_data->acdb_send_audio_cal) { in platform_send_audio_calibration()
507 my_data->acdb_send_audio_cal(acdb_dev_id, acdb_dev_type); in platform_send_audio_calibration()
514 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_device_pre() local
517 if (my_data->csd_client != NULL && in platform_switch_voice_call_device_pre()
518 voice_is_in_call(my_data->adev)) { in platform_switch_voice_call_device_pre()
520 if (my_data->csd_disable_device == NULL) { in platform_switch_voice_call_device_pre()
523 ret = my_data->csd_disable_device(); in platform_switch_voice_call_device_pre()
537 struct platform_data *my_data = (struct platform_data *)platform; in platform_switch_voice_call_device_post() local
541 if (my_data->csd_client) { in platform_switch_voice_call_device_post()
542 if (my_data->csd_enable_device == NULL) { in platform_switch_voice_call_device_post()
550 ret = my_data->csd_enable_device(acdb_rx_id, acdb_tx_id, in platform_switch_voice_call_device_post()
551 my_data->adev->acdb_settings); in platform_switch_voice_call_device_post()
568 struct platform_data *my_data = (struct platform_data *)platform; in platform_start_voice_call() local
571 if (my_data->csd_client) { in platform_start_voice_call()
572 if (my_data->csd_start_voice == NULL) { in platform_start_voice_call()
576 ret = my_data->csd_start_voice(); in platform_start_voice_call()
588 struct platform_data *my_data = (struct platform_data *)platform; in platform_stop_voice_call() local
591 if (my_data->csd_client) { in platform_stop_voice_call()
592 if (my_data->csd_stop_voice == NULL) { in platform_stop_voice_call()
595 ret = my_data->csd_stop_voice(); in platform_stop_voice_call()
612 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_voice_volume() local
615 if (my_data->csd_client) { in platform_set_voice_volume()
616 if (my_data->csd_volume == NULL) { in platform_set_voice_volume()
619 ret = my_data->csd_volume(volume); in platform_set_voice_volume()
633 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_mic_mute() local
636 if (my_data->adev->mode == AUDIO_MODE_IN_CALL) { in platform_set_mic_mute()
637 if (my_data->csd_client) { in platform_set_mic_mute()
638 if (my_data->csd_mic_mute == NULL) { in platform_set_mic_mute()
641 ret = my_data->csd_mic_mute(state); in platform_set_mic_mute()
662 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_output_snd_device() local
663 struct audio_device *adev = my_data->adev; in platform_get_output_snd_device()
738 if (my_data->speaker_lr_swap && in platform_get_output_snd_device()
766 struct platform_data *my_data = (struct platform_data *)platform; in platform_get_input_snd_device() local
767 struct audio_device *adev = my_data->adev; in platform_get_input_snd_device()
804 if (my_data->fluence_in_voice_call == false) { in platform_get_input_snd_device()
807 if (my_data->dualmic_config == DUALMIC_CONFIG_ENDFIRE) { in platform_get_input_snd_device()
812 } else if(my_data->dualmic_config == DUALMIC_CONFIG_BROADSIDE) in platform_get_input_snd_device()
826 if (my_data->fluence_in_voice_call && my_data->fluence_in_spkr_mode && in platform_get_input_snd_device()
827 my_data->dualmic_config == DUALMIC_CONFIG_ENDFIRE) { in platform_get_input_snd_device()
829 } else if (my_data->fluence_in_voice_call && my_data->fluence_in_spkr_mode && in platform_get_input_snd_device()
830 my_data->dualmic_config == DUALMIC_CONFIG_BROADSIDE) { in platform_get_input_snd_device()
843 if (my_data->dualmic_config == DUALMIC_CONFIG_ENDFIRE) { in platform_get_input_snd_device()
846 else if (my_data->fluence_in_voice_rec) in platform_get_input_snd_device()
848 } else if (my_data->dualmic_config == DUALMIC_CONFIG_BROADSIDE) { in platform_get_input_snd_device()
851 else if (my_data->fluence_in_voice_rec) in platform_get_input_snd_device()
937 struct platform_data *my_data = (struct platform_data *)platform; in platform_set_hdmi_channels() local
938 struct audio_device *adev = my_data->adev; in platform_set_hdmi_channels()
1243 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_swap_mixer() local
1246 if (swap_channels && !my_data->speaker_lr_swap) in platform_set_swap_mixer()
1281 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_check_and_set_swap_lr_channels() local
1283 my_data->speaker_lr_swap = swap_channels; in platform_check_and_set_swap_lr_channels()
1293 struct platform_data *my_data = (struct platform_data *)adev->platform; in platform_set_swap_channels() local