From 66217b106f8df5ae0604d68814bb9f3f40a20d8d Mon Sep 17 00:00:00 2001
From: Ralf Jung <post@ralfj.de>
Date: Thu, 13 Sep 2012 19:13:40 +0200
Subject: [PATCH] Update udev file

---
 ...ers-not-to-be-in-the-audio-group-so-.patch | 25 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 debian/patches/0002-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch

diff --git a/debian/patches/0002-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch b/debian/patches/0002-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch
new file mode 100644
index 0000000..53896ab
--- /dev/null
+++ b/debian/patches/0002-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch
@@ -0,0 +1,25 @@
+From: Ralf Jung <post@ralfj.de>
+Date: Thu, 13 Sep 2012 19:13:25 +0200
+Subject: PA recommends users *not* to be in the audio group, so allow
+ everyone to use these devices
+
+---
+ 98-osscuse.rules |    9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/98-osscuse.rules b/98-osscuse.rules
+index c1430fd..9b40bec 100644
+--- a/98-osscuse.rules
++++ b/98-osscuse.rules
+@@ -1,7 +1,6 @@
+-# Since these devices are not part of 'sound' subsystem the group is forced
+-# to audio by name
++# Allow everyone to use these devices
+ # /dev/cuse can stay  mode 0660 root:root since osspd is run as root
+ # and drops privileges to user level when opened by user
+-KERNEL=="dsp", GROUP="audio"
+-KERNEL=="mixer", GROUP="audio"
+-KERNEL=="adsp", GROUP="audio"
++KERNEL=="dsp", SUBSYSTEM=="cuse", MODE="0666"
++KERNEL=="mixer", SUBSYSTEM=="cuse", MODE="0666"
++KERNEL=="adsp", SUBSYSTEM=="cuse", MODE="0666"
diff --git a/debian/patches/series b/debian/patches/series
index c9f5083..9d80719 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix-compilation-with-Werror-format-security-use-CPPF.patch
+0002-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch
-- 
2.39.5