Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6023EE00984; Sun, 26 Jul 2015 19:54:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 1.9 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [207.46.100.116 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0116.outbound.protection.outlook.com [207.46.100.116]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ED6B5E009D6 for ; Sun, 26 Jul 2015 19:54:00 -0700 (PDT) Received: from BN3PR0301CA0061.namprd03.prod.outlook.com (10.160.152.157) by BY1PR0301MB1173.namprd03.prod.outlook.com (10.160.195.144) with Microsoft SMTP Server (TLS) id 15.1.225.19; Mon, 27 Jul 2015 02:53:58 +0000 Received: from BY2FFO11FD048.protection.gbl (2a01:111:f400:7c0c::114) by BN3PR0301CA0061.outlook.office365.com (2a01:111:e400:401e::29) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Mon, 27 Jul 2015 02:53:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD048.mail.protection.outlook.com (10.1.15.176) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Mon, 27 Jul 2015 02:53:56 +0000 Received: from carol-OptiPlex-3020.ap.freescale.net (carol-OptiPlex-3020.ap.freescale.net [10.192.241.17]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t6R2roq8020872; Sun, 26 Jul 2015 19:53:55 -0700 From: Yuqing Zhu To: Date: Mon, 27 Jul 2015 18:53:32 +0800 Message-ID: <1437994414-29134-2-git-send-email-b54851@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437994414-29134-1-git-send-email-b54851@freescale.com> References: <1437994414-29134-1-git-send-email-b54851@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD048; 1:ul8OnWSUP67T/OG7Hkh/qzoGMk8PIibD55vdHAujNa+oqfcO1LgtHsZtc/vDNcyqR9d7Dgh53JCcVIN8GCQ7AKmTDMG5Z65WQIhlwWeMtVcquoUNmtU9xEerEWCSyXvinBsZx8oCqcKFM4ZHrFmZUAD8FW0PgHcSZt3Wgm5hvdwBiCiLN0FEbRv92yfXgaBL7851GVD6YpsWeNvWfrMLJb6Fz/e2oxId4euPdGgl+PuL4b5M+kGUBi7gbWrvjYWERuG5Yky9IQtGxA0EBoHRXEAKyfAo4KSdugq4P+tjv1ciRUUzQPvgFOZ6WWMed/ymCW1QW02gDkQUDuPZICNaZg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(105606002)(48376002)(6806004)(19580395003)(50466002)(19580405001)(47776003)(2351001)(86362001)(230783001)(104016003)(85426001)(33646002)(229853001)(46102003)(87936001)(36756003)(189998001)(92566002)(50226001)(15975445007)(77156002)(450100001)(62966003)(77096005)(110136002)(5001920100001)(107886002)(5001960100002)(76176999)(50986999)(2950100001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB1173; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1173; 2:CdtSHxaJPSAkkTs99itPtAqZ+Lfi8KTWFajT0NYJZCLJzE8t1Dx/QDM/Yy+277itimxV93xdBVOtTlZzCUM93KGIsbRU5+0S6smd+H36/Jm1AKuUXBb1sAkugqboHRRB/iYU6F66/v/v1mnFa1jDc+Q9k8mdPtlLiwX7+0xCgdQ=; 3:6ACRUKLirOExLtbC6H3Og8XlwEPZqeb9ZTGM0ak0hZvwCsxE/tnLO+0Os/8ZOdExwSnvBBtj7Ynt0dLXPlsk4qVXBX+dGHKlp08NUrEb46L2mUpFK6IeLRxZtpCz2fkHs1sbOi1Jko7E9oWNjPMTyv5oXMW0zCIFSR6SAU9zoQ066VvaBfe+Tu8Y6l1tvFcrEuUK8GJhDvznA2sr8ZtC0LO6QCz6/kgxTDQCEGxyYuQ=; 25:Xao53cAxQCLNqtYl3wyyTYTWBvXwL0DLQD7rFbmnbAFBs2ZN9iI2CJqfSKjqA+llpvYLOnKN05gfu7LthzDL6Tf9HGIAIlusrMaxc7cIKLzZHCtAbM1jEztIEpyVsGdJT+o1tcfr/Vd1q0PhJRa94iR9Bcz66hIO379+GU8RBBwTXWcSxGBWDt7hHDBFjyZdxnB5IEgnjOgfcoo/N+2qaFkFDhnzEutda2zvVLBFSuOUh6nKHooLa6I5g6uZLBP+0WswugAAs9w3yq2ZWPoJAg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1173; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1173; 20:yeyWY06Q/KUPhignDhemnGEk0C/sRgZZBxLKEEjytouRw3r2fkzclm8RN8RYCTmX0unRtZ/o1+kUjUnbM1k5TKIFSaPbFhPot3GZY3R4+OO80a61G/a8szFXXOdXDaNaiw8FO0Qs5w/p5yu0unSYLv4bhttIyr/M/8wRHJZH9MMC7u/fnptwgKIf50VqUjy4/80UTRnvDlxeIt4Xs9GT5X2JY08vvqsfHy3MbljsNJph770lN+vrQSBabb1wZvwL5d53aZ7AHcXK6bxElkln7tHdkwGegdgueLzGtRfrlAdLVsSSTBWs9q9RtWekx8+HsQrbrs0AZ3tC+iJKd/rd3TwtO97Pla17jdpvu8sIxmg=; 4:QXZnWQCRnIas4U7DmBZcwKbTnoRhvx5lIXKU+kFSgFQXn1jlJ3ldwI4PpZQAMsRXSXhgfF9uiFWDw1eWUbhm6NZ9HU528otzSVesKWFHm/vs1cH7xjjPQgmijODZDnjWfgMPJq+KBHlbHXK5BQPfN6TChiK4gK5ro/G9Zx8aUHV9myosM2JXCL5SoBesKlRq4S/AoKlX8TLBC564XYMVhtpVTdNBiAMhx2SCOFva1TIJLdPWIZecSibkDEYC+3Nf1RJKHW4aOMhNjIhHNNocoxibb7qP6vgGZpdNIaR/9WU= BY1PR0301MB1173: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY1PR0301MB1173; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB1173; X-Forefront-PRVS: 0650714AAA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB1173; 23:rFMH1rvs7igc/c0UN7lX0kALgWzpmO8TEkt+eLI?= =?us-ascii?Q?XjSf2ls66aBHQc2TPhESsnM5mgfPXr+Lsfhsy9kCz65G+2SYOtUh7K1RExdP?= =?us-ascii?Q?6j9zWL2GWHXIndUZle+JGdxlLt5yZFAwTedFnk5TDlFPzYokqFxWtecQTbfs?= =?us-ascii?Q?EneGcY2cn+nJurzw0EVromY0TxaWWJ+mdgUiDNw3k03BSdOL0T0dUaf6pcDG?= =?us-ascii?Q?DlsIMGnPEy2O3KTpwDEeXflQkStx6Yx+irUwfChSvPI5n09gRqVt/rEDKmtr?= =?us-ascii?Q?qyXl/qhU7PuumC0ViZQhGvFTvRQ8qKDI8Jhr+GrB6OJWm1SQZX9IGJdXQ2zQ?= =?us-ascii?Q?xd1qosQWHqhgeNOMFS8igDlXnff1Ntjb2FLtOaZkO+kt5175hYOVvQa4hmIN?= =?us-ascii?Q?t0Zn/CFj56SYW/ifgtmJOlk2VreM8tG6DI1/PZmBDaJr1cSYrGU51M/+sIL1?= =?us-ascii?Q?Gc1G7klNQaQ0jazu0pybaE3YtG2caZQCoflgD02WiJ5MRV+mAIbyHuO0CerC?= =?us-ascii?Q?h11u0lGzVpO6cvmfTb8Obs2iatVlj+cZcVdamujlts+gb2I/A95nTk0CTg5d?= =?us-ascii?Q?0IGFPDseDfZh1J/tZIbG3Z9E9j7pZFbFbnYL1p46TeHt/im41YgCsczCuTUq?= =?us-ascii?Q?M+c1ZGWokUjI5T1p9acq6Hs4/3cldMfqYuWb+V6faFSRzF3BInPo0h9arfBv?= =?us-ascii?Q?3GdfNoh1tmesSpLq/3lP0TOWINkrcsNhDVis6UnOpa8p6AmjIBqdBFRgQ6rp?= =?us-ascii?Q?OrISnyAfUbh/oEmuhbU4VxLgUQhrGfac0GkUNPdSZ3CjBoUGOgDrSjYYMOio?= =?us-ascii?Q?kWRGw3V3O2JrjLcmhUYobV3KLBNFSmD1MbzZOO0jEyj/7+YPtWQBSWHngPGM?= =?us-ascii?Q?ydngY/7EUFGqCgwvl4UwEZyH1nJhZFqgLunMX6zM5N+REQvS3Zcq4ueNnHU3?= =?us-ascii?Q?/D6MY+rqaJpw1ncDGuJlPWSTZmjBdpKmZedBcmO7dU8ZC0KKEA4sg9gxeD9l?= =?us-ascii?Q?/u9Q54tgsUEao4Q2jD1HnbgJD?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1173; 5:v2YtRWa8npVkquOW5Q38qnLxAWuYppjVWfFlpydqe9pWFsiJJCmy0KAVYGw4u6YWqr/bZEvA89tITvtBLswWelAbBWMvJPm1AGQQgCMC9yAGWj2yC3PxOgbTr01i+Hc8A1ocQa0c20MwVrX7E7oXhA==; 24:/olM3kR5AytsB+KNLItwDSPvWfyfrGy7Qk14iOmramPRqUnM+0DRSodz9/fYrAwIzotuufs3930etuYQZ+83pwePZwZ4h/ZP4EwYnz4CzKI=; 20:Tb1llWtSrqg+CTNnsYsPX/zFFtCha5hCi9RhqAZ7PKBc9NTcopSPHrQkRlf/m+E0nx8Zzc3R0gFGac2vORMNiA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2015 02:53:56.8764 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1173 Subject: [meta-fsl-arm][PATCH v2 1/3] pulseaudio: Add PulseAudio configuration and mutex patch X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 02:54:04 -0000 Content-Type: text/plain Fix pulseaudio mutex issue when do pause in gstreamer This fix is a workaround base on the solution from this link "https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/932096" Signed-off-by: Yuqing Zhu --- ...dio-mutex-issue-when-do-pause-in-gstreame.patch | 33 ++++ .../pulseaudio/pulseaudio/daemon.conf | 87 +++++++++++ .../pulseaudio/pulseaudio/default.pa | 170 +++++++++++++++++++++ .../pulseaudio/pulseaudio_%.bbappend | 19 +++ 4 files changed, 309 insertions(+) create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/daemon.conf create mode 100644 recipes-multimedia/pulseaudio/pulseaudio/default.pa diff --git a/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch b/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch new file mode 100644 index 0000000..7b8e98c --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio/0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch @@ -0,0 +1,33 @@ +From c21e24f5c53e81fc715905c54a6c82b69e397e63 Mon Sep 17 00:00:00 2001 +From: "shengjiu.wang" +Date: Thu, 3 Apr 2014 14:22:02 +0800 +Subject: [PATCH] Fix pulseaudio mutex issue when do pause in gstreamer + +The error log is "Assertion 'pthread_mutex_unlock(&m->mutex) == 0' +failed at pulsecore/mutex-posix.c:106, function pa_mutex_unlock(). Aborting" + +This fix is a workaround base on the solution from this link " +https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/932096" + +Upstream Status: Inappropriate [i.MX specific] + +Signed-off-by: shengjiu.wang +--- + src/pulsecore/mutex-posix.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c +index 36c2787..d592501 100644 +--- a/src/pulsecore/mutex-posix.c ++++ b/src/pulsecore/mutex-posix.c +@@ -30,6 +30,7 @@ + #include + + #include "mutex.h" ++#undef HAVE_PTHREAD_PRIO_INHERIT + + struct pa_mutex { + pthread_mutex_t mutex; +-- +1.7.9.5 + diff --git a/recipes-multimedia/pulseaudio/pulseaudio/daemon.conf b/recipes-multimedia/pulseaudio/pulseaudio/daemon.conf new file mode 100644 index 0000000..54854eb --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio/daemon.conf @@ -0,0 +1,87 @@ +# This file is part of PulseAudio. +# +# PulseAudio is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# PulseAudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with PulseAudio; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for +## more information. Default values are commented out. Use either ; or # for +## commenting. + +; daemonize = no +; fail = yes +; allow-module-loading = yes +; allow-exit = yes +; use-pid-file = yes +; system-instance = no +; local-server-type = user +; enable-shm = yes +; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB +; lock-memory = no +; cpu-limit = no + +; high-priority = yes +; nice-level = -11 + +; realtime-scheduling = yes +; realtime-priority = 5 + +exit-idle-time = -1 +; scache-idle-time = 20 + +; dl-search-path = (depends on architecture) + +; load-default-script-file = yes +; default-script-file = /etc/pulse/default.pa + +; log-target = auto +; log-level = notice +; log-meta = no +; log-time = no +; log-backtrace = 0 + +resample-method = ffmpeg +; enable-remixing = yes +; enable-lfe-remixing = no + +flat-volumes = no + +; rlimit-fsize = -1 +; rlimit-data = -1 +; rlimit-stack = -1 +; rlimit-core = -1 +; rlimit-as = -1 +; rlimit-rss = -1 +; rlimit-nproc = -1 +; rlimit-nofile = 256 +; rlimit-memlock = -1 +; rlimit-locks = -1 +; rlimit-sigpending = -1 +; rlimit-msgqueue = -1 +; rlimit-nice = 31 +; rlimit-rtprio = 9 +; rlimit-rttime = 1000000 + +; default-sample-format = s16le +; default-sample-rate = 44100 +; alternate-sample-rate = 48000 +; default-sample-channels = 2 +; default-channel-map = front-left,front-right + +; default-fragments = 4 +; default-fragment-size-msec = 25 + +; enable-deferred-volume = yes +; deferred-volume-safety-margin-usec = 8000 +; deferred-volume-extra-delay-usec = 0 diff --git a/recipes-multimedia/pulseaudio/pulseaudio/default.pa b/recipes-multimedia/pulseaudio/pulseaudio/default.pa new file mode 100644 index 0000000..83a6ba8 --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio/default.pa @@ -0,0 +1,170 @@ +#!/usr/bin/pulseaudio -nF +# +# This file is part of PulseAudio. +# +# PulseAudio is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# PulseAudio is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with PulseAudio; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + +# This startup script is used only if PulseAudio is started per-user +# (i.e. not in system mode) + +.nofail + +### Load something into the sample cache +#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav +#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav +#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav +#load-sample-lazy pulse-access /usr/share/sounds/generic.wav + +.fail + +### Automatically restore the volume of streams and devices +load-module module-device-restore +load-module module-stream-restore +load-module module-card-restore + +### Automatically augment property information from .desktop files +### stored in /usr/share/application +load-module module-augment-properties + +### Should be after module-*-restore but before module-*-detect +load-module module-switch-on-port-available + +### Load audio drivers statically +### (it's probably better to not load these drivers manually, but instead +### use module-udev-detect -- see below -- for doing this automatically) +#load-module module-alsa-sink +#load-module module-alsa-source device=hw:1,0 +#load-module module-oss device="/dev/dsp" sink_name=output source_name=input +#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input +#load-module module-null-sink +#load-module module-pipe-sink + +### Automatically load driver modules depending on the hardware available +.ifexists module-udev-detect.so +load-module module-udev-detect tsched=0 +.else +### Use the static hardware detection module (for systems that lack udev support) +load-module module-detect +.endif + +### Automatically connect sink and source if JACK server is present +.ifexists module-jackdbus-detect.so +.nofail +load-module module-jackdbus-detect channels=2 +.fail +.endif + +### Automatically load driver modules for Bluetooth hardware +.ifexists module-bluetooth-policy.so +load-module module-bluetooth-policy +.endif + +.ifexists module-bluetooth-discover.so +load-module module-bluetooth-discover +.endif + +### Load several protocols +.ifexists module-esound-protocol-unix.so +load-module module-esound-protocol-unix +.endif +load-module module-native-protocol-unix + +### Network access (may be configured with paprefs, so leave this commented +### here if you plan to use paprefs) +#load-module module-esound-protocol-tcp +#load-module module-native-protocol-tcp +#load-module module-zeroconf-publish + +### Load the RTP receiver module (also configured via paprefs, see above) +#load-module module-rtp-recv + +### Load the RTP sender module (also configured via paprefs, see above) +#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'" +#load-module module-rtp-send source=rtp.monitor + +### Load additional modules from GConf settings. This can be configured with the paprefs tool. +### Please keep in mind that the modules configured by paprefs might conflict with manually +### loaded modules. +.ifexists module-gconf.so +.nofail +load-module module-gconf +.fail +.endif + +### Automatically restore the default sink/source when changed by the user +### during runtime +### NOTE: This should be loaded as early as possible so that subsequent modules +### that look up the default sink/source get the right value +load-module module-default-device-restore + +### Automatically move streams to the default sink if the sink they are +### connected to dies, similar for sources +load-module module-rescue-streams + +### Make sure we always have a sink around, even if it is a null sink. +load-module module-always-sink + +### Honour intended role device property +load-module module-intended-roles + +### Automatically suspend sinks/sources that become idle for too long +load-module module-suspend-on-idle + +### If autoexit on idle is enabled we want to make sure we only quit +### when no local session needs us anymore. +.ifexists module-console-kit.so +load-module module-console-kit +.endif +.ifexists module-systemd-login.so +load-module module-systemd-login +.endif + +### Enable positioned event sounds +load-module module-position-event-sounds + +### Cork music/video streams when a phone stream is active +load-module module-role-cork + +### Modules to allow autoloading of filters (such as echo cancellation) +### on demand. module-filter-heuristics tries to determine what filters +### make sense, and module-filter-apply does the heavy-lifting of +### loading modules and rerouting streams. +load-module module-filter-heuristics +load-module module-filter-apply + +### Load DBus protocol +.ifexists module-dbus-protocol.so +load-module module-dbus-protocol +.endif + +# X11 modules should not be started from default.pa so that one daemon +# can be shared by multiple sessions. + +### Load X11 bell module +#load-module module-x11-bell sample=bell-windowing-system + +### Register ourselves in the X11 session manager +#load-module module-x11-xsmp + +### Publish connection data in the X11 root window +#.ifexists module-x11-publish.so +#.nofail +#load-module module-x11-publish +#.fail +#.endif + +### Make some devices default +#set-default-sink output +#set-default-source input diff --git a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend index b9acb36..2afc80f 100644 --- a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +++ b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -1,4 +1,23 @@ CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no" +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI_append = " file://daemon.conf \ + file://default.pa \ + file://0001-Fix-pulseaudio-mutex-issue-when-do-pause-in-gstreame.patch \ +" + +do_install_append() { + install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf + install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa + + #Fix me: Remove the kde desktop, because there are two destop in default + # (pulseaudio-kde.destop, pulseaudio.destop), then the pulseaudio server + # will be started twice, pulseaudio will have issue to switch to default input/output. + if [ -e ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop ] + then + rm ${D}${sysconfdir}/xdg/autostart/pulseaudio-kde.desktop + fi +} + PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -- 1.9.1