From c376ba31df39eaf0fd84943d60a5c9ce679c5483 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 25 Jan 2013 10:59:01 +0200 Subject: [PATCH] audio: Update to new adapter_get_device API --- profiles/audio/avctp.c | 5 +++-- profiles/audio/avdtp.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 61890ccde..d2dce3e59 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1228,13 +1228,14 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data) struct avctp *session; struct audio_device *dev; char address[18]; - bdaddr_t src; + bdaddr_t src, dst; GError *err = NULL; uint16_t psm; struct btd_device *device; bt_io_get(chan, &err, BT_IO_OPT_SOURCE_BDADDR, &src, + BT_IO_OPT_DEST_BDADDR, &dst, BT_IO_OPT_DEST, address, BT_IO_OPT_PSM, &psm, BT_IO_OPT_INVALID); @@ -1247,7 +1248,7 @@ static void avctp_confirm_cb(GIOChannel *chan, gpointer data) DBG("AVCTP: incoming connect from %s", address); - device = adapter_find_device(adapter_find(&src), address); + device = adapter_find_device(adapter_find(&src), &dst); if (!device) return; diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 4921fdcb7..018769130 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -2476,7 +2476,7 @@ static void avdtp_confirm_cb(GIOChannel *chan, gpointer data) DBG("AVDTP: incoming connect from %s", address); - device = adapter_find_device(adapter_find(&src), address); + device = adapter_find_device(adapter_find(&src), &dst); if (!device) goto drop; -- 2.47.3