I am working with a beaglebone black + ezsdk 7. I have an usb audio card, and I would need to play audio by this card. It works once, the second it crashes. The followng is what happens:
root@am335x-evm:~# cat /proc/asound/cards
0 [Device ]: USB-Audio - C-Media USB Audio Device
C-Media USB Audio Device at usb-musb-hdrc.1.auto-1.4, full speed
If I run the audio example that I have found in matrix(AAC Decode) it shows:
amixer: Cannot find the given element from control default.
Length of audio clip: 18 segonds
aunch Gstreamer pipeline
Setting pipeline PAUSED
Setting pipeline PREROLLED
New clock: GstAudioSinClick
Got EOS from element “pipeline0”
Execution ended after..
Setting pipeline to PAUSED
And then I can hear the audio
If I run it again:
I shows:
amixer: Cannot find the given element from control default.
Length of audio clip: 18 segonds
aunch Gstreamer pipeline
Setting pipeline PAUSED
Setting pipeline PREROLLED
New clock: GstAudioSinClick
It doesn´t reproduce the audio any more.
If I use gstreamer from command line the behaviour is the same and the console hanged, the only way to get out of there is ctrl+c.
I can run amixer from command line:
root@am335x-evm:~# amixer
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 44 [29%] [-20.13dB] [on]
Front Right: Playback 44 [29%] [-20.13dB] [on]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Playback 0 - 32 Capture 0 - 16
Mono: Playback 0 [0%] [0.00dB] [off] Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]