From 1e52460e077c7e9cdc1f6e064edb68f24f925032 Mon Sep 17 00:00:00 2001 From: AnubhavGupta Date: Sat, 3 Oct 2015 11:32:25 +0530 Subject: Bluetooth: A2DP Sink add interfaces for focus request and update - add interfaces for focus request and focus update Change-Id: I068aee137eeffa960ef71f92907a2bbda2c35b0b --- include/hardware/bt_av.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h index c2d4091..be82fbe 100644 --- a/include/hardware/bt_av.h +++ b/include/hardware/bt_av.h @@ -70,6 +70,13 @@ typedef void (* btav_audio_config_callback)(bt_bdaddr_t *bd_addr, typedef void (* btav_is_multicast_enabled_callback)(int state); +/* + * Callback for audio focus request to be used only in + * case of A2DP Sink. This is required because we are using + * AudioTrack approach for audio data rendering. + */ +typedef void (* btav_audio_focus_request_callback)(bt_bdaddr_t *bd_addr); + /** BT-AV callback structure. */ typedef struct { /** set to sizeof(btav_callbacks_t) */ @@ -79,6 +86,7 @@ typedef struct { btav_audio_config_callback audio_config_cb; btav_connection_priority_callback connection_priority_cb; btav_is_multicast_enabled_callback multicast_state_cb; + btav_audio_focus_request_callback audio_focus_request_cb; } btav_callbacks_t; /** @@ -115,6 +123,9 @@ typedef struct { /** Send priority of device to stack*/ void (*allow_connection)( int is_valid , bt_bdaddr_t *bd_addr); + + /** Sends Audio Focus State. */ + void (*audio_focus_state)( int focus_state ); } btav_interface_t; __END_DECLS -- cgit v1.1