Patchwork [2/2] pulseaudio: The audio over Adipts ALC888 audio effect chip on Sabino does not work

login
register
mail settings
Submitter jackie huang
Date Nov. 22, 2012, 6:46 a.m.
Message ID <6d176cf5137ef3e9bb4ff3ac701cafbf14911301.1353564658.git.jackie.huang@windriver.com>
Download mbox | patch
Permalink /patch/39455/
State New
Headers show

Comments

jackie huang - Nov. 22, 2012, 6:46 a.m.
From: Jackie Huang <jackie.huang@windriver.com>

root cause:

the default settings for audio devices are installed by the udev script
90-alsa-restore.rules.  This script is installed into /lib/udev/rules.d,
but a recent change moved the udev files to /usr/lib*, so the alsa script
doesn't get run.

the configure of package pulseaudio set the udev rules default directory to
"/lib/udev/rules.d", while its bb file specifies "${base_libdir}/udev"
as udev rules directory. So the file in "/lib/udev/rules.d" will be missing when
packaging on 64bit platforms.

solution: set parameter "udevrulesdir" to "${libdir}/udev/rules.d" for configure
of pulseaudio

Signed-off-by: Shiqun Lin <Shiqun.Lin@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 .../pulseaudio/pulseaudio_2.1.bb                   |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio_2.1.bb b/meta/recipes-multimedia/pulseaudio/pulseaudio_2.1.bb
index 35137a8..b41addb 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio_2.1.bb
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio_2.1.bb
@@ -1,6 +1,6 @@ 
 require pulseaudio.inc
 
-PR = "r15"
+PR = "r16"
 
 DEPENDS += "libjson gdbm speex libxml-parser-perl-native \
   ${@base_contains('DISTRO_FEATURES', 'x11', 'libxrandr', '', d)}"
@@ -15,6 +15,9 @@  SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${PV}.
 SRC_URI[md5sum] = "33e85023259d530f0a763d5204e8bad9"
 SRC_URI[sha256sum] = "ef6b347bf47abfb98080795f1583018ac959b4aeb4df916b879f9e1eaba0ca7f"
 
+EXTRA_OECONF += "--with-udev-rules-dir=${libdir}/udev/rules.d"
+FILES_${PN}-server += " ${libdir}/udev/rules.d/*.rules"
+
 do_compile_prepend() {
     cd ${S}
     mkdir -p ${S}/libltdl