Thread (17 messages) 17 messages, 3 authors, 2013-05-27
STALE4811d

[PATCH BlueZ v0 4/4] avrcp: Don't require active sink in role heuristic

From: Mikel Astiz <hidden>
Date: 2013-05-23 09:28:29
Subsystem: the rest · Maintainer: Linus Torvalds

From: Mikel Astiz <redacted>

When guessing the AVRCP role of the session being created, do not rely
on the state of the sink. This is actually a common scenario when the
connection of the sink failed.
---
 profiles/audio/avrcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index e9d352c..677bf88 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -2862,7 +2862,7 @@ static struct avrcp *session_create(struct avrcp_server *server,
 		session->target = TRUE;
 	else if (dev->source && !dev->sink)
 		session->target = FALSE;
-	else if (dev->sink && sink_is_active(dev))
+	else if (dev->sink && !dev->source)
 		session->target = TRUE;
 	else
 		session->target = FALSE;
-- 
1.8.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help