aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSal Savage <salsavage@google.com>2021-02-11 13:36:11 -0800
committerSal Savage <salsavage@google.com>2021-02-11 15:58:25 -0800
commitd39117c88d5390ed640042eff87bef3ee9e10bf4 (patch)
tree5b5df4ad5bc801e2977d509e967fd2b0265d24f8 /include
parent73152da12bcffac0254f133b88781beaccaab479 (diff)
downloadbt-d39117c88d5390ed640042eff87bef3ee9e10bf4.tar.gz
Add max_connected_audio_devices parameter to A2DP Sink init
This movess us off of a hardcoded value for number of connected devices and allows Java, through the JNI, to have input on the maximum number of audio devices it would like to have connected. This moves A2DP Sink in linne with A2DP Source. It will also enable easily configurable multi-a2dp sink and avrcp controller experiences. Tag: #refactor Bug: 180039146 Test: atest BluetoothInstrumentationTests Change-Id: I98b7d55d8aa53c07af6451f3d5dca529b96739fc
Diffstat (limited to 'include')
-rw-r--r--include/hardware/bt_av.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h
index 262360da7..b3be7a234 100644
--- a/include/hardware/bt_av.h
+++ b/include/hardware/bt_av.h
@@ -356,7 +356,8 @@ typedef struct {
/**
* Register the BtAv callbacks
*/
- bt_status_t (*init)(btav_sink_callbacks_t* callbacks);
+ bt_status_t (*init)(btav_sink_callbacks_t* callbacks,
+ int max_connected_audio_devices);
/** connect to headset */
bt_status_t (*connect)(const RawAddress& bd_addr);