Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt application oniMX8 does not recognize USB microphone as audio input device
Forum Updated to NodeBB v4.3 + New Features

Qt application oniMX8 does not recognize USB microphone as audio input device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 317 Views 2 Watching
  • 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.
  • P Offline
    P Offline
    Portilha
    wrote on last edited by
    #1

    Hello, I am currently working with an Qt application on an iMX8 board using an yocto image and kernel version 5.15. I want to use a small USB microphone for audio input, however when using QAudioDeviceInfo to list my devices, the usb microphone does not seem to appear on board. However, if I run the same application on my pc the microphone appears under the name:

    Device name: "alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-mono"
    Supported sample rates: (8000, 11025, 22050, 44100, 48000)
    Supported channel counts: (1, 2, 4, 6, 8)
    Supported sample sizes: (8, 16, 24, 32)

    Using the arecord -l command on the board the microphone is recognized and I can sucessfuly record audio with it, only Qt does not recognize. This is my local.conf file from yocto:

    EXTRA_IMAGE_FEATURES += "debug-tweaks"
    EXTRA_IMAGE_FEATURES += "ssh-server-dropbear"
    EXTRA_IMAGE_FEATURES += "tools-debug"
    EXTRA_IMAGE_FEATURES += "dev-pkgs"

    IMAGE_INSTALL:append = " qtbase qtbase-plugins qttools qtquickcontrols2 qtwayland qtconnectivity qtsvg qtmultimedia qtmultimedia-plugins qtx11extras qtdeclarative"
    IMAGE_INSTALL:append = " boost"
    IMAGE_INSTALL:append = " libgusb"
    IMAGE_INSTALL:append = " openssl"
    IMAGE_INSTALL:append = " protobuf"
    IMAGE_INSTALL:append = " protobuf-c"
    IMAGE_INSTALL:append = " gstreamer1.0 gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly"
    IMAGE_INSTALL:append = " opengl-es-cts"
    IMAGE_INSTALL:append = " glib-2.0"
    IMAGE_INSTALL:append = " zlib"
    IMAGE_INSTALL:append = " librtaudio"
    IMAGE_INSTALL:append = " grpc"
    IMAGE_INSTALL:append = " gpsd"
    IMAGE_INSTALL:append = " liberation-fonts"

    IMAGE_INSTALL:append = " kernel-module-imx-gpu-viv"
    IMAGE_INSTALL:append = " imx-gpu-viv"

    IMAGE_INSTALL:append = " alsa-lib"
    IMAGE_INSTALL:append = " alsa-plugins"
    IMAGE_INSTALL:append = " alsa-utils"
    IMAGE_INSTALL:append = " alsa-tools"
    IMAGE_INSTALL:append = " pulseaudio"

    IMAGE_INSTALL:append = " imx-test"

    PACKAGECONFIG_FONTS:append_pn-qtbase = " fontconfig"
    PACKAGECONFIG:append_pn-qtmultimedia = " gstreamer alsa pulseaudio"

    DISTRO_FEATURES:append = " wayland"
    DISTRO_FEATURES:append = " alsa"
    CORE_IMAGE_EXTRA_INSTALL += " wayland weston"

    TOOLCHAIN_HOST_TASK:append = " nativesdk-cmake"
    TOOLCHAIN_HOST_TASK:append = " nativesdk-protobuf"
    TOOLCHAIN_HOST_TASK:append = " nativesdk-protobuf-compiler"
    TOOLCHAIN_HOST_TASK:append = " nativesdk-pkgconfig"

    LICENSE_FLAGS_ACCEPTED = "commercial"

    Does anyone know what could be missing or why Qt is not recognizing the microphone as it does on PC?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Your configuration seems to indicate you have a commercial license hence you should contact the Qt Company for support.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Portilha
        wrote on last edited by
        #3

        Hello,

        The "commercial" flag is need in order to build some recipes such as the "gstreamer" ones. It does not affect Qt packages.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which version of Qt are you deploying ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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