Patchwork pulseaudio: make it work out of the box

login
register
mail settings
Submitter Koen Kooi
Date July 12, 2011, 1:21 p.m.
Message ID <1310476883-3649-1-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/7409/
State New, archived
Headers show

Comments

Koen Kooi - July 12, 2011, 1:21 p.m.
* reuse 'audio' group as access group

  The current failure is:

  root@usrp-e1xx:/etc/pulse# pulseaudio --system
   [..]
  W: protocol-native.c: Failed to get GID of group 'pulse-access'
  W: protocol-native.c: Failed to check group membership.
  W: protocol-native.c: Denied access to client with invalid authorization data.

* add more required modules
---
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |    4 ++++
 .../pulseaudio/pulseaudio_0.9.22.bb                |    2 +-
 .../pulseaudio/pulseaudio_0.9.23.bb                |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
Richard Purdie - July 12, 2011, 2:05 p.m.
On Tue, 2011-07-12 at 15:21 +0200, Koen Kooi wrote:
> * reuse 'audio' group as access group
> 
>   The current failure is:
> 
>   root@usrp-e1xx:/etc/pulse# pulseaudio --system
>    [..]
>   W: protocol-native.c: Failed to get GID of group 'pulse-access'
>   W: protocol-native.c: Failed to check group membership.
>   W: protocol-native.c: Denied access to client with invalid authorization data.
> 
> * add more required modules
> ---
>  meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |    4 ++++
>  .../pulseaudio/pulseaudio_0.9.22.bb                |    2 +-
>  .../pulseaudio/pulseaudio_0.9.23.bb                |    2 +-
>  3 files changed, 6 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
index 979d0a9..a520343 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -28,6 +28,7 @@  EXTRA_OECONF = "\
 		--with-oss \
 		--without-hal \
 		--disable-hal \
+		--with-access-group=audio \
 "
 
 PARALLEL_MAKE = ""
@@ -110,6 +111,8 @@  python populate_packages_prepend() {
 
 RDEPENDS_pulseaudio-module-console-kit =+ "consolekit"
 RDEPENDS_pulseaudio-server = " \
+    pulseaudio-module-udev-detect \
+    pulseaudio-module-null-sink \
     pulseaudio-module-device-restore \
     pulseaudio-module-stream-restore \
     pulseaudio-module-card-restore \
@@ -120,6 +123,7 @@  RDEPENDS_pulseaudio-server = " \
     pulseaudio-module-alsa-card \
     pulseaudio-module-native-protocol-unix \
     pulseaudio-module-default-device-restore \
+    pulseaudio-module-intended-roles \
     pulseaudio-module-rescue-streams \
     pulseaudio-module-always-sink \
     pulseaudio-module-suspend-on-idle \
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.22.bb b/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.22.bb
index d03a726..2757b32 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.22.bb
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.22.bb
@@ -1,6 +1,6 @@ 
 require pulseaudio.inc
 
-PR = "r3"
+PR = "r5"
 
 DEPENDS += "gdbm speex"
 
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.23.bb b/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.23.bb
index 9f354ff..8b96aed 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.23.bb
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio_0.9.23.bb
@@ -1,6 +1,6 @@ 
 require pulseaudio.inc
 
-PR = "r1"
+PR = "r3"
 
 DEPENDS += "gdbm speex"