Lines Matching refs:csd
176 struct csd_data *csd; member
1135 struct csd_data *csd = calloc(1, sizeof(struct csd_data)); in open_csd_client() local
1137 csd->csd_client = dlopen(LIB_CSD_CLIENT, RTLD_NOW); in open_csd_client()
1138 if (csd->csd_client == NULL) { in open_csd_client()
1144 csd->deinit = (deinit_t)dlsym(csd->csd_client, in open_csd_client()
1146 if (csd->deinit == NULL) { in open_csd_client()
1151 csd->disable_device = (disable_device_t)dlsym(csd->csd_client, in open_csd_client()
1153 if (csd->disable_device == NULL) { in open_csd_client()
1158 csd->enable_device_config = (enable_device_config_t)dlsym(csd->csd_client, in open_csd_client()
1160 if (csd->enable_device_config == NULL) { in open_csd_client()
1165 csd->enable_device = (enable_device_t)dlsym(csd->csd_client, in open_csd_client()
1167 if (csd->enable_device == NULL) { in open_csd_client()
1172 csd->start_voice = (start_voice_t)dlsym(csd->csd_client, in open_csd_client()
1174 if (csd->start_voice == NULL) { in open_csd_client()
1179 csd->stop_voice = (stop_voice_t)dlsym(csd->csd_client, in open_csd_client()
1181 if (csd->stop_voice == NULL) { in open_csd_client()
1186 csd->volume = (volume_t)dlsym(csd->csd_client, in open_csd_client()
1188 if (csd->volume == NULL) { in open_csd_client()
1193 csd->mic_mute = (mic_mute_t)dlsym(csd->csd_client, in open_csd_client()
1195 if (csd->mic_mute == NULL) { in open_csd_client()
1200 csd->slow_talk = (slow_talk_t)dlsym(csd->csd_client, in open_csd_client()
1202 if (csd->slow_talk == NULL) { in open_csd_client()
1207 csd->start_playback = (start_playback_t)dlsym(csd->csd_client, in open_csd_client()
1209 if (csd->start_playback == NULL) { in open_csd_client()
1214 csd->stop_playback = (stop_playback_t)dlsym(csd->csd_client, in open_csd_client()
1216 if (csd->stop_playback == NULL) { in open_csd_client()
1221 csd->start_record = (start_record_t)dlsym(csd->csd_client, in open_csd_client()
1223 if (csd->start_record == NULL) { in open_csd_client()
1228 csd->stop_record = (stop_record_t)dlsym(csd->csd_client, in open_csd_client()
1230 if (csd->stop_record == NULL) { in open_csd_client()
1236 csd->get_sample_rate = (get_sample_rate_t)dlsym(csd->csd_client, in open_csd_client()
1238 if (csd->get_sample_rate == NULL) { in open_csd_client()
1245 csd->init = (init_t)dlsym(csd->csd_client, "csd_client_init"); in open_csd_client()
1247 if (csd->init == NULL) { in open_csd_client()
1252 csd->init(i2s_ext_modem); in open_csd_client()
1255 return csd; in open_csd_client()
1258 free(csd); in open_csd_client()
1259 csd = NULL; in open_csd_client()
1260 return csd; in open_csd_client()
1263 void close_csd_client(struct csd_data *csd) in close_csd_client() argument
1265 if (csd != NULL) { in close_csd_client()
1266 csd->deinit(); in close_csd_client()
1267 dlclose(csd->csd_client); in close_csd_client()
1268 free(csd); in close_csd_client()
1269 csd = NULL; in close_csd_client()
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()
1998 close_csd_client(my_data->csd); in platform_deinit()
2465 if (my_data->csd != NULL && in platform_switch_voice_call_device_pre()
2468 ret = my_data->csd->disable_device(); in platform_switch_voice_call_device_pre()
2485 if (my_data->csd == NULL) in platform_switch_voice_call_enable_device_config()
2492 ret = my_data->csd->enable_device_config(acdb_rx_id, acdb_tx_id); in platform_switch_voice_call_enable_device_config()
2536 if (my_data->csd == NULL) in platform_switch_voice_call_usecase_route_post()
2543 ret = my_data->csd->enable_device(acdb_rx_id, acdb_tx_id, in platform_switch_voice_call_usecase_route_post()
2561 if (my_data->csd != NULL) { in platform_start_voice_call()
2562 ret = my_data->csd->start_voice(vsid); in platform_start_voice_call()
2575 if (my_data->csd != NULL) { in platform_stop_voice_call()
2576 ret = my_data->csd->stop_voice(vsid); in platform_stop_voice_call()
2609 if (my_data->csd != NULL) { in platform_get_sample_rate()
2610 ret = my_data->csd->get_sample_rate(rate); in platform_get_sample_rate()
2700 if (my_data->csd != NULL) { in platform_set_voice_volume()
2701 ret = my_data->csd->volume(ALL_SESSION_VSID, volume, in platform_set_voice_volume()
2738 if (my_data->csd != NULL) { in platform_set_mic_mute()
2739 ret = my_data->csd->mic_mute(ALL_SESSION_VSID, state, in platform_set_mic_mute()
3667 if (my_data->csd != NULL) { in platform_set_incall_recording_session_id()
3668 ret = my_data->csd->start_record(ALL_SESSION_VSID, rec_mode); in platform_set_incall_recording_session_id()
3712 if (my_data->csd != NULL) { in platform_stop_incall_recording_usecase()
3713 ret = my_data->csd->stop_record(ALL_SESSION_VSID); in platform_stop_incall_recording_usecase()
3728 if (my_data->csd != NULL) { in platform_start_incall_music_usecase()
3729 ret = my_data->csd->start_playback(ALL_SESSION_VSID); in platform_start_incall_music_usecase()
3744 if (my_data->csd != NULL) { in platform_stop_incall_music_usecase()
3745 ret = my_data->csd->stop_playback(ALL_SESSION_VSID); in platform_stop_incall_music_usecase()