Thread (10 messages) 10 messages, 3 authors, 2011-12-30

[PATCH 4/4] audio: do not disconnect on gateway SCO failure

flat view
STALE5418d

From: Mikel Astiz <hidden>
Date: 2011-12-15 10:01:07
Subsystem: the rest · Maintainer: Linus Torvalds

From: Mikel Astiz <redacted>

Failure on BlueZ-initiated SCO requests should not drop the RFCOMM
connection to the gateway. Instead, considering the stream as suspended
should be enough.
---
 audio/gateway.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/audio/gateway.c b/audio/gateway.c
index 9b1aab3..f28b14d 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -255,7 +255,7 @@ static void sco_connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
 
 	if (err) {
 		error("sco_connect_cb(): %s", err->message);
-		gateway_close(dev);
+		gateway_suspend_stream(dev);
 		return;
 	}
 
-- 
1.7.6.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