Trying to add USB audio device to BBB. I am running this headless - no HDMI display, no direct keyboard or mouse. USB audio device is C-Media. Have a powered USB hub. Have an Arduino board connected by USB but don’t think it affects this issue. USB audio device is seen by aplay -l and aplay -L but trying to use it doesn’t work and usually hangs the system requiring a power cycle. System is for Asterisk VOIP and from here:
http://beaglebone-asterisk.raspbx.org/
root@raspbx:~# uname -a
Linux raspbx 3.14.37-ti-r57 #1 SMP PREEMPT Sat Apr 4 06:18:14 UTC 2015 armv7l armv7l armv7l GNU/Linux
root@raspbx:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Black [TI BeagleBone Black], device 0: HDMI hdmi-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@raspbx:~#
root@raspbx:~# 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
dmix:CARD=Black,DEV=0
TI BeagleBone Black,
Direct sample mixing device
dsnoop:CARD=Black,DEV=0
TI BeagleBone Black,
Direct sample snooping device
hw:CARD=Black,DEV=0
TI BeagleBone Black,
Direct hardware device without any conversions
plughw:CARD=Black,DEV=0
TI BeagleBone Black,
Hardware device with all software conversions
default:CARD=Device
C-Media USB Audio Device, USB Audio
Default Audio Device
sysdefault:CARD=Device
C-Media USB Audio Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Front speakers
surround40:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Hardware device with all software conversions
root@raspbx:~#
As an attempt to test I ran:
root@raspbx:/opt/jimscripts# speaker-test -D default:Device
speaker-test 1.0.27.2
Playback device is default:Device
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
At this point the system hung and I had to power cycle.
I edited /boot/uboot/eEnv.txt to disable HDMI audio so USB is default audio but this didn’t seem to help. Current line in that file is:
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
What should I be looking at/doing? Any help is appreciated.