Sound problem

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
jfs10
Posts: 21
Joined: Fri Aug 21, 2009 4:24 am

Sound problem

Post by jfs10 »

I have read many of the posts related to sound/audio problems but none of the suggestions helped me. In the not too distant past, my setup was working. I recently broke it by needlessly reinstalling everything. Hopefully, that was just a momentary brain lapse.

My problem is that I get no sound at all. The green led on the SYBA usb audio device does not flash when I play something. I did connect the device to my PC to make sure that it was not the problem, and it works just fine.

I used the image from part 4.

Code: Select all

root@OpenWrt:~# uname -a
Linux OpenWrt 2.4.35.4 #3 Mon Dec 1 17:35:57 PST 2008 mips unknown
Here is some output from dmesg

Code: Select all

hub.c: new USB device 00:03.1-1.4, assigned address 4
usbaudio: device 4 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 4 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 48000
usbaudio: valid input sample rate 44100
usbaudio: device 4 interface 2 altsetting 1: format 0x00000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: device 4 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 4 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: valid output sample rate 44100
usbaudio: device 4 interface 1 altsetting 1: format 0x01000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 6 type 0x0301
usbaudio: warning: found 1 of 2 logical channels.
usbaudio: assuming that a stereo channel connected directly to a mixer is missing in search (got Labtec headset?). Should be fine.
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 7 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 80777a20
Here is part of my mpd.conf

Code: Select all

# An example of an OSS output:
#
audio_output {
        type                    "oss"
        name                    "My OSS Device"
        device                  "/dev/sound/dsp"   # optional
        format                  "44100:16:2" # optional
}
Output from lsmod. Looks like I have all of the modules loaded.

Code: Select all

Module            Size  Used by    Tainted: P
usb-storage            69632   1
audio                  47112   0 (unused)
wlcompat                9504   0 (unused)
ehci-hcd               20556   0 (unused)
usb-ohci               19252   0 (unused)
ip_conntrack_tftp       1724   0 (unused)
ip_nat_irc              2360   0 (unused)
ip_conntrack_irc        3140   1
ip_nat_ftp              2984   0 (unused)
ip_conntrack_ftp        4284   1
ipt_MASQUERADE          1316   1
iptable_nat            21000   3 [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state                408   6
ip_conntrack           22576   3 [ip_conntrack_tftp ip_nat_irc ip_conntrack_irc ip_nat_ftp ip_conntrack_ftp ipt_MASQUERADE iptable_nat ipt_state]
sd_mod                 12500   2
ipt_REJECT              3932   2
ipt_TCPMSS              2316   1
ipt_LOG                 3804   0 (unused)
ipt_multiport            748   0 (unused)
ipt_mac                  556   0 (unused)
ipt_limit                892   1
iptable_mangle          2156   0 (unused)
iptable_filter          1676   1
ip_tables              16960  13 [ipt_MASQUERADE iptable_nat ipt_state ipt_REJECT ipt_TCPMSS ipt_LOG ipt_multiport ipt_mac ipt_limit iptable_mangle iptable_filter]
soundcore               4048   3 [audio]
ppp_async               8044   0 (unused)
ppp_generic            22380   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
ext3                   71388   1
jbd                    51152   1 [ext3]
wl                    666224   0 (unused)
usbcore                71296   1 [usb-storage audio ehci-hcd usb-ohci]
scsi_mod               66048   2 [usb-storage sd_mod]
switch-robo             5084   0 (unused)
switch-core             5104   0 [switch-robo]
diag                   48752   0 (unused)
Does anyone have any ideas? Do I need to provide any more information?

thanks
jfs10
Posts: 21
Joined: Fri Aug 21, 2009 4:24 am

Re: Sound problem

Post by jfs10 »

cat /dev/random >/dev/sound/dsp yields nothing. Well, no sound that is. After trying the command, this was in dmesg:
usbaudio: dma timed out??
usbaudio: dma timed out??
usbaudio: dma timed out??

Any ideas?
jfs10
Posts: 21
Joined: Fri Aug 21, 2009 4:24 am

Re: Sound problem

Post by jfs10 »

Not sure why I did not try this before, but I plugged the usb audio device directly into the router and it worked. Not sure was the issue is with my usb hub. When plugged into the hub, the device is recognized as is my memory stick. Again, this is odd because it all worked before. The hub can be powered, so I will try giving it some juice to see if that makes a difference.
jeroen94704
Posts: 109
Joined: Sat Feb 13, 2010 4:27 am
Location: Eindhoven, the Netherlands

Re: Sound problem

Post by jeroen94704 »

Yes, a USB hub can cause these kinds of issues when the host (i.e. you router) cannot provide enough power for all the devices attached to it. So I wouldn't be surprised if powering the hub solves your issue.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Sound problem

Post by mightyohm »

jfs10 wrote:Not sure why I did not try this before, but I plugged the usb audio device directly into the router and it worked. Not sure was the issue is with my usb hub. When plugged into the hub, the device is recognized as is my memory stick. Again, this is odd because it all worked before. The hub can be powered, so I will try giving it some juice to see if that makes a difference.
This isn't the first time I have heard of issues with USB Audio devices and USB hubs. Best to try both with/without the hub, if you really need the hub you might be SOL but I would try a few different hubs first...
Post Reply