In pulseaudio, module-suspend-on-idle controls how much time a sink spends
in the 'idle' state before going to 'suspended'. This means the ALSA device
associated with the sink stays busy for a few seconds after loading or using
the sink.
This commit adds the timeout=0 parameter when loading module-suspend-on-idle.
Now the sink will go to the 'suspended' state right after being loaded or used.
https://jira.digi.com/browse/DEL-2218
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
On boot, pulseaudio looks for the sound cards' corresponding profile sets, and
uses a default configuration if none is found. This was causing pulseaudio to
take up to 5 seconds trying every possible default profile.
This commit fixes this by creating a specific profile set for each of the sound
cards on the ccimx6sbc so pulseaudio doesn't spend time trying different
profiles that don't apply to our platform. It also adds udev rules so
pulseaudio knows which configuration to load for each card.
https://jira.digi.com/browse/DEL-2218
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
The HDMI hotplug script required alsa-utils to be installed in order to work.
This commit avoids this by adding a recipe for a small binary that replaces
aplay in the script.
https://jira.digi.com/browse/DEL-3482
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
The CC6UL has little video capabilities and reduced storage memory so lets
remove gstreamer plugins included in -bad and -ugly to reduce the rootfs
size.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
https://jira.digi.com/browse/DUB-713
When hotplugging the HDMI cable after booting the target, pulseaudio doesn't
load the HDMI sink. This commit fixes this by adding a udev rule and a script
that prompts pulseaudio to detect the HDMI sound card and load its sink, as
well as making it the default one.
If alsa-utils is available, a faulty command is run to load the card without
any audio output. Otherwise, module-udev-detect is unloaded and reloaded.
This is based on commit fca507d316.
https://jira.digi.com/browse/DEL-2327
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
Some platforms, like ccimx6ulsbc, don't support jack detection
out of the box.
PulseAudio will mute the Headphones by default if it believes
there is no headphones jack plugged-in. With this patch we
tell it to preserve ALSA default value for the headphones
controls.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
https://jira.digi.com/browse/DEL-3435
The ccimx6ul does not have a GPU, so opengl based gstreamer sink will
not work. Thus apply the patch only for the CCIMX6.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Using module-detect there are some audio reverb problems. Reverting that commit
will make pulseaudio use module-udev-detect again instead, which takes longer
to initialize but does not have that problem.
This reverts commit e021f738ee.
https://jira.digi.com/browse/DEL-2587
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
When module-alsa-sink is used, the audio is sometimes heard with
reverb. We will go back to module-udev-detect, so the functionality
introduced in the commit being reverted won't longer work.
This reverts commit fca507d316.
https://jira.digi.com/browse/DEL-2587
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
The ccimx6ul or ccardimx28 do not have hdmi interface, so do not install the
hdmi hotplug script.
https://jira.digi.com/browse/DEL-2654
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This patch adds a udev rule and a script to detect HDMI hotplug and create
the HDMI audio pulseaudio sink if needed (that is, if the system was
booted with no HDMI cable plugged).
https://jira.digi.com/browse/DEL-2327
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
module-udev-detect blocks the sound interface on boot for about five
seconds while detecting the hardware. This patch removes it so that
module-detect is used instead, which uses static hardware detection and is
faster.
https://jira.digi.com/browse/DEL-2218
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
Also initialize the video sink to 'glimagesink' in case it has not been
configured from the environment, but only for the X11 application
(gtk-play). This recipe also provides a command line application for
framebuffer (gst-play) that is not affected by this change.
https://jira.digi.com/browse/DEL-2132
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
The example applications are not packaged by default, so extend the
recipe to create a package with the example applications.
https://jira.digi.com/browse/DEL-1960
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Patches from 'meta-fsl-bsp-release' branch 'fido_3.14.38_6UL_patch'.
https://jira.digi.com/browse/DEL-1992
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Patches from 'meta-fsl-bsp-release' branch 'fido_3.14.38_6UL_patch'.
https://jira.digi.com/browse/DEL-1992
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Patches from 'meta-fsl-bsp-release' branch 'fido_3.14.38_6UL_patch'.
https://jira.digi.com/browse/DEL-1992
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Patches from 'meta-fsl-bsp-release' branch 'fido_3.14.38_6UL_patch'.
https://jira.digi.com/browse/DEL-1992
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Also remove QT4 phonon patches and qtmediaplayer demo as they depend on
gstreamer-0.10.
https://jira.digi.com/browse/DEL-1890
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This reverts commit f7e2e8bd2c.
FSL has updated this package to version v4.0.7 in meta-fsl-arm.
https://jira.digi.com/browse/DEL-1890
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This reverts commit d4fb6a238e.
The patch we were backporting to alsa-utils 1.0.28 is included in
alsa-utils 1.0.29 (which is used in Yocto 2.0).
https://jira.digi.com/browse/DEL-1890
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
The mutex locking was not well resolved and a basic pipeline like:
gst-launch-1.0 playbin uri=file:///run/media/mmcblk0p5/big_buck_bunny_480p_h264.mov
was failing with:
Attempt to unlock mutex that was not locked
https://jira.digi.com/browse/DEL-1850
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Duration (-d) option was broken.
cherry pick from 8f361d83cfcb39887f5fc591633e68d9448e3425.
https://jira.digi.com/browse/DEL-1828
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This is now needed in yocto 1.7. Otherwise it fails with:
ERROR: Please ensure recipe packagegroup-dey-gstreamer.bb sets PACKAGE_ARCH before inherit packagegroup
ERROR: Please ensure recipe packagegroup-dey-examples.bb sets PACKAGE_ARCH before inherit packagegroup
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
In Yocto Daisy mplayer is not supported. Trying to build it fails with:
ERROR: Nothing PROVIDES 'mplayer'
ERROR: mplayer2 PROVIDES mplayer but was skipped: Recipe is blacklisted: Requires newer libav which has negative D_P
This is because it has been blacklisted in commit:
http://cgit.openembedded.org/meta-openembedded/commit/?id=2e7f3ce93b2c9864037fba8cc68fde46aafac4b0
The reason is that is has a build-time dependence on libav being newer
than the one provided by Yocto.
We don't use mplayer on ccimx6 as it has accelerated video using
gstreamer, so just remove the bbappend for this release.
Probably we need to revisit this when we upgrade our ccardimx28 support
to new versions of Yocto and upstream has removed the recipe from the
blacklist.
https://jira.digi.com/browse/DEL-1075
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This cleans following warning:
Use of PRINC is deprecated.
The PR server should be used to automatically increment the PR.
See: https://wiki.yoctoproject.org/wiki/PR_Service
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Give priority to FSL AAC decoder over others from the community when
using gstreamer's playbin2 or gplay
This allows to play some videos that fail otherwise.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Without the fix if we only configure *one* display in the vssconfig file
(i.e. we set just one entry in that file) the patch was discarding that
configuration and overwriting the configuration with dual display
defaults.
But configuring a single display in vssconfig should be doable, so fix
the patch to allow that.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
We found that the gst-fsl-plugin package from Yocto is not exactly the
same than the one we used in DEL even though they have the same
version.
We think the one we used in DEL (released by FSL via LTIB) is more
recent and has some fixes, so create a first patch that applies on top
of the one in Yocto and convert it to the one in DEL.
Also instead of appending new patches to meta-fsl-arm SRC_URI, override
completely the variable and add the patches from meta-fsl-arm layer in
our own layer.
The final result is: we use the yocto tarball, then apply a first patch
that converts it to the one in DEL/LTIB, then apply the patches from
meta-fsl-arm and finally the ones added by us.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Also remove 'gplay' utility from dey-image-graphical. It's a command
line application suitable to be used on minimal (non-X) images.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Fix the patch that adds support to select the framebuffer for
mfw_v4lsink. This used to work on non-graphical images (non-X), but it
had the side effect of breaking playing accelerated videos on graphical
images (using X) with graphica applications (QT, GTK).
This fix simplifies the patch so it still adds the dual display
functionality while not breaking the graphic media player applications.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Disable integer vorbis plugin as it conflicts with other vorbis
plugins. Error:
error: GLib-GObject-WARNING **: cannot register existing type `GstVorbisDec'
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
We are now using the standard yocto kernel headers so the patch to build
the plugin with new kernel headers is not needed.
The rest of the changes in the bbappend (removing gconf dependence) were
needed in yocto-danny, but not in yocto-dylan because the gconf package
does not depend on libx11 anymore.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Alsa-utils tools once compiled are distributed between a bunch of
different subpackages. Then 'alsa-utils' as a final package is just
a meta-package that depends on all of the different subpackages.
So instead of RDEPEND'ing on the alsa-utils metapackage, depend on just
a few of the alsa-utils subpackages.
This removes for example the 'alsa-utils-alsaconf' package that was
bringing bash into our rootfs.
Removing bash solves the problem of the lines-not-wrapped on the serial
console because now we use busybox' shell in the serial console.
https://jira.digi.com/browse/DEL-610
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
In function 'gst_v4l2_fill_lists':
error: 'V4L2_CID_HCENTER_DEPRECATED' undeclared (first use in this function)
error: 'V4L2_CID_VCENTER_DEPRECATED' undeclared (first use in this function)
https://jira.digi.com/browse/DEL-585
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
The bbappend was only cleaning-up some bitbake warnings. A patch has
been accepted upstream (meta-fsl-arm) to do the same.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
The MACHINE_ESSENTIAL_EXTRA_* vars need to be only in the
'packagegroup-dey-core' recipe not in the rest of the packagegroups.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>