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:
d619786
)
bap: Fix not continue selecting if endpoint respond with an error
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 17 Mar 2023 16:14:18 +0000
(09:14 -0700)
committer
Ayush Garg
<ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000
(16:11 +0530)
If the endpoint respond with an error we shall decrement selecting
counter and proceed to check if there is any stream that can be
configured.
profiles/audio/bap.c
patch
|
blob
|
history
diff --git
a/profiles/audio/bap.c
b/profiles/audio/bap.c
index
05b9c9a
..
bdd99b9
100644
(file)
--- a/
profiles/audio/bap.c
+++ b/
profiles/audio/bap.c
@@
-629,7
+629,8
@@
static void select_cb(struct bt_bap_pac *pac, int err, struct iovec *caps,
if (err) {
error("err %d", err);
- return;
+ ep->data->selecting--;
+ goto done;
}
ep->caps = util_iov_dup(caps, 1);
@@
-644,6
+645,7
@@
static void select_cb(struct bt_bap_pac *pac, int err, struct iovec *caps,
DBG("selecting %d", ep->data->selecting);
ep->data->selecting--;
+done:
if (ep->data->selecting)
return;