Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Yocto with Qt5.5 and alsa support for playing audio
Forum Updated to NodeBB v4.3 + New Features

Yocto with Qt5.5 and alsa support for playing audio

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Escha
    wrote on last edited by
    #1

    Hi,
    I use Yocto (Jethro) to configure a Toradex imx6 board. At first I use pulseaudio for playing audio and gstreamer 1.0 to play videos in QML. As long as I do not play audio and video in the same application everything works well. So I want to use alsa for playing audio too. I removed pulseaudio server and Qt support for pulseaudio in my local.conf Yocto file and add alsa support to Qt. Now videos play well but QML audio finds no audio device. The following alsa packages are installed.
    alsa-conf - 1.0.29-r0
    alsa-conf-base - 1.0.29-r0
    alsa-lib - 1.0.29-r0
    alsa-plugins - 1.0.29-r0
    alsa-state - 0.2.0-r5
    alsa-states - 0.2.0-r5
    alsa-utils - 1.0.29-r0
    alsa-utils-aconnect - 1.0.29-r0
    alsa-utils-alsactl - 1.0.29-r0
    alsa-utils-alsaloop - 1.0.29-r0
    alsa-utils-alsamixer - 1.0.29-r0
    alsa-utils-alsaucm - 1.0.29-r0
    alsa-utils-amixer - 1.0.29-r0
    alsa-utils-aplay - 1.0.29-r0
    alsa-utils-aseqdump - 1.0.29-r0
    alsa-utils-aseqnet - 1.0.29-r0
    alsa-utils-iecset - 1.0.29-r0
    alsa-utils-midi - 1.0.29-r0
    alsa-utils-speakertest - 1.0.29-r0
    fsl-alsa-plugins - 1.0.25-r0
    gstreamer1.0-plugins-base-alsa - 1.4.5-r0
    packagegroup-base-alsa - 1.0-r83

    I found many hints in different forums that pulseaudio is highly integrated in Qt and is not easy to remove. So probably QML uses a wrong default device i.e. a non existent pulseaudio device. Any idea what I can do next?
    My local conf file contains the following extensions:

    LICENSE_FLAGS_WHITELIST = "commercial"

    IMAGE_INSTALL_append = "
    qtbase
    qtbase-fonts
    qtbase-plugins
    qtdeclarative
    qt3d
    qtgraphicaleffects
    qtconnectivity
    qtquickcontrols
    qtquick1
    qtimageformats
    qtenginio
    qtlocation
    qtmultimedia
    qtsensors
    qtscript
    qtserialport
    qtsvg
    qtcanvas3d
    qttranslations
    qtsystems
    qtxmlpatterns
    qttools
    qtwebkit
    alsa-lib
    openal-soft
    alsa-plugins
    gstreamer1.0-libav
    packagegroup-fsl-gstreamer1.0-full
    libid3tag
    lame
    mpeg2dec
    libmpeg2
    gst-fluendo-mp3
    mpg123
    x264
    "
    PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer alsa openal"
    PACKAGECONFIG_remove_pn-qtmultimedia = " pulseaudio"
    PACKAGECONFIG_append_pn-gstreamer1.0-plugins-ugly = "a52dec lame mad mpeg2dec x264"

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved