USB Audio adapter gives error when playing 2nd sound - Raspberry Pi Forums


i bought usb audio adapter, https://www.adafruit.com/products/1475. following adafruit tutorial - https://learn.adafruit.com/usb-audio-ca ... spberry-pi - able work in couple of minutes. when try play 2 sounds @ same time, following error:

aplay: main:722: audio open error: device or resource busy

if googled error on internet , found lot of links, couldn't find solution. apparently need setup dmix device in alsa config. couldn't make sense of it. , other links told me dmix should enabled default.

installed on latest rasbian jessie release , hoping can problem. use mopidy. plays it's sound through usb sound adapter. can't play other sound when mopidy playing stream.

obliged.

not sure if helps. but

here's /etc/asound.conf

code: select all

pcm.!default {         type hw         card 1 } ctl.!default {         type hw         card 1 }
result of lusb

code: select all

bus 001 device 007: id 0781:5567 sandisk corp. cruzer blade bus 001 device 005: id 0d8c:000c c-media electronics, inc. audio adapter bus 001 device 009: id 1a86:7523 qinheng electronics hl-340 usb-serial adapter bus 001 device 008: id 05e3:0608 genesys logic, inc. usb-2.0 4-port hub bus 001 device 006: id 05e3:0608 genesys logic, inc. usb-2.0 4-port hub bus 001 device 004: id 05e3:0608 genesys logic, inc. usb-2.0 4-port hub bus 001 device 003: id 0424:ec00 standard microsystems corp. smsc9512/9514 fast ethernet adapter bus 001 device 002: id 0424:9514 standard microsystems corp.  bus 001 device 001: id 1d6b:0002 linux foundation 2.0 root hub 
, aplay -l

code: select all

**** list of playback hardware devices **** card 0: alsa [bcm2835 alsa], device 0: bcm2835 alsa [bcm2835 alsa]   subdevices: 7/8   subdevice #0: subdevice #0   subdevice #1: subdevice #1   subdevice #2: subdevice #2   subdevice #3: subdevice #3   subdevice #4: subdevice #4   subdevice #5: subdevice #5   subdevice #6: subdevice #6   subdevice #7: subdevice #7 card 0: alsa [bcm2835 alsa], device 1: bcm2835 alsa [bcm2835 iec958/hdmi]   subdevices: 1/1   subdevice #0: subdevice #0 card 1: set [c-media usb headphone set], device 0: usb audio [usb audio]   subdevices: 0/1   subdevice #0: subdevice #0
, aplay -l

code: select all

null     discard samples (playback) or generate 0 samples (capture) pulse     pulseaudio sound server sysdefault:card=alsa     bcm2835 alsa, bcm2835 alsa     default audio device dmix:card=alsa,dev=0     bcm2835 alsa, bcm2835 alsa     direct sample mixing device dmix:card=alsa,dev=1     bcm2835 alsa, bcm2835 iec958/hdmi     direct sample mixing device dsnoop:card=alsa,dev=0     bcm2835 alsa, bcm2835 alsa     direct sample snooping device dsnoop:card=alsa,dev=1     bcm2835 alsa, bcm2835 iec958/hdmi     direct sample snooping device hw:card=alsa,dev=0     bcm2835 alsa, bcm2835 alsa     direct hardware device without conversions hw:card=alsa,dev=1     bcm2835 alsa, bcm2835 iec958/hdmi     direct hardware device without conversions plughw:card=alsa,dev=0     bcm2835 alsa, bcm2835 alsa     hardware device software conversions plughw:card=alsa,dev=1     bcm2835 alsa, bcm2835 iec958/hdmi     hardware device software conversions sysdefault:card=set     c-media usb headphone set, usb audio     default audio device front:card=set,dev=0     c-media usb headphone set, usb audio     front speakers surround21:card=set,dev=0     c-media usb headphone set, usb audio     2.1 surround output front , subwoofer speakers surround40:card=set,dev=0     c-media usb headphone set, usb audio     4.0 surround output front , rear speakers surround41:card=set,dev=0     c-media usb headphone set, usb audio     4.1 surround output front, rear , subwoofer speakers surround50:card=set,dev=0     c-media usb headphone set, usb audio     5.0 surround output front, center , rear speakers surround51:card=set,dev=0     c-media usb headphone set, usb audio     5.1 surround output front, center, rear , subwoofer speakers surround71:card=set,dev=0     c-media usb headphone set, usb audio     7.1 surround output front, center, side, rear , woofer speakers iec958:card=set,dev=0     c-media usb headphone set, usb audio     iec958 (s/pdif) digital audio output dmix:card=set,dev=0     c-media usb headphone set, usb audio     direct sample mixing device dsnoop:card=set,dev=0     c-media usb headphone set, usb audio     direct sample snooping device hw:card=set,dev=0     c-media usb headphone set, usb audio     direct hardware device without conversions plughw:card=set,dev=0     c-media usb headphone set, usb audio     hardware device software conversions 


raspberrypi



Comments