[meta-freescale] [meta-fsl-arm][PATCH v2 1/3] pulseaudio: Customize pulseaudio configuration for i.MX6 platforms

Otavio Salvador otavio at ossystems.com.br
Fri Aug 1 06:07:18 PDT 2014


On Fri, Aug 1, 2014 at 3:18 AM, Jun Zhu <R01007 at freescale.com> wrote:
> on i.MX6 seriese boards, some pulseaudio's defualt setting should be

series

default


> modified to improve the user experience:
>  - Daemon's exit_idle_time: set value as -1 to make pulseaudio service
> never be terminated by any user-space apps.
>  - Resample method: switch to the build-in ffmpeg library to improve the
> sound quality.
>  - Flat_Volumes: set value as "no" to align with the normal use case.
>
> These customized configuration would be installed to overwrite the
> original version.
>
> Signed-off-by: Jun Zhu <R01007 at freescale.com>

I am a little unsure about this patch. Let me explain...

Here you /decide/ by user it ought to use ALSA for volume. This has a
considerable risk break someone's application which uses PulseAudio to
manage it and expect it to be used as the default setting.

This is not a BSP thing but a application layer/product option.

What others think?

...
> diff --git a/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
> new file mode 100644
> index 0000000..1774224
> --- /dev/null
> +++ b/recipes-multimedia/pulseaudio/pulseaudio_5.0.bbappend
> @@ -0,0 +1,20 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> +
> +SRC_URI_append_mx6 = " file://daemon.conf \
> +        file://default.pa \
> +"
> +
> +do_install_append_mx6 () {
> +    # FIXME: Install the customized pulseaudio damon setting to overwrite the default one
> +    install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf
> +    install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa
> +
> +    #FIXME: 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
> +}

The .desktop fix is not a BSP one, please work on a proper fix in OE-Core.

-- 
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