RaspbmcCrystalbuntu
|
[Alpha] usb sound cards support for raspbmc
|
|
07-08-2012, 05:12 PM
(This post was last modified: 11-30-2012 12:38 AM by s7mx1.)
Post: #1
|
|||
|
|||
|
[Alpha] usb sound cards support for raspbmc
It finally arrived folks. If you have been patiently waiting for usb sound card/speakers for you pi then its time to get your hands dirty.
Before you are getting too excited here is the warning:
Some background for this built:
I have included most useful pluseaudio addons therefore you should expect most exciting functionality from running pulseaudio on your pc, for example:
Here is the instruction to get it install on your pi. Please login into your pi via ssh/putty as user pi Step1: Install optimised pulseaudio Code: sudo apt-get install libltdl7Step 2: Install AE enabled xbmc As of 2012-11-27 nightly is AE enabled and to install it just go to raspbmc settings addon and install the latest nightly from there. Step3: Configure xbmc to use AE By default AE is turned off and to enable AE we need to go to raspbmc settings addon and go the system settings tab and enable "Audio Engine". Restart XBMC is needed (some user reported back that restart pi is needed in order for it to work) Just to clarify that if audio engine is disabled then xbmc should behave exactly the same as the one of the xbmc nightly. Please also make sure HDMI is selected when audio engine is disabled if you want audio to go from hdmi. USB workaround If your usb 2.0 sound card/speakers produce distorted audio please put this entry into your /boot/cmdline.txt to force the built-in usb hub to run in usb 1.0/1.1 mode Code: dwc_otg.speed=1Digital Passthrough All you need to do is switch to the new multi-sink profile after you usb sound card is detcted (i.e. audio device list is showing other than default) Code: for card in $(pactl list short cards | awk '{print $1}') ; do pactl set-card-profile $card multi-sink;Audio/Video Sync issues
Onboard audio (hdmi/analogue) device With latest RC5 update this is not possible due to problem at compiling kernel alsa driver ===================================== You can enable the experimental alsa driver for the onboard device by Code: sudo modprobe snd-bcm2835Audio/Video sync does not work reliable for the alsa driver snd-bcm2835 and if you experience out of sync at starting of the video you should stop it and then start it again. Do not pause/play too often and too much for alsa driver snd-bcm2835 as this may cause xbmc/pulseaudio to freeze. If this happens you have to restart xbmc. Performance turning I would recommend use "Super" performance profile if you have usb install. Trouble Shootings If you see whitescreen loops then post the results of Code: ldd /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.binIf there is no sound please run the following during audio/video playback Code: pactl list short sinksTo unmute and set volume to full do Code: for sink in $(pactl list short sinks | awk '{print $1}') ; do pactl set-sink-mute $sink 0; pactl set-sink-volume $sink 100%; doneRevert back If for any reasons that it did not work for you its really easy to revert back, just run Code: rm /home/pi/.xbmc-current |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)
Sponsored Advertisement

Member List
Calendar
Help




