Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] Fix A2DP Sink/Source recognition
@ 2012-05-18  8:54 chanyeol.park
  2012-05-18  8:54 ` [PATCH 2/3] Fix avrcp unregister potential crash chanyeol.park
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: chanyeol.park @ 2012-05-18  8:54 UTC (permalink / raw)
  To: linux-bluetooth

From: Chan-yeol Park <chanyeol.park@samsung.com>

---
 audio/a2dp.c     |    8 ++++----
 audio/audio.conf |    2 +-
 audio/manager.c  |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/audio/a2dp.c b/audio/a2dp.c
index cc8f139..145dcf6 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1406,9 +1406,9 @@ int a2dp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config)
 		g_clear_error(&err);
 	} else {
 		if (strstr(str, "Sink"))
-			source = TRUE;
-		if (strstr(str, "Source"))
 			sink = TRUE;
+		if (strstr(str, "Source"))
+			source = TRUE;
 		if (strstr(str, "Socket"))
 			socket = TRUE;
 		g_free(str);
@@ -1421,9 +1421,9 @@ int a2dp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config)
 		g_clear_error(&err);
 	} else {
 		if (strstr(str, "Sink"))
-			source = FALSE;
-		if (strstr(str, "Source"))
 			sink = FALSE;
+		if (strstr(str, "Source"))
+			source = FALSE;
 		if (strstr(str, "Socket"))
 			socket = FALSE;
 		g_free(str);
diff --git a/audio/audio.conf b/audio/audio.conf
index fd6092a..1abdab9 100644
--- a/audio/audio.conf
+++ b/audio/audio.conf
@@ -9,7 +9,7 @@
 
 # If we want to disable support for specific services
 # Defaults to supporting all implemented services
-#Disable=Gateway,Source,Socket
+#Disable=Gateway,Sink,Socket
 
 # SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
 # Defaults to HCI
diff --git a/audio/manager.c b/audio/manager.c
index 9c7d0d3..9e5c71c 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -114,8 +114,8 @@ static struct enabled_interfaces enabled = {
 	.hfp		= TRUE,
 	.headset	= TRUE,
 	.gateway	= FALSE,
-	.sink		= TRUE,
-	.source		= FALSE,
+	.sink		= FALSE,
+	.source		= TRUE,
 	.control	= TRUE,
 	.socket		= FALSE,
 	.media		= TRUE,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-18 17:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18  8:54 [PATCH 1/3] Fix A2DP Sink/Source recognition chanyeol.park
2012-05-18  8:54 ` [PATCH 2/3] Fix avrcp unregister potential crash chanyeol.park
2012-05-18 11:40   ` Johan Hedberg
2012-05-18 13:02     ` Lucas De Marchi
2012-05-18 15:08       ` Johan Hedberg
2012-05-18 17:31         ` Johan Hedberg
2012-05-18  8:54 ` [PATCH 3/3] Add support for AVRCP control,target role conf chanyeol.park
2012-05-18 11:38 ` [PATCH 1/3] Fix A2DP Sink/Source recognition Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox