Continuous beep from mpd

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
jjphoto
Posts: 1
Joined: Wed Dec 15, 2010 8:36 pm

Re: Continuous beep from mpd

Post by jjphoto »

Hey guys,

I'm having the beep problem. My dmesg output is

Code: Select all


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.
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
usb.c: registered new driver audio
usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 80c1aee0
audio.c: v1.0.0:USB Audio Class driver
and I have the mpd.conf set thusly:

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
}
Am I correct in believing that my problem might be the output frequency mismatch? It looks like dmesg is saying my device supports 48000 and have the format set to 44100 in mpd.conf - am I on the right track?

Thanks for the help guys.
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 »

It is possible, and you can try changing the sample rate in mpd.conf, but you may have problems as the router usually can't gracefully upsample the incoming audio (it has limited CPU power).

You could also try installing ALSA (read the rest of this thread) or trying one of the known working USB-audio adapters given in this thread:
viewtopic.php?f=2&t=232
dddesign
Posts: 10
Joined: Wed Apr 06, 2011 3:33 pm

Re: Continuous beep from mpd

Post by dddesign »

please help. I don't know if my usb-audi-stick is working wiht my asus wl-500w. I installed kmod-usb-audio and kmod-usb-ohci and this is my dmesg:

Code: Select all

CPU revision is: 00029006
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (jkeyzer@wavelen) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Mon Dec 1 17:35:57 PST 2008
Setting the PFC to its default value
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Memory: 30480k/32768k available (1419k kernel code, 2288k reserved, 96k data, 84k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
PCI: Setting latency timer of device 00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:18:f3:d9:f1:0b
PCI: Setting latency timer of device 00:02.0 to 64
eth1: Broadcom 47xx 10/100BaseT Ethernet 00:18:f3:d9:f1:0b
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x13e028
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000ba800-0x00200000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00200000-0x007f0000 : "rootfs_data"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500W'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
device eth0 entered promiscuous mode
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
br-lan: port 1(eth0) entering learning state
br-lan: port 1(eth0) entering forwarding state
br-lan: topology change detected, propagating
b44: eth1: Link is up at 100 Mbps, full duplex.
b44: eth1: Flow control is off for TX and off for RX.
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
PCI/DMA
wl0: wlc_attach: failed with err 13
wl%d: 4.150.10.5 driver failed with code 13
unregister_netdevice: device wl%d/801fb620 never was registered
Memory leak of bytes -2323
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 344 bytes per conntrack
SB USB 1.1 init
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:4715
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
No Broadcom devices found.
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
there is no /dev/sound/dsp ...

want to try kmod-alsa but packages on openwrt snapshot (link mentioned here in this thread) aren't working (* Packages were found, but none compatible with the architectures configured). is there an other link to packages for mightyohm's image?

thanks for your help
jan
eam
Posts: 7
Joined: Tue Mar 01, 2011 8:15 pm

Re: Continuous beep from mpd

Post by eam »

I had the beep of death using one of these:
Clipboard01.jpg
Clipboard01.jpg (2.84 KiB) Viewed 16776 times
then switched to one of these:
Clipboard02.jpg
Clipboard02.jpg (1.84 KiB) Viewed 16776 times
and all is good. (Search ebay for "USB Sound Card supports 7.1 Channel 3D Audio")
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 »

Your USB-audio adapter is not being detected. What make/model is it?

I recommend that you try one of the known working adapters given in the sticky thread at the top of this forum...
dddesign wrote:please help. I don't know if my usb-audi-stick is working wiht my asus wl-500w. I installed kmod-usb-audio and kmod-usb-ohci and this is my dmesg:

there is no /dev/sound/dsp ...

want to try kmod-alsa but packages on openwrt snapshot (link mentioned here in this thread) aren't working (* Packages were found, but none compatible with the architectures configured). is there an other link to packages for mightyohm's image?

thanks for your help
jan
Jonnywalker
Posts: 1
Joined: Fri Jan 27, 2012 2:51 pm

Re: Continuous beep from mpd

Post by Jonnywalker »

I had theese terrible beeps too, but now all works for me!

Router: Asus WL-500gp v2
Openwrt: backfire 10.03 brcm-2.4
Usb sound card: 3d sound, chip: TP6911 - looks like the picture above, but the case is grey.

To make my card working but not beeping I've removed oss module kmod-usb-audio.
No kmod-usb-audio needed!
Needed packages:
  • kmod-alsa
    kmod-usb-core
    kmod-usb-ohci
    alsa-lib
    alsa-utils (?)
    mpd
...and others automatically installed by opkg.

Then in mpd.conf it's nessesary to uncomment section for alsa output, set format to "48000:16:2" and comment the oss output section.
Post Reply