Usb Audio Dongle in BBB

Hello,

I have some issues with a Usb Audio Dongle (COnrad) in Beaglebone Black.

  1. I connect the Usb Audio Dongle in the BBB.
  2. I run “speaker-test default:Dongle -t sine” to output audio from the dongle.
  3. While the program runs, I hear the audio only in the first period. I don’t hear the rest periods, although there is optical indication (LED light) that the dongle is operating.
  4. I stop the program with Ctrl+C and when I run the above command again, it shows this error:

root@beaglebone:~# speaker-test -D default:Dongle -t sine

speaker-test 1.0.25

Playback device is default:Dongle
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 262144
Period size range from 48 to 131072
Using max buffer size 262144
Periods = 4
Unable to set hw params for playback: Input/output error
Setting of hwparams failed: Input/output error

I have to remove and place back the dongle, in order to retest.

Any ideas?

Thank you,

Maria

Maria,
Are you sure that “default:Dongle” is the correct name for your USB audio device? On one of my setups, the audio devices look like this…

root@VoVBBB3Angstrom0904:~# aplay -L (I think this is a SoX command)
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=Black
TI BeagleBone Black,
Default Audio Device
sysdefault:CARD=Device
Generic USB Audio Device, USB Audio
Default Audio Device
root@VoVBBB3Angstrom0904:~#

I found that I can play an audio howl when using the SoX library like this…
aplay -D “default:CARD=Device” /home/root/audio/wolfhowl.wav

I think it also works in the default Angstrom like this…
ffmpeg -i name.mp3 -f alsa “default:CARD=Device” -re -vol 255

(To install SoX in Angstrom)

opkg update
opkg install sox

I hope you get it to work!
-frenchy

Hello,

I am sorry for the delayed answer.

Sox works like a charm, thank you for the suggestion.

The “aplay” issue hasnt been resolved though, but Sox suits my needs.

As for the card name, “aplay -L” lists this:

root@beaglebone:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Black
TI BeagleBone Black,
Default Audio Device
sysdefault:CARD=Black
TI BeagleBone Black,
Default Audio Device
default:CARD=Dongle
VIA USB Dongle, USB Audio
Default Audio Device
sysdefault:CARD=Dongle
VIA USB Dongle, USB Audio
Default Audio Device

that’s why I used it as “Dongle”

Best Regards,
Maria

Τη Πέμπτη, 28 Νοεμβρίου 2013 8:29:26 π.μ. UTC+2, ο χρήστης Steve French έγραψε: