{"id":36,"date":"2013-03-10T17:30:00","date_gmt":"2013-03-10T17:30:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=36"},"modified":"2013-03-10T17:30:00","modified_gmt":"2013-03-10T17:30:00","slug":"attaching-a-usb-sound-card-to-the-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=36","title":{"rendered":"Attaching a USB sound card to the Raspberry Pi"},"content":{"rendered":"<p>Since my <a href=\"http:\/\/www.raspberrypi.org\/\">Raspberry Pi<\/a> runs headless, and the analog audio output is not that great, I decided to add a USB sound card to my little machine. I took a <a href=\"http:\/\/www.rolandus.com\/products\/details\/1089\">Roland UA-1G<\/a>, which I was using before on an <a href=\"https:\/\/openwrt.org\/\">OpenWRT<\/a> machine. The device was immediately recognized:<\/p>\n<pre><br \/>Bus 001 Device 007: ID 0582:00ea Roland Corp.<br \/><\/pre>\n<p>However, ALSA will prohibit the card from becoming sound device #0, thus being the default. For that you have to comment out the following line in <tt>\/etc\/modprobe.d\/alsa-base.conf<\/tt>: <\/p>\n<pre><br \/># Keep snd-usb-audio from beeing loaded as first soundcard<br \/>#options snd-usb-audio index=-2<br \/><\/pre>\n<p>After rebooting or restarting ALSA, the Roland will become the default sound device: <\/p>\n<pre><br \/>$ aplay -l<br \/>**** List of PLAYBACK Hardware Devices ****<br \/>card 0: UA1G [UA-1G], device 0: USB Audio [USB Audio]<br \/>  Subdevices: 0\/1<br \/>  Subdevice #0: subdevice #0<br \/>card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]<br \/>  Subdevices: 7\/8<br \/>  Subdevice #0: subdevice #0<br \/>  Subdevice #1: subdevice #1<br \/>  Subdevice #2: subdevice #2<br \/>  Subdevice #3: subdevice #3<br \/>  Subdevice #4: subdevice #4<br \/>  Subdevice #5: subdevice #5<br \/>  Subdevice #6: subdevice #6<br \/>  Subdevice #7: subdevice #7<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Since my Raspberry Pi runs headless, and the analog audio output is not that great, I decided to add a USB sound card to my little machine. I took a Roland UA-1G, which I was using before on an OpenWRT machine. The device was immediately recognized: Bus 001 Device 007: ID 0582:00ea Roland Corp. However, &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=36\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Attaching a USB sound card to the Raspberry Pi&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3,30],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}