OpenWrt Forum Archive

Topic: USB Audio cards

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Anybody knows some USB audio cards which works with kmod-usb-audio package in Asus WL-500Gp?

Which attributes need to consider before buying any card?

I have a Terratec AUREON 5.1 USB MKII on my WL-500g Premium working.

Thank you, i'll try this.

Today i've bought a Terratec AUREON 5.1 USB MKII card. Plug it to the router, but don't recognised by the system. The led on the card not burns on the full brightness, only very small light. dmesg output:

root@LaySoft:~# dmesg 
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.34 (nbd@ds10) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Sun Sep 30 20:33:21 CEST 2007
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... 262.96 BogoMIPS
Memory: 30432k/32768k available (1462k kernel code, 2336k reserved, 100k data, 80k 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:32:8c:49
PCI: Setting latency timer of device 00:02.0 to 64
eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
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=0x121cc8
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000be400-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x001f0000-0x007f0000 : "rootfs_data"
sflash: found no supported devices
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)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
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: 80k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
device eth0.0 entered promiscuous mode
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
wlan: 0.8.4.2 (svn r2568)
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_FUNC)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2568)
PCI: Enabling device 01:02.0 (0000 -> 0002)
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 7.9 phy 4.5 radio 5.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x40010000, irq=2
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c01bb000
usb.c: new USB bus registered, assigned bus number 1
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
No Broadcom devices found.
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 01:03.2-2, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB 2.0   Model: Flash Disk        Rev: 1100
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb.c: registered new driver snd-usb-audio
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 3963904 512-byte hdwr sectors (2030 MB)
sda: Write Protect is off
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
device ath0 entered promiscuous mode
br-lan: port 2(ath0) entering learning state
br-lan: port 2(ath0) entering forwarding state
br-lan: topology change detected, propagating
root@LaySoft:~#

My installed packages:

Uninstall    alsa-lib    1.0.13-1    
Uninstall    alsa-utils    1.0.13-1    
Uninstall    base-files-brcm-2.4    10-9078    
Uninstall    bridge    1.0.6-1    
Uninstall    busybox    1.4.2-2    
Uninstall    dnsmasq    2.39-1    
Uninstall    dropbear    0.50-2    
Uninstall    glib1    1.2.10-1    
Uninstall    haserl    0.8.0-2    
Uninstall    hostapd-mini    0.5.7-1    
Uninstall    iptables    1.3.7-1    
Uninstall    irssi    0.8.10-1    
Uninstall    kernel    2.4.34-brcm-1    
Uninstall    kmod-alsa    1.0.14rc1-1    
Uninstall    kmod-brcm-wl    2.4.34+4.80.53.0-1    
Uninstall    kmod-diag    2+2.4.34-brcm-1    
Uninstall    kmod-fs-vfat    2.4.34-brcm-1    
Uninstall    kmod-ipt-nathelper    2.4.34-brcm-1    
Uninstall    kmod-madwifi    2.4.34+r2568-20070710-brcm-2    
Uninstall    kmod-ppp    2.4.34-brcm-1    
Uninstall    kmod-pppoe    2.4.34-brcm-1    
Uninstall    kmod-scsi-core    2.4.34-brcm-1    
Uninstall    kmod-sound-core    2.4.34-brcm-1    
Uninstall    kmod-switch    2.4.34-brcm-1    
Uninstall    kmod-usb-audio    2.4.34-brcm-1    
Uninstall    kmod-usb-core    2.4.34-brcm-1    
Uninstall    kmod-usb-storage    2.4.34-brcm-1    
Uninstall    kmod-usb2    2.4.34-brcm-1    
Uninstall    kmod-wlcompat    2.4.34+brcm-6    
Uninstall    libflac    1.1.2-1    
Uninstall    libgcc    3.4.6-10    
Uninstall    libid3tag    0.15.1b-1    
Uninstall    libmad    0.15.1b-1    
Uninstall    libmatrixssl    1.2.4-1    
Uninstall    libncurses    5.6-1    
Uninstall    libpthread    0.9.28-10    
Uninstall    libvorbisidec    1.2.0-dave-1    
Uninstall    matrixtunnel    0.2-1    
Uninstall    mpd    0.13.0-1    
Uninstall    mtd    5    
Uninstall    nas    4.80.53.0-1    
Uninstall    ntpclient    2003_194-4    
Uninstall    nvram    1    
Uninstall    ppp    2.4.3-8    
Uninstall    ppp-mod-pppoe    2.4.3-8    
Uninstall    screen    4.0.3-1    
Uninstall    uclibc    0.9.28-10    
Uninstall    updatedd    2.6-5    
Uninstall    updatedd-mod-dyndns    2.6-5    
Uninstall    vsftpd    2.0.5-2    
Uninstall    webif    0.3-8    
Uninstall    wireless-tools    29-1    
Uninstall    wlc    4.80.53.0-1    
Uninstall    zlib    1.2.3-4

What's the problem? Maybe the power supply is too weak? But WIFI, USB pendrive, and everything works ok.

(Last edited by LaySoft on 17 Oct 2007, 18:08)

Are you using a USB hub to plug the USB sound card into?  Can you output an "lsmod" when the USB sound card is plugged in and one when it's not plugged in?

Cheers,
Kermee

(Last edited by Kermee on 17 Oct 2007, 19:21)

Kermee wrote:

Are you using a USB hub to plug the USB sound card into?

No, i plug the sound card directly to the router

Can you output an "lsmod" when the USB sound card is plugged in and one when it's not plugged in?

lsmod output without card:

root@LaySoft:~# lsmod
Module                  Size  Used by    Tainted: P  
snd-pcm-oss            47924   0 (unused)
snd-mixer-oss          15528   0 [snd-pcm-oss]
snd-usb-audio          58488   0 (unused)
snd-hwdep               6328   0 [snd-usb-audio]
snd-usb-lib            12676   0 [snd-usb-audio]
snd-rawmidi            18584   0 [snd-usb-lib]
snd-pcm                63924   0 [snd-pcm-oss snd-usb-audio]
snd-timer              19752   0 [snd-pcm]
snd                    50552   0 [snd-pcm-oss snd-mixer-oss snd-usb-audio snd-hwdep snd-usb-lib snd-rawmidi snd-pcm snd-timer]
snd-page-alloc          7184   0 [snd-mixer-oss snd-usb-audio snd-hwdep snd-rawmidi snd-pcm snd-timer snd]
usb-storage            68240   0 (unused)
sd_mod                 12500   0 (unused)
scsi_mod               66048   2 [usb-storage sd_mod]
audio                  47112   0 (unused)
ehci-hcd               20556   0 (unused)
ath_pci                88176   1
wlan_xauth               332   0 (unused)
wlan_wep                3740   0 (unused)
wlan_tkip               9580   2
wlan_ccmp               5228   0 (unused)
wlan_acl                1628   0 (unused)
ath_rate_minstrel       7672   1
ath_hal               270928   1 [ath_pci ath_rate_minstrel]
wlan_scan_sta           8140   0 (unused)
wlan_scan_ap            2140   0 (unused)
wlan                  141584   1 [ath_pci wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl ath_rate_minstrel wlan_scan_sta wlan_scan_ap]
ip_conntrack_tftp       1712   0 (unused)
ip_nat_irc              2336   0 (unused)
ip_conntrack_irc        3128   1
ip_nat_ftp              2960   0 (unused)
ip_conntrack_ftp        4272   1
soundcore               4048   0 [snd audio]
ppp_async               7884   0 (unused)
ppp_generic            22300   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
vfat                   11340   0 (unused)
fat                    34448   0 [vfat]
usbcore                71296   1 [snd-usb-audio snd-usb-lib usb-storage audio ehci-hcd]
switch-robo             4540   0 (unused)
switch-core             4864   0 [switch-robo]
diag                   25520   0 (unused)
root@LaySoft:~#

And with card plugged:

root@LaySoft:~# lsmod
Module                  Size  Used by    Tainted: P  
snd-pcm-oss            47924   0 (unused)
snd-mixer-oss          15528   0 [snd-pcm-oss]
snd-usb-audio          58488   0 (unused)
snd-hwdep               6328   0 [snd-usb-audio]
snd-usb-lib            12676   0 [snd-usb-audio]
snd-rawmidi            18584   0 [snd-usb-lib]
snd-pcm                63924   0 [snd-pcm-oss snd-usb-audio]
snd-timer              19752   0 [snd-pcm]
snd                    50552   0 [snd-pcm-oss snd-mixer-oss snd-usb-audio snd-hwdep snd-usb-lib snd-rawmidi snd-pcm snd-timer]
snd-page-alloc          7184   0 [snd-mixer-oss snd-usb-audio snd-hwdep snd-rawmidi snd-pcm snd-timer snd]
usb-storage            68240   0 (unused)
sd_mod                 12500   0 (unused)
scsi_mod               66048   2 [usb-storage sd_mod]
audio                  47112   0 (unused)
ehci-hcd               20556   0 (unused)
ath_pci                88176   1
wlan_xauth               332   0 (unused)
wlan_wep                3740   0 (unused)
wlan_tkip               9580   1
wlan_ccmp               5228   0 (unused)
wlan_acl                1628   0 (unused)
ath_rate_minstrel       7672   1
ath_hal               270928   1 [ath_pci ath_rate_minstrel]
wlan_scan_sta           8140   0 (unused)
wlan_scan_ap            2140   0 (unused)
wlan                  141584   1 [ath_pci wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl ath_rate_minstrel wlan_scan_sta wlan_scan_ap]
ip_conntrack_tftp       1712   0 (unused)
ip_nat_irc              2336   0 (unused)
ip_conntrack_irc        3128   1
ip_nat_ftp              2960   0 (unused)
ip_conntrack_ftp        4272   1
soundcore               4048   0 [snd audio]
ppp_async               7884   0 (unused)
ppp_generic            22300   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
vfat                   11340   0 (unused)
fat                    34448   0 [vfat]
usbcore                71296   1 [snd-usb-audio snd-usb-lib usb-storage audio ehci-hcd]
switch-robo             4540   0 (unused)
switch-core             4864   0 [switch-robo]
diag                   25520   0 (unused)
root@LaySoft:~#

Cheers,

Lay

(Last edited by LaySoft on 17 Oct 2007, 19:33)

It looks like you have all the kmod's and proper USB modules loaded for sound.  Not sure what's preventing it from being detected.  In your "dmesg" output, I don't even see the kernel recognizing a USB device has been plugged in even but looking at it, it looks like you have a 4-port USB hub and that's where your 2GB Flash Drive is connected to?

Cheers,
Kermee

Kermee wrote:

It looks like you have all the kmod's and proper USB modules loaded for sound.  Not sure what's preventing it from being detected.  In your "dmesg" output, I don't even see the kernel recognizing a USB device has been plugged in even but looking at it, it looks like you have a 4-port USB hub and that's where your 2GB Flash Drive is connected to?

No, i don't have USB hub. The sound card plugged directly to the lower USB port of the router, the pendrive directly to the upper port. I tried swap two devices, the pendrive works, but sound card not.

Cheers,

Lay

(Last edited by LaySoft on 17 Oct 2007, 19:51)

What does lsusb report with and without the sound card?

mooninite wrote:

What does lsusb report with and without the sound card?

lsusb? This command not exists...

LaySoft wrote:
mooninite wrote:

What does lsusb report with and without the sound card?

lsusb? This command not exists...

Ah... It's typically installed on desktop distributions in a packaged called "usbutils" and runs around 60k in size. I would highly recommend that you get this tool since you have a router with USB ports.

It lists each device currently detected similar to lspci (or lsmod, etc). It would be a perfect tool to see what's going on with your router.

I installed usbutils package.  The output is the same, if the soundcard plugged, or not:

root@LaySoft:~# lsusb
Bus 001 Device 001: ID 0000:0000  
Bus 001 Device 002: ID 090c:1000 Feiya Technology Corp. Memory Bar
root@LaySoft:~#

The sound card is good, because it's works in my PC. The USB ports on the router are good, because if i swap the devices, the effect is the same. This soundcard is compatible with openwrt, because recommended by forum2006, it's worked for he.

Install kmod-usb-uhci-iv package.

(Last edited by obsy on 17 Oct 2007, 21:33)

obsy wrote:

Install kmod-usb-uhci-iv package.

Thank you very much, this was the problem! Now it's working! Thank you again!

The discussion might have continued from here.