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. Audio output on i.Mx6Q board
Forum Updated to NodeBB v4.3 + New Features

Audio output on i.Mx6Q board

Scheduled Pinned Locked Moved Mobile and Embedded
15 Posts 3 Posters 3.1k Views 1 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.
  • V Offline
    V Offline
    vsrk
    wrote on last edited by
    #1

    Hi,

    we custom made i.Mx6Q Freescale board (Cortex A9). I have developed an application, where it will generate synthetic audio from 200Hz to 6KHz (Audio tone changes based on some conditions). when i am running the application on My host machine (RHEL 6.0) it works fine, but running on board it throws an error (unknown PCM).

    So in order to debug i just checked and came to know on board when i run QAudioDeviceInfo::availabledevices().size() is returning zero, so because of this am not able to set default device for audio output. When i run it on host machine its returning more than 0 and able to set default device to play audio.

    To confirm audio codec availability on target board i ran command: cat /proc/asound/cards and it returned with available codec chip SGTL-5000

    I have stuck up in this problem from past one week, there is no break through.

    Any helt would be much appreciated....

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsrk
      wrote on last edited by
      #2

      Please am really stuck up in this, No one knows any solution?

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

        Hi,

        Did you try to run the ALSA tools to ensure the device is running properly ?

        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
        • V Offline
          V Offline
          vsrk
          wrote on last edited by
          #4

          Hi SGaist,
          I played some audio files with aplay. It's working fine and I could listen the audio.
          My hardware guy has provided only Qt 4.6.0 libraries on the board. Because of this lower version any prob?

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

            At first I would say no, but you should ask him whether they customized Qt for the board.

            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
            • V Offline
              V Offline
              vsrk
              wrote on last edited by
              #6

              Hi SGaist,

              I just confirmed with him....He has just taken Qt4.6.0 open source code and built an image with LTIB version L3.0.35_4.1.0, He has not done any customization.

              Thanks for the reply,

              Vsrk

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

                I forgot to ask: what version are you currently using ? Did you check that you have the support enabled when configuring your Qt build ?

                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
                • V Offline
                  V Offline
                  vsrk
                  wrote on last edited by
                  #8

                  On board Qt4.6.0 is used. It was built with LTIB (version L3.0.35_4.1.0). In LTIB not much options, we just selected Qt in config options. Qt4.6.0 is copied in to the packages folder.

                  We have not done any modifications in the Qt source.

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

                    But what would be interesting is to check what options where used by LTIB when configuring Qt.

                    By the way, which version of Qt are you trying to run on the board now ?

                    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
                    • V Offline
                      V Offline
                      vsrk
                      wrote on last edited by
                      #10

                      Am running Qt 4.6.0 on the board.
                      Following are the configurations for qt:

                      ./configure --prefix=$RPM_BUILD_DIR/../../rootfs/usr/local/Trolltech -embedded arm -xplatform qws/linux-g++-mx -release
                      -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -little-endian -host-little-endian -fontconfig -sm -v -opensource -confirm-license $XTRA_OPTS

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

                        Ok… I've misunderstood you a bit.

                        Anyway, now, does the configure output shows that ALSA is detected ?

                        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
                        • V Offline
                          V Offline
                          vsrk
                          wrote on last edited by
                          #12

                          where can i check the configure output? this i need to check in image build log?

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

                            Good question, it's one of the first place I would check

                            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
                            • N Offline
                              N Offline
                              nishad_k
                              wrote on last edited by
                              #14

                              Hello ,

                              This is the hardware guy. :)

                              I does show ALSA support detected.

                              It says something like this

                              alsa support .....................yes

                              is that what i should be looking for??

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

                                Yes it is

                                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