Blame SOURCES/0001-Enable-the-Gateway-and-Source-audio-profiles-by-defa.patch

19062e
From 0b5f5d0be6a1c9aa2d63e72e6a979f46cfbcc866 Mon Sep 17 00:00:00 2001
19062e
From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
19062e
Date: Thu, 10 Jan 2013 09:20:22 +0100
19062e
Subject: [PATCH] Enable the Gateway and Source audio profiles by default.
19062e
19062e
Those can be disabled by the user in /etc/bluetooth/audio.conf if
19062e
necessary.
19062e
19062e
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/948613
19062e
---
19062e
 audio/a2dp.c    | 2 +-
19062e
 audio/manager.c | 4 ++--
19062e
 2 files changed, 3 insertions(+), 3 deletions(-)
19062e
19062e
diff --git a/audio/a2dp.c b/audio/a2dp.c
19062e
index 404be53..6c0ab26 100644
19062e
--- a/audio/a2dp.c
19062e
+++ b/audio/a2dp.c
19062e
@@ -1444,7 +1444,7 @@ int a2dp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config)
19062e
 {
19062e
 	int sbc_srcs = 0, sbc_sinks = 0;
19062e
 	int mpeg12_srcs = 0, mpeg12_sinks = 0;
19062e
-	gboolean source = TRUE, sink = FALSE, socket = FALSE;
19062e
+	gboolean source = TRUE, sink = TRUE, socket = TRUE;
19062e
 	gboolean delay_reporting = FALSE;
19062e
 	char *str;
19062e
 	GError *err = NULL;
19062e
diff --git a/audio/manager.c b/audio/manager.c
19062e
index d442d1d..99e03bb 100644
19062e
--- a/audio/manager.c
19062e
+++ b/audio/manager.c
19062e
@@ -110,9 +110,9 @@ static GSList *devices = NULL;
19062e
 static struct enabled_interfaces enabled = {
19062e
 	.hfp		= TRUE,
19062e
 	.headset	= TRUE,
19062e
-	.gateway	= FALSE,
19062e
+	.gateway	= TRUE,
19062e
 	.sink		= TRUE,
19062e
-	.source		= FALSE,
19062e
+	.source		= TRUE,
19062e
 	.control	= TRUE,
19062e
 	.socket		= FALSE,
19062e
 	.media		= TRUE,
19062e
-- 
19062e
1.8.0.1
19062e