Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 09FB7E00A80; Tue, 28 Jul 2015 04:18:47 -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 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [207.46.100.114 listed in list.dnswl.org] * -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 * -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-by2on0114.outbound.protection.outlook.com [207.46.100.114]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E1C2BE00AA2 for ; Tue, 28 Jul 2015 04:18:37 -0700 (PDT) Received: from DM2PR03CA0044.namprd03.prod.outlook.com (10.141.96.43) by BY1PR0301MB1175.namprd03.prod.outlook.com (10.160.195.146) with Microsoft SMTP Server (TLS) id 15.1.225.19; Tue, 28 Jul 2015 11:18:34 +0000 Received: from BN1AFFO11FD038.protection.gbl (2a01:111:f400:7c10::164) by DM2PR03CA0044.outlook.office365.com (2a01:111:e400:2428::43) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Tue, 28 Jul 2015 11:18:34 +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 BN1AFFO11FD038.mail.protection.outlook.com (10.58.52.242) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Tue, 28 Jul 2015 11:18:34 +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 t6SBITrD011510; Tue, 28 Jul 2015 04:18:32 -0700 From: Yuqing Zhu To: Date: Wed, 29 Jul 2015 03:18:11 +0800 Message-ID: <1438111093-29138-2-git-send-email-b54851@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438111093-29138-1-git-send-email-b54851@freescale.com> References: <1438111093-29138-1-git-send-email-b54851@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD038; 1:JGVTV4MSqjN6L6CJmYrqJMXLgithzk7XpGx23/ogFz0SExV+ttHuINODMKayf4Ons3eqUxNEADOSDhANPylQYAlZVcovIsH401BDetT1EYwVUhd5Ml8CB/i04Kp2cuAIC0fLD1rm0k2BrpkXDQ9ooZ4U719jNjRCOxlvK7XWYhwG4Bf+g+coCOjs2SZcBjCREeJ5FBPo37bk1Kj6wmFF4Sa7wVvTlW6pVcR6VOPAyFBPTdoiFtmbTVQQ5XzKjrViTmMx8s/+iGFdXFjqT9KYpfRdqqLyZUaO9lwVWP86JnxD1PUY7SJ0JwPF3+TVPdBGULBg8r1TMyTzYywMtjqxdA== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(85426001)(33646002)(50226001)(106466001)(92566002)(47776003)(189998001)(2950100001)(50466002)(110136002)(19580405001)(5001960100002)(77096005)(19580395003)(6806004)(107886002)(46102003)(76176999)(86362001)(48376002)(50986999)(62966003)(450100001)(36756003)(575784001)(77156002)(87936001)(2351001)(229853001)(230783001)(104016003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB1175; 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; BY1PR0301MB1175; 2:mHvd33Ik4TLK7PJovkMfVGPMDtJgj5Hv5ztprz+oB4xqNXoNFsoIHF8rQJct+x8CZEOFzZz0SK249FjBMggzJT8zXH4dIsqcehF5Ab7ezvQVDsqdh+YFD7DH7qb/uWNLhuQY0yE8LpUiH6EEoyebWKzBCVlJohfK6n/y8zVu+Ms=; 3:hb0vKYyHcBfkm1b2hDWm9640fWnlr2hMxMEeyCza2FR/7W/DOkHeRib83OTfE6jHB8Y4c+2jtIsl+LJaYQcLNWK57ZKa1WCeMiyurr1ufZjK7j8QrIQQPVY8kZqyefjCCv57fnl/vcgB9nadK7Q8AU1AtHgietLLxZ3Z65RPR+k57wdwocWE7ZIuEgBv+VkuzWWcZdMzMvdAaE9XbYIoiK5oeGlMDKOaOQK4ZxiN0jo=; 25:OA7LMtPuohZr3+vy30WLhhiRzDJ2lHjmd8sjWJLo4OUbJn4mpVs2OfYaoXMPsgaUwf+D+uRUMGPyaVMGP/GnWI7t0ooedmBXpUe4cFGFV9doJGlNii/ZbGS5lXcrS1MGIzTAvCR57wSEiOetcjBNqFmIutJ5C6JP4jy86UqPpa7LxMgqW5MC0XS3G1D/g1wACDqaPvgCdvbn0/00U8APbQeu+RL2uIFdmdzo7ItntuSASDhi4jmlZGnVXDJhKqa16Q37nfmGJJu2andQcReoBQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1175; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1175; 20:PFSIzxIYrq4ox+9E6bmWrr+bWyq+X2TEs3F2+DBxK8+jS5EMLkmDiJBPBy7zqok5MDIMi1y8ievZdSNjny9T0yTu+u3qab2gZKqQJHdr9ZzFF34NBN7sebCPeDISgt6gaQreQ4eW7O0IQ+P0bOnJYfojWjahdHW1d3kIy64JCcx16VTENme46Xn3GoFb8NstABfcYANdjgJ0v9oR5wbCiWhPRqrKOFXqg94bGskC0RMHWo2sCWBcCFMffKi6gLjLRyr7auALBcRBhYEqUgycManNBhLLnd6YVvlqvz73Wy4/rwJiouYh7yGY+FCb6hpxCCiNnmQY5ABjMOpmUP5ESEPyvFv8APewaTqe3n+rXxU=; 4:rAdbbsBR3X46Qhndj2ay27flFIlaii3avAwHJWmSlaaEgbN1/DaDmMqvrtUZ5fL1AN+0RHinQNGpKJf06Uafa6uaDsL9rB0C2asewQ6x6JnyeqGXvT0OQ6T1sK36dyLY6f3Fd+yWILBKgwESrlD6ss3/ZMa5IshsCuv1OPTM8bWCU5BDQcLZeUcZV5gw8LmDBjtfFpu9jYYpedMVjVsHLVg+0Ama/Y2mxA+oXYTF5ZT2OaC4qDsZ6chay2+hvfpo9XKuMZowFYPUNxpisN5Z9gGAuNEXA41096bM/uiTq5Y= BY1PR0301MB1175: 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:BY1PR0301MB1175; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB1175; X-Forefront-PRVS: 06515DA04B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB1175; 23:RY1o10qn3s5+ZtACQU1pwljKKaoQpLREpQHkgZA?= =?us-ascii?Q?ypi84cW20SnCao64DKIp99qZ/0zV0wUoINTO7Tv5PYF7oBf1j14YQ4UQXooy?= =?us-ascii?Q?wZEDu0iau3eW3+g1Nm6HCV8JNhq74OJYkSmB3b72TVhQqUa28TMtEzJywiEB?= =?us-ascii?Q?u+raXsHv5dGztK0z+UbRVWwLjhdWKQNQnLJ39+F8llROXAhZTNpr7YvawHsr?= =?us-ascii?Q?77+yjyhbMsa4S9RAwwlcCEg3kD8/fD2NoNbbj2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MPYc8l1CqCaSp2GvO2kHyCPCtfXfT2jfOEPKYBN2n7tATWmdoDFR9GMrbKA==; 24:iG6RJFTWmHT/72AG1wHzwD7gDFpGPb9l2nT7ocT9gor8Rme8f2Dk1mW5yAZhI29ZBSXEh7SjDAY3mDErH3yAnwmntKd3nTGDTdWbjeVF+Og=; 20:iUAnw3WmOCKnNNezjIla3PTj4X1nmMl9ZSvKDHorBie9zqjFOEJEMB7hCNcdlpGD2vkMzPgKI8hSte9arEcQYg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2015 11:18:34.0725 (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: BY1PR0301MB1175 Subject: [meta-fsl-arm][PATCH v3 1/3] pulseaudio: Add PulseAudio configuration 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: Tue, 28 Jul 2015 11:18:47 -0000 Content-Type: text/plain Set ffmpeg as resample method Set exit idle time as -1 to force it not to exit Signed-off-by: Yuqing Zhu --- .../pulseaudio/pulseaudio/daemon.conf | 87 +++++++++++ .../pulseaudio/pulseaudio/default.pa | 170 +++++++++++++++++++++ .../pulseaudio/pulseaudio_%.bbappend | 17 +++ 3 files changed, 274 insertions(+) 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/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..57b0b3b 100644 --- a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +++ b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -1,4 +1,21 @@ CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no" +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI_append = " file://daemon.conf \ + file://default.pa \ +" +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