Lines Matching refs:csd
177 struct csd_data *csd; member
1154 struct csd_data *csd = calloc(1, sizeof(struct csd_data)); in open_csd_client() local
1156 csd->csd_client = dlopen(LIB_CSD_CLIENT, RTLD_NOW); in open_csd_client()
1157 if (csd->csd_client == NULL) { in open_csd_client()
1163 csd->deinit = (deinit_t)dlsym(csd->csd_client, in open_csd_client()
1165 if (csd->deinit == NULL) { in open_csd_client()
1170 csd->disable_device = (disable_device_t)dlsym(csd->csd_client, in open_csd_client()
1172 if (csd->disable_device == NULL) { in open_csd_client()
1177 csd->enable_device_config = (enable_device_config_t)dlsym(csd->csd_client, in open_csd_client()
1179 if (csd->enable_device_config == NULL) { in open_csd_client()
1184 csd->enable_device = (enable_device_t)dlsym(csd->csd_client, in open_csd_client()
1186 if (csd->enable_device == NULL) { in open_csd_client()
1191 csd->start_voice = (start_voice_t)dlsym(csd->csd_client, in open_csd_client()
1193 if (csd->start_voice == NULL) { in open_csd_client()
1198 csd->stop_voice = (stop_voice_t)dlsym(csd->csd_client, in open_csd_client()
1200 if (csd->stop_voice == NULL) { in open_csd_client()
1205 csd->volume = (volume_t)dlsym(csd->csd_client, in open_csd_client()
1207 if (csd->volume == NULL) { in open_csd_client()
1212 csd->mic_mute = (mic_mute_t)dlsym(csd->csd_client, in open_csd_client()
1214 if (csd->mic_mute == NULL) { in open_csd_client()
1219 csd->slow_talk = (slow_talk_t)dlsym(csd->csd_client, in open_csd_client()
1221 if (csd->slow_talk == NULL) { in open_csd_client()
1226 csd->start_playback = (start_playback_t)dlsym(csd->csd_client, in open_csd_client()
1228 if (csd->start_playback == NULL) { in open_csd_client()
1233 csd->stop_playback = (stop_playback_t)dlsym(csd->csd_client, in open_csd_client()
1235 if (csd->stop_playback == NULL) { in open_csd_client()
1240 csd->start_record = (start_record_t)dlsym(csd->csd_client, in open_csd_client()
1242 if (csd->start_record == NULL) { in open_csd_client()
1247 csd->stop_record = (stop_record_t)dlsym(csd->csd_client, in open_csd_client()
1249 if (csd->stop_record == NULL) { in open_csd_client()
1255 csd->get_sample_rate = (get_sample_rate_t)dlsym(csd->csd_client, in open_csd_client()
1257 if (csd->get_sample_rate == NULL) { in open_csd_client()
1264 csd->init = (init_t)dlsym(csd->csd_client, "csd_client_init"); in open_csd_client()
1266 if (csd->init == NULL) { in open_csd_client()
1271 csd->init(i2s_ext_modem); in open_csd_client()
1274 return csd; in open_csd_client()
1277 free(csd); in open_csd_client()
1278 csd = NULL; in open_csd_client()
1279 return csd; in open_csd_client()
1282 void close_csd_client(struct csd_data *csd) in close_csd_client() argument
1284 if (csd != NULL) { in close_csd_client()
1285 csd->deinit(); in close_csd_client()
1286 dlclose(csd->csd_client); in close_csd_client()
1287 free(csd); in close_csd_client()
1288 csd = NULL; in close_csd_client()
1300 my_data->csd = NULL; in platform_csd_init()
1326 my_data->csd = open_csd_client(false /*is_i2s_ext_modem*/); in platform_csd_init()
1331 my_data->csd = NULL; in platform_csd_init()
2017 close_csd_client(my_data->csd); in platform_deinit()
2489 if (my_data->csd != NULL && in platform_switch_voice_call_device_pre()
2492 ret = my_data->csd->disable_device(); in platform_switch_voice_call_device_pre()
2509 if (my_data->csd == NULL) in platform_switch_voice_call_enable_device_config()
2516 ret = my_data->csd->enable_device_config(acdb_rx_id, acdb_tx_id); in platform_switch_voice_call_enable_device_config()
2560 if (my_data->csd == NULL) in platform_switch_voice_call_usecase_route_post()
2567 ret = my_data->csd->enable_device(acdb_rx_id, acdb_tx_id, in platform_switch_voice_call_usecase_route_post()
2585 if (my_data->csd != NULL) { in platform_start_voice_call()
2586 ret = my_data->csd->start_voice(vsid); in platform_start_voice_call()
2599 if (my_data->csd != NULL) { in platform_stop_voice_call()
2600 ret = my_data->csd->stop_voice(vsid); in platform_stop_voice_call()
2633 if (my_data->csd != NULL) { in platform_get_sample_rate()
2634 ret = my_data->csd->get_sample_rate(rate); in platform_get_sample_rate()
2724 if (my_data->csd != NULL) { in platform_set_voice_volume()
2725 ret = my_data->csd->volume(ALL_SESSION_VSID, volume, in platform_set_voice_volume()
2762 if (my_data->csd != NULL) { in platform_set_mic_mute()
2763 ret = my_data->csd->mic_mute(ALL_SESSION_VSID, state, in platform_set_mic_mute()
3694 if (my_data->csd != NULL) { in platform_set_incall_recording_session_id()
3695 ret = my_data->csd->start_record(ALL_SESSION_VSID, rec_mode); in platform_set_incall_recording_session_id()
3739 if (my_data->csd != NULL) { in platform_stop_incall_recording_usecase()
3740 ret = my_data->csd->stop_record(ALL_SESSION_VSID); in platform_stop_incall_recording_usecase()
3755 if (my_data->csd != NULL) { in platform_start_incall_music_usecase()
3756 ret = my_data->csd->start_playback(ALL_SESSION_VSID); in platform_start_incall_music_usecase()
3771 if (my_data->csd != NULL) { in platform_stop_incall_music_usecase()
3772 ret = my_data->csd->stop_playback(ALL_SESSION_VSID); in platform_stop_incall_music_usecase()