Continuous beep from mpd

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
stewpert
Posts: 5
Joined: Sun May 02, 2010 4:43 pm

Continuous beep from mpd

Post by stewpert »

Hey all,

So I've gotten as far as installing mpd and connecting to the slayradio stream using mpc. Unfortunately all that comes out of my usbb audio adaptor is a continuous beep. I've followed the instructions posted by Stig Hess in the comments section of part 5, but after executing -
opkg install kmod-alsa

I get an error -
* Packages were found, but none compatible with the architectures configured

Has anyone else encountered this problem? Any advise?

Thanks in advance,
Stew

Ps. Can I just add that the this project has provided much excitement thus far =)
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Continuous beep from mpd

Post by mightyohm »

Are you using a WL-520gU router? What USB-audio adapter? Are you using a hub to connect it or connecting it directly to the router?

What version of the firmware are you using? The one that I use in the tutorial, or a custom build from somewhere else?

What does your opkg.conf look like?

I don't recall needing kmod-alsa to get mpd working, but you're right, it appears that some audio adapters need it.
stewpert
Posts: 5
Joined: Sun May 02, 2010 4:43 pm

Re: Continuous beep from mpd

Post by stewpert »

Yes I'm usng a WL-520gU. I followed the instructions exactly and used the firmware you provided.
No hub, connecting directly, but it is a cheap ebay usb adaptor.

opkg.conf looks like -
src/gz snapshots http://downloads.openwrt.org/snapshots/ ... 4/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
stewpert
Posts: 5
Joined: Sun May 02, 2010 4:43 pm

Re: Continuous beep from mpd

Post by stewpert »

After installing kmod-usb-audio and kmod-usb-ohci, I get the following output on reboot....

usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:03.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x1130/0xf211) is not claimed by any active driver

I've just noticed that this is different than the output you got! My audio usb adaptor also has a microphone line in connection. Perhaps this explains the '2 ports detected'? Worst case I can just buy an adaptor that works but it would cool to get this one going!

Chrs
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Continuous beep from mpd

Post by mightyohm »

You need to modify opkg to point to the package repository on mightyohm.com - the instructions are in the tutorial. This is why you are getting the architecture error when you try to install kmod-alsa.

It seems like your USB audio device might not be supported by the kernel, based on the error "USB device 2 (vend/prod 0x1130/0xf211) is not claimed by any active driver".
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Continuous beep from mpd

Post by ilinux »

Try wrtradio firmware here:

viewtopic.php?f=2&t=141
nagyg
Posts: 6
Joined: Fri Sep 10, 2010 6:43 am

Re: Continuous beep from mpd

Post by nagyg »

I have the same problem. How did you resolve this?
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Continuous beep from mpd

Post by mightyohm »

I believe the fix is to load the kmod-alsa kernel module and edit mpd.conf to enable ALSA (instead of OSS) for sound output.
middelbh
Posts: 3
Joined: Fri Sep 24, 2010 11:11 am

Re: Continuous beep from mpd

Post by middelbh »

mightyohm,
thanks so far! It seems to be difficult to find the right usb sound adapter in Holland. I think I have the ALSA one, but I am complete newby on linux. Could you explain what to do to load the kmod-alsa kernel module in stead of OSS?
I would be very happy! Thanks, Hans
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Continuous beep from mpd

Post by mightyohm »

From Stig Hess' comment in response to part 5 of the tutorial:
Comment out “audio” in the file /etc/modules.d/60-usb-audio

Change repository in /etc/opkg.conf to

src/gz snapshots http://downloads.openwrt.org/snapshots/ ... 4/packages /

I also had to change dest to “dest root /jffs”

opkg update
opkg install kmod-alsa

Reboot. That’s it!!
The edits to mpd.conf should hopefully be self explanatory.

The bad news is that it seems like many USB-audio adapters have problems. If you can find one that uses the CM119 chip then there is much higher likelihood that it will work with this project.
Post Reply