static const btav_interface_t *blued_a2dp_interface = NULL;
static btav_callbacks_t blued_a2dp_cb = {
- sizeof(blued_a2dp_cb),
- cb_audio_connection_state,
- cb_audio_state,
- NULL /* Audio Config Callback */
+ .size = sizeof(blued_a2dp_cb),
+ .connection_state_cb = cb_audio_connection_state,
+ .audio_state_cb = cb_audio_state,
+ .audio_config_cb = NULL
};
oal_status_t audio_enable(char *service_name , char *provider_name)
bt_status_t status;
bdstr_t bdstr;
- API_TRACE();
+ API_TRACE("Audio connect");
CHECK_OAL_AUDIO_ENABLED();
OAL_CHECK_PARAMETER(device_address, return);
- BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr));
+ BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
/* Call connect function of Bluedroid*/
status = blued_a2dp_interface->connect((bt_bdaddr_t *)device_address);
bdstr_t bdstr;
bt_status_t status;
- API_TRACE();
+ API_TRACE("Audio disconnect");
CHECK_OAL_AUDIO_ENABLED();
OAL_CHECK_PARAMETER(device_address, return);
- BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr));
+ BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
/* call Disconnect function of Bluedroid */
status = blued_a2dp_interface->disconnect((bt_bdaddr_t *)device_address);
oal_event_t event;
ret_if(bd_addr == NULL);
- BT_INFO("state = %d, BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr));
+ BT_INFO("state = %d, BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr) + 12);
event_data = g_new0(bt_address_t, 1);
memcpy(event_data->addr, bd_addr->address, BT_ADDRESS_BYTES_NUM);
bdstr_t bdstr;
ret_if(bd_addr == NULL);
- BT_INFO("A2DP state = %d, BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr));
+ BT_INFO("A2DP state = %d, BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr) + 12);
if (state == BTAV_AUDIO_STATE_REMOTE_SUSPEND) {
BT_INFO("Audio Streaming Suspended");