bluez4: enable socket API by default
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 22:10:34 +0000 (00:10 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 22:11:40 +0000 (00:11 +0200)
that's how BT audio is used in most cases on pandora

recipes/bluez/bluez4-4.99/enable_socket_api.patch [new file with mode: 0644]
recipes/bluez/bluez4_4.99.bb

diff --git a/recipes/bluez/bluez4-4.99/enable_socket_api.patch b/recipes/bluez/bluez4-4.99/enable_socket_api.patch
new file mode 100644 (file)
index 0000000..2f069ed
--- /dev/null
@@ -0,0 +1,22 @@
+diff -ur bluez-4.99_/audio/audio.conf bluez-4.99/audio/audio.conf
+--- bluez-4.99_/audio/audio.conf       2010-08-25 08:10:02.000000000 +0300
++++ bluez-4.99/audio/audio.conf        2016-02-27 23:55:24.076560166 +0200
+@@ -3,6 +3,9 @@
+ # This section contains options which are not specific to any
+ # particular interface
+ [General]
++# comment this out if you need to use bluez Media DBus API
++# see http://www.lightofdawn.org/blog/?viewDetailed=00031
++Enable=Socket
+ # Switch to master role for incoming connections (defaults to true)
+ #Master=true
+@@ -19,7 +22,7 @@
+ # connections. Some headsets that support both profiles will only connect the
+ # other one automatically so the default setting of true is usually a good
+ # idea.
+-#AutoConnect=true
++AutoConnect=true
+ # Headset interface specific options (i.e. options which affect how the audio
+ # service interacts with remote headset devices)
index 0487632..8969349 100644 (file)
@@ -1,6 +1,6 @@
 require bluez4.inc
 
-PR = "r12"
+PR = "r13"
 
 SRC_URI += "file://bluetooth.conf \
             file://sbc_mmx.patch;patch=1 \
@@ -12,6 +12,7 @@ SRC_URI += "file://bluetooth.conf \
             file://fix_encrypt_collision.patch;patch=1 \
             file://0001-hciattach_tialt-Implement-texas_change_speed-functio.patch;patch=1 \
             file://firmware_path.patch;patch=1 \
+            file://enable_socket_api.patch;patch=1 \
 "
 
 SRC_URI[md5sum] = "570aa10692ed890aa0a4297b37824912"