[bluez/f18] Enable audio socket so a2dp works in PulseAudio again (#874015)

Bastien Nocera hadess at fedoraproject.org
Wed Nov 21 17:15:57 UTC 2012


commit a912db78df9c1e83cc944dcad208a70cd15cf78d
Author: Bastien Nocera <hadess at hadess.net>
Date:   Wed Nov 21 18:11:44 2012 +0100

    Enable audio socket so a2dp works in PulseAudio again (#874015)

 bluez-4.101-allow-a2dp-with-pulseaudio.patch |   15 +++++++++++++++
 bluez.spec                                   |    7 +++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/bluez-4.101-allow-a2dp-with-pulseaudio.patch b/bluez-4.101-allow-a2dp-with-pulseaudio.patch
new file mode 100644
index 0000000..53fdb32
--- /dev/null
+++ b/bluez-4.101-allow-a2dp-with-pulseaudio.patch
@@ -0,0 +1,15 @@
+diff --git a/audio/audio.conf b/audio/audio.conf
+index fd6092a..9a80e63 100644
+--- a/audio/audio.conf
++++ b/audio/audio.conf
+@@ -4,6 +4,10 @@
+ # particular interface
+ [General]
+ 
++# Allow PulseAudio to connect by default
++# https://bugzilla.redhat.com/show_bug.cgi?id=874015#c0
++Enable=Socket
++
+ # Switch to master role for incoming connections (defaults to true)
+ #Master=true
+ 
diff --git a/bluez.spec b/bluez.spec
index 3986bfb..240dd0c 100644
--- a/bluez.spec
+++ b/bluez.spec
@@ -14,6 +14,8 @@ Source6: pand.conf
 Source7: rfcomm.init
 Source8: bluez-uinput.modules
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=874015#c0
+Patch0: bluez-4.101-allow-a2dp-with-pulseaudio.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=498756
 Patch4: bluez-socket-mobile-cf-connection-kit.patch
 # http://thread.gmane.org/gmane.linux.bluez.kernel/2396
@@ -145,6 +147,7 @@ and mouse.
 %prep
 
 %setup -q
+%patch0 -p1
 %patch4 -p1 -b .socket-mobile
 %patch5 -p1 -b .cable-pairing
 %patch6 -p1
@@ -190,6 +193,8 @@ install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
 
 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/
 
+install -D -p -m0644 audio/audio.conf ${RPM_BUILD_ROOT}/etc/bluetooth/
+
 %post libs -p /sbin/ldconfig
 
 %post
@@ -257,6 +262,7 @@ fi
 %exclude %{_mandir}/man8/hid2hci.8*
 %dir %{_sysconfdir}/bluetooth/
 %config(noreplace) %{_sysconfdir}/bluetooth/main.conf
+%config(noreplace) %{_sysconfdir}/bluetooth/audio.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
 %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
 %{_libdir}/bluetooth/
@@ -317,6 +323,7 @@ fi
 * Wed Nov 21 2012 Bastien Nocera <bnocera at redhat.com> 4.101-4
 - Clean up requires and build requires
 - Use CUPS macro (#772236)
+- Enable audio socket so a2dp works in PulseAudio again (#874015)
 
 * Wed Aug 15 2012 Bastien Nocera <bnocera at redhat.com> 4.101-3
 - Enable pairing Wiimote support (#847481)


More information about the scm-commits mailing list