Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Audio output on i.Mx6Q board
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....
Please am really stuck up in this, No one knows any solution?
Did you try to run the ALSA tools to ensure the device is running properly ?
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?
At first I would say no, but you should ask him whether they customized Qt for the board.
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,
I forgot to ask: what version are you currently using ? Did you check that you have the support enabled when configuring your Qt build ?
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.
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 ?
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
Ok… I've misunderstood you a bit.
Anyway, now, does the configure output shows that ALSA is detected ?
where can i check the configure output? this i need to check in image build log?
Good question, it's one of the first place I would check
nishad_k last edited by
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??
Yes it is