[meta-freescale] [meta-fsl-arm][PATCH v7] pulseaudio: Add PulseAudio configuration

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Aug 7 06:39:33 PDT 2015


On Thu, Aug 6, 2015 at 11:26 PM, Yuqing Zhu <b54851 at freescale.com> wrote:
> -Use the ffmpeg resample instead of the speex one, since
>  the ffmpeg resampler gives better quality.
>
> -Normally, PulseAudio exits after an application finishes using it.
>  Set exit-idle-time to -1 in the daemon.conf to force it to not exit.
>
> Signed-off-by: Yuqing Zhu <b54851 at freescale.com>
> ---
>  .../pulseaudio/pulseaudio/daemon.conf              |  87 +++++++++++
>  .../pulseaudio/pulseaudio/default.pa               | 170 +++++++++++++++++++++

Move those to imx subdir.

...
> --- a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend
> +++ b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend
> @@ -1,4 +1,24 @@
>
>  CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no"
>
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

New line here.

> +IMX_PATCHES = " file://daemon.conf \
> +                file://default.pa \
> +"
> +SRC_URI_append_mx6 = "${IMX_PATCHES}"
> +SRC_URI_append_mx7 = "${IMX_PATCHES}"
> +
> +do_install_append() {

if [ -n "${IMX_PATCHES}" ]; then

> +    install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf
> +    install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa

fi

> +    #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
> +}

We need to fix this in the original pulseaudio recipe, this is not SoC
specific and someone might want to use KDE.

>  PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}"

Also add mx7 here.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list