~bluetooth/bluez/vivid-phone-overlay

« back to all changes in this revision

Viewing changes to debian/patches/enable_audio_profiles.patch

  • Committer: Simon Fels
  • Date: 2015-09-11 09:01:46 UTC
  • Revision ID: morphis@gravedo.de-20150911090146-4c0ln9s7ec3xf0nx
Import package bluez_4.101-0ubuntu25.1~overlay4 from stable phone overlay PPA

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
 
2
Subject: Enable the Gateway and Source audio profiles by default.
 
3
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/948613
 
4
 
 
5
Those can be disabled by the user in /etc/bluetooth/audio.conf if necessary.
 
6
 
 
7
---
 
8
 audio/a2dp.c    |    2 +-
 
9
 audio/manager.c |    4 ++--
 
10
 2 files changed, 3 insertions(+), 3 deletions(-)
 
11
 
 
12
Index: b/audio/manager.c
 
13
===================================================================
 
14
--- a/audio/manager.c
 
15
+++ b/audio/manager.c
 
16
@@ -110,9 +110,9 @@ static GSList *devices = NULL;
 
17
 static struct enabled_interfaces enabled = {
 
18
        .hfp            = TRUE,
 
19
        .headset        = TRUE,
 
20
-       .gateway        = FALSE,
 
21
+       .gateway        = TRUE,
 
22
        .sink           = TRUE,
 
23
-       .source         = FALSE,
 
24
+       .source         = TRUE,
 
25
        .control        = TRUE,
 
26
        .socket         = FALSE,
 
27
        .media          = TRUE,
 
28
Index: b/audio/a2dp.c
 
29
===================================================================
 
30
--- a/audio/a2dp.c
 
31
+++ b/audio/a2dp.c
 
32
@@ -1444,7 +1444,7 @@ int a2dp_register(DBusConnection *conn,
 
33
 {
 
34
        int sbc_srcs = 0, sbc_sinks = 0;
 
35
        int mpeg12_srcs = 0, mpeg12_sinks = 0;
 
36
-       gboolean source = TRUE, sink = FALSE, socket = FALSE;
 
37
+       gboolean source = TRUE, sink = TRUE, socket = FALSE;
 
38
        gboolean delay_reporting = FALSE;
 
39
        char *str;
 
40
        GError *err = NULL;