When I plug a Logitech USB speaker in R-Pi, I found it does not work in most time. The following is dmesg log. The log message shows that Raspbian recognizes USB speaker, and it creates the 2nd alsa sound card. Then it disconnects speaker right away. At the same time, smsc95xx link is up, down, up again.
This USB speaker in R-Pi works a few times. When USB speaker works, I can play mp3 music . The lsusb command lists this USB speaker correctly. However, it does not work in most time. When it does not work, the lsusb also does not list this usb speaker. The USB speaker is unstable in R-Pi.
R-Pi is powered from a laptop's USB port. I use Raspbian Wheezy. I use mplayer to play mp3.
Thanks.
P.S. dmesg log when I pluged Logitech USB speaker:
Code: Select all
[ 19.322080] ### snd_bcm2835_alsa_probe c05d07a0 ############### PROBING FOR bcm2835 ALSA device (0):(1) ###############
[ 19.348868] Creating card...
[ 19.354416] Creating device/chip ..
[ 19.360870] Adding controls ..
[ 19.366428] Registering card ....
[ 19.381171] bcm2835 ALSA CARD CREATED!
[ 19.393305] ### BCM2835 ALSA driver init OK ###
[ 26.399777] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[ 30.362221] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SS
[ 82.034144] smsc95xx 1-1.1:1.0: eth0: link down
[ 3400.803580] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[ 2038.042093] usb 1-1.2: new full speed USB device number 4 using dwc_otg
[ 2038.147926] usb 1-1.2: New USB device found, idVendor=046d, idProduct=0a04
[ 2038.147961] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2038.148000] usb 1-1.2: Product: Logitech USB Speaker
[ 2038.148019] usb 1-1.2: Manufacturer: Logitech
[ 2038.160442] input: Logitech Logitech USB Speaker as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.2/input/input0
[ 2038.160577] generic-usb 0003:046D:0A04.0001: input: USB HID v1.00 Device [Logitech Logitech USB Speaker] on usb-bcm2708_usb-1.2/input2
[ 2038.321486] usb 1-1.2: USB disconnect, device number 4
[ 2038.428334] usbcore: registered new interface driver snd-usb-audio