Bluetooth: Add Reconfigure A2dp notification callback
-Add reconfigure a2dp notification callback when soft handoff
is triggered in BT stack to notify audio manager that BT stack
has initiated soft handoff.
-Add offload capability parameter in init to configure split
a2dp
Change-Id: Id102052481a43c39ef0e3d4b6015acac94073df2
diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h
index 6a74393..5b72eb1 100644
--- a/include/hardware/bt_av.h
+++ b/include/hardware/bt_av.h
@@ -70,6 +70,10 @@
typedef void (* btav_is_multicast_enabled_callback)(int state);
+/** Callback to notify reconfig a2dp when A2dp Soft Handoff is triggered
+*/
+typedef void(* btav_reconfig_a2dp_trigger_callback)(int reason, bt_bdaddr_t *bd_addr);
+
/** BT-AV callback structure. */
typedef struct {
/** set to sizeof(btav_callbacks_t) */
@@ -79,6 +83,7 @@
btav_audio_config_callback audio_config_cb;
btav_connection_priority_callback connection_priority_cb;
btav_is_multicast_enabled_callback multicast_state_cb;
+ btav_reconfig_a2dp_trigger_callback reconfig_a2dp_trigger_cb;
} btav_callbacks_t;
/**
@@ -102,7 +107,7 @@
* Register the BtAv callbacks
*/
bt_status_t (*init)( btav_callbacks_t* callbacks , int max_a2dp_connections,
- int a2dp_multicast_state);
+ int a2dp_multicast_state, const char *offload_cap);
/** connect to headset */
bt_status_t (*connect)( bt_bdaddr_t *bd_addr );