projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ab5c2
)
a2dp: Fix reconfiguring when there multiple devices connected
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 3 May 2019 09:41:15 +0000
(12:41 +0300)
committer
himanshu
<h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000
(14:27 +0530)
When there are multiple devices connected streams need to be matched
with the sessions they belong.
Change-Id: I47df96c503cffca7e5250e518d01177527f175ba
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/a2dp.c
patch
|
blob
|
history
diff --git
a/profiles/audio/a2dp.c
b/profiles/audio/a2dp.c
index
7ed98d4
..
2b3eea3
100644
(file)
--- a/
profiles/audio/a2dp.c
+++ b/
profiles/audio/a2dp.c
@@
-1740,6
+1740,10
@@
static int a2dp_reconfig(struct a2dp_channel *chan, const char *sender,
tmp->user_data)))
return -EPERM;
+ /* Check if stream is for the channel */
+ if (!avdtp_has_stream(chan->session, tmp->stream))
+ continue;
+
err = avdtp_close(chan->session, tmp->stream, FALSE);
if (err < 0) {
err = avdtp_abort(chan->session, tmp->stream);