There is a problem with the gstreamer alsa library.
Excuting the following basic command does not work:
"gst-launch alsasrc ! alsasink"
The above statement works on just about every linux system (pc or embedded).
I've tried different BSP from the Freescale site but I get the same issue.
Fyi, I can play and record audio separately using aplay/arecord. I suspect there is something with the alsasink module.
Any ideas anyone?
Assuming you are using Ubuntu...
With the i.mx51, in a previous release I finally got alsasink working in GStreamer by removing pulseaudio. (Google "how to remove pulseaudio") It also helped to add an .asoundrc to my home directory and add this line to it:
pcm.!default plughw:imx3stack
After that Alsa started working.
However, in the latest Efika git release, alsasink works in Gstreamer. I see that pulseaudio and gst-launch use about 30% CPU time when playing audiotestsrc.
Not sure if this is similar - but it seems like the same core function:
We're trying to route the mic or Audio line in (AUDIO_LIN_L/R on MX51EVK) to the line out (speaker out) or hp out and it does not appear that any combination of the MediaPlayer, AudioManager or MediaRecorder can be exploited to perform this function.
Any Thoughts or suggestions anyone?
Thanks for the reply.
I get the same response (msg) as you do. The issue is that it looks like everything is working
but you do not hear any audio. If you execute "gst-launch audiotestsrc ! alsasink" you hear the actual test tone sent to the speaker output. With the previous command you suppose to hear whatever is on the input (mic).
Does your board work when you issue your command?
on the imx281 evk i get the following response
gst-launch alsasrc ! alsasink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
what response is returned on the imx51
i'm running 2.6.35