summaryrefslogtreecommitdiff
path: root/android/a2dp.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2014-04-17 01:50:33 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-04-17 09:51:17 +0300
commit6f15a57645099bc8e49a0ae31f6924efe6958ea3 (patch)
tree30a47b9097415dc228c80ea6f7ef4867a234e626 /android/a2dp.c
parent0da8d99975d4eaf29c04809ac85a7951811dcc8c (diff)
downloadbluez-6f15a57645099bc8e49a0ae31f6924efe6958ea3.tar.gz
android/a2dp: Prefer master role on incoming connections
Diffstat (limited to 'android/a2dp.c')
-rw-r--r--android/a2dp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/a2dp.c b/android/a2dp.c
index 4ea16e252..8fb84a334 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -1577,6 +1577,7 @@ bool bt_a2dp_register(struct ipc *ipc, const bdaddr_t *addr, uint8_t mode)
BT_IO_OPT_SOURCE_BDADDR, &adapter_addr,
BT_IO_OPT_PSM, L2CAP_PSM_AVDTP,
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_MEDIUM,
+ BT_IO_OPT_MASTER, true,
BT_IO_OPT_INVALID);
if (!server) {
error("Failed to listen on AVDTP channel: %s", err->message);