I have installed Raspbmc and audio worked fine via HDMI with no additional changes.
Now I have added a Bose Companion 5 speaker set to it, and can detect the sound card following the similar procedure:
pi@raspbmc:~$ cat /proc/asound/cards
0 [Audio ]: USB-Audio - Bose USB Audio
Bose Corporation Bose USB Audio at usb-bcm2708_usb-1.3, full speed
Unfortunately 29 pages of Q&A didn't get me much further (many stories but no convergence towards a successful method).
- I have attempted to remove pulseaudio. No success.
- I attempted to adjust alsamixer. No effect.
- I tried to change modprobe.d using
sudo nano /etc/modprobe.d/alsa-base.conf
settingoptions snd-usb-audio index=0
. No effect. - I have reinstalled pulse audio. No effect.
- The Pi' has plenty of power available, and the bose USB is powered anyway.
- The Bose companion 5 is on and there is a subtle static coming out of the speakers at max volume.
- Kate Beckinsale's is visibly talking on the screen (Whiteout running in the background).
But no sound via the USB.
Does anybody have an idea of how to troubleshoot this, so I can get the image out via HDMI and audio out via USB?
I have also checked the loaded modules using lsmod
, which returns the following:
pi@raspbmc:~$ lsmod
Module Size Used by
bcm2708_wdog 2740 1
ipv6 232892 30
xt_state 660 1
iptable_mangle 736 0
iptable_nat 2408 0
nf_nat 10526 1 iptable_nat
nf_conntrack_ipv4 8768 4 nf_nat,iptable_nat
nf_defrag_ipv4 716 1 nf_conntrack_ipv4
nf_conntrack 51300 4 nf_nat,xt_state,iptable_nat,nf_conntrack_ipv4
iptable_filter 616 1
ip_tables 10480 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 10436 5 ip_tables,xt_state,iptable_filter,iptable_mangle,iptable_nat
snd_usb_audio 94612 1
snd_usbmidi_lib 24056 1 snd_usb_audio
snd_rawmidi 15764 1 snd_usbmidi_lib
snd_hwdep 3900 1 snd_usb_audio
snd_pcm 58784 1 snd_usb_audio
snd_page_alloc 2976 1 snd_pcm
snd_timer 17448 1 snd_pcm
spidev 3932 0
snd 40140 8 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_usbmidi_lib
spi_bcm2708 4380 0
i2c_bcm2708 2872 0
i2c_core 20536 1 i2c_bcm2708
I unplugged the USB cable to the Bose Companion 5 and rebooted. After reboot lsmod
returns the following:
pi@raspbmc:~$ lsmod
Module Size Used by
bcm2708_wdog 2740 1
ipv6 232892 30
xt_state 660 1
iptable_mangle 736 0
iptable_nat 2408 0
nf_nat 10526 1 iptable_nat
nf_conntrack_ipv4 8768 4 nf_nat,iptable_nat
nf_defrag_ipv4 716 1 nf_conntrack_ipv4
nf_conntrack 51300 4 nf_nat,xt_state,iptable_nat,nf_conntrack_ipv4
iptable_filter 616 1
ip_tables 10480 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 10436 5 ip_tables,xt_state,iptable_filter,iptable_mangle,iptable_nat
spidev 3932 0
spi_bcm2708 4380 0
i2c_bcm2708 2872 0
i2c_core 20536 1 i2c_bcm2708
I then re-insert the usb cable and do a lsmod
:
pi@raspbmc:~$ lsmod
Module Size Used by
snd_usb_audio 94612 1
snd_usbmidi_lib 24056 1 snd_usb_audio
snd_rawmidi 15764 1 snd_usbmidi_lib
snd_hwdep 3900 1 snd_usb_audio
snd_pcm 58784 1 snd_usb_audio
snd_page_alloc 2976 1 snd_pcm
snd_timer 17448 1 snd_pcm
snd 40140 8 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_usbmidi_lib
bcm2708_wdog 2740 1
ipv6 232892 30
xt_state 660 1
iptable_mangle 736 0
iptable_nat 2408 0
nf_nat 10526 1 iptable_nat
nf_conntrack_ipv4 8768 4 nf_nat,iptable_nat
nf_defrag_ipv4 716 1 nf_conntrack_ipv4
nf_conntrack 51300 4 nf_nat,xt_state,iptable_nat,nf_conntrack_ipv4
iptable_filter 616 1
ip_tables 10480 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 10436 5 ip_tables,xt_state,iptable_filter,iptable_mangle,iptable_nat
spidev 3932 0
spi_bcm2708 4380 0
i2c_bcm2708 2872 0
i2c_core 20536 1 i2c_bcm2708
To me it seems like the kernel modules are loaded correctly.
Update:
When unplugging the USB cable and rebooting the list of kernel modules contains (lsmod
):
pi@raspbmc:~$ lsmod
Module Size Used by
ipv6 232892 18
xt_state 660 1
iptable_mangle 736 0
iptable_nat 2408 0
nf_nat 10526 1 iptable_nat
nf_conntrack_ipv4 8768 4 nf_nat,iptable_nat
nf_defrag_ipv4 716 1 nf_conntrack_ipv4
nf_conntrack 51300 4 nf_nat,xt_state,iptable_nat,nf_conntrack_ipv4
iptable_filter 616 1
ip_tables 10480 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 10436 5 ip_tables,xt_state,iptable_filter,iptable_mangle,iptable_nat
spidev 3932 0
spi_bcm2708 4380 0
i2c_bcm2708 2872 0
i2c_core 20536 1 i2c_bcm2708
When I insert the USB cable the list of kernel modules contains (lsmod
) with snd modules at the top:
pi@raspbmc:~$ lsmod
Module Size Used by
snd_usb_audio 94612 1
snd_usbmidi_lib 24056 1 snd_usb_audio
snd_rawmidi 15764 1 snd_usbmidi_lib
snd_hwdep 3900 1 snd_usb_audio
snd_pcm 58784 1 snd_usb_audio
snd_page_alloc 2976 1 snd_pcm
snd_timer 17448 1 snd_pcm
snd 40140 8 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_usbmidi_lib
bcm2708_wdog 2740 1
ipv6 232892 30
xt_state 660 1
iptable_mangle 736 0
iptable_nat 2408 0
nf_nat 10526 1 iptable_nat
nf_conntrack_ipv4 8768 4 nf_nat,iptable_nat
nf_defrag_ipv4 716 1 nf_conntrack_ipv4
nf_conntrack 51300 4 nf_nat,xt_state,iptable_nat,nf_conntrack_ipv4
iptable_filter 616 1
ip_tables 10480 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 10436 5 ip_tables,xt_state,iptable_filter,iptable_mangle,iptable_nat
spidev 3932 0
spi_bcm2708 4380 0
i2c_bcm2708 2872 0
i2c_core 20536 1 i2c_bcm2708
sudo amixer cset numid=3 1
(where 1 is for the audio jack (0 is for hdmi)). You might need to do something similar.