[SOLVED] - USB Audio for Broadcom DD-WRT devices

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 16:34    Post subject: Reply with quote
Here's my full dmesg after a reboot;

Code:
root@e3000:~# dmesg
Linux version 2.6.24.111 (eko@dd-wrt) (gcc version 4.1.2) #2826 Sun Dec 19 18:25:35 CET 2010
CPU revision is: 00019740
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 16384) 0 entries of 256 used
Zone PFN ranges:
  Normal          0 ->    16384
  HighMem     16384 ->    16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    16384
On node 0 totalpages: 16384
  Normal zone: 0 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16384 pages, LIFO batch:3
  HighMem zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order.  Total pages: 16384
Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
CPU: BCM4716 rev 1 at 480 MHz
Using 240.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 58836k/65536k available (3173k kernel code, 6644k reserved, 1482k data, 224k init, 0k highmem)
Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
PCI: Using membase 8000000
PCI: Initializing host
PCI: Reset RC
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 0000:01:00.0 to 64
PCI: Fixing up bridge
PCI: Setting latency timer of device 0000:01:00.1 to 64
PCI: Enabling device 0000:01:00.1 (0004 -> 0006)
PCI: Fixing up bus 1
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
WRT610Nv2/E3000 GPIO Init
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
PCI: Setting latency timer of device 0000:00:02.0 to 64
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.27
PCI: Setting latency timer of device 0000:00:01.0 to 64
PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:01:01.0 to 64
Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
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 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
nvram size: 61440
Physically mapped flash: Filesystem type: squashfs, size=0x6368ef
partition size = 6551552
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x00190800-0x007d0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x007d0000-0x007f0000 : "ddwrt"
Found a 0MB  serial flash
sflash: found no supported devices
Broadcom Watchdog Timer: 0.07 initialized.
u32 classifier
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length    128 bytes
PF_RING: ring slots       4096
PF_RING: sample rate      1 [1=no sampling]
PF_RING: capture TX       No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode 1f02
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 224k freed
roboswitch: Probing device eth0: found a 53115!
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB20H mdio control register : 0x8000000c
PCI: Setting latency timer of device 0000:00:04.0 to 64
ohci_hcd 0000:00:04.0: OHCI Host Controller
ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using ohci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new full speed USB device using ohci_hcd and address 3
usb 1-1.2: configuration #1 chosen from 1 choice
usb 1-1.4: new full speed USB device using ohci_hcd and address 4
usb 1-1.4: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access                               1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 3913989 512-byte hardware sectors (2004 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 06 0c 76
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 3913989 512-byte hardware sectors (2004 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 06 0c 76
sd 0:0:0:0: [sda] Assuming drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete
br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device br0 entered promiscuous mode
Algorithmics/MIPS FPU Emulator v1.5
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
device eth1 entered promiscuous mode
device eth2 entered promiscuous mode
br0: port 3(eth2) entering learning state
br0: port 2(eth1) entering learning state
br0: port 1(vlan1) entering learning state
device br0 left promiscuous mode
device br0 entered promiscuous mode
device br0 left promiscuous mode
device br0 entered promiscuous mode
device vlan2 entered promiscuous mode
br0: topology change detected, propagating
br0: port 3(eth2) entering forwarding state
br0: topology change detected, propagating
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(vlan1) entering forwarding state
device vlan2 left promiscuous mode
etherip: Ethernet over IPv4 tunneling driver
nf_nat_pptp: Unknown symbol nf_nat_pptp_hook_exp_gre
nf_nat_pptp: Unknown symbol nf_nat_pptp_hook_inbound
nf_nat_pptp: Unknown symbol nf_nat_pptp_hook_outbound
nf_nat_pptp: Unknown symbol nf_nat_pptp_hook_expectfn
nf_nat_pptp: Unknown symbol nf_nat_need_gre
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Adding 40152k swap on /dev/sda2.  Priority:-1 extents:1 across:40152k
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
snd_usb_audio: Unknown symbol snd_hwdep_new
usb 1-1.2: reset full speed USB device using ohci_hcd and address 3
usb 1-1.2: reset full speed USB device using ohci_hcd and address 3

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
Sponsor
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 16:36    Post subject: Reply with quote
Some info on my snd-hwdep.ko file;

its size on disk is 240 KB (245,760 bytes)

it gives no error or feed back from what I can find , when I run the command;

KERNEL=`uname -r`
insmod /opt/lib/modules/$KERNEL/snd-hwdep.ko


Perhaps I have the wrong file.

Do you have one that I could try?




that snd-hwdep.ko module depends on the snd module ( which shows as loaded for me, in my lsmod output)
but maybe its the wrong one to match up with the snd-hwdep.ko module I have.

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 16:41    Post subject: Reply with quote
gouryella wrote:
Hmm i do not know why isn't snd_hwdep_new insmoded (do you have memory for modules?), u can try our way, but im afraid that this module is critical.



Do I need jffs enabled or sometihng?

I dontt have that enabled. Any other setting I should know?

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 16:59    Post subject: Reply with quote
I just replaced the 240KB file snd-hwdep that I got from OTRW, and I put in a random snd-hwdep from an openwrt 9.0 build;


did a reboot and now my dmesg shows this;

snd_hwdep: version magic '2.6.25.17 mod_unload MIPS32_R1 32BIT ' should be '2.6.24.111 mod_unload MIPS32_R1 32BIT '
snd_usb_audio: Unknown symbol snd_hwdep_new


So thats good news, that it is trying to lod it, and sees the version mismatch.


I still am suspect of the file I have from frater...all the others I have seen seem much small in file size then the one I have, but I can't find any more files for 2.6.24.111


Any ideas?

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
gouryella
DD-WRT User


Joined: 06 Mar 2010
Posts: 107
Location: Plzeň, CZE

PostPosted: Sat Feb 05, 2011 17:06    Post subject: Reply with quote
I have only:


lsmod.png
 Description:
 Filesize:  50.21 KB
 Viewed:  13799 Time(s)

lsmod.png



snd-hwdep.zip
 Description:

Download
 Filename:  snd-hwdep.zip
 Filesize:  4.73 KB
 Downloaded:  608 Time(s)

gouryella
DD-WRT User


Joined: 06 Mar 2010
Posts: 107
Location: Plzeň, CZE

PostPosted: Sat Feb 05, 2011 17:08    Post subject: Reply with quote
stephensuley wrote:

snd_hwdep: version magic '2.6.25.17 mod_unload MIPS32_R1 32BIT ' should be '2.6.24.111 mod_unload MIPS32_R1 32BIT 'Any ideas?


U can make compatible module by / or replacing magic in XVI32:
Code:

 sed -i 's/vermagic/cigamrev/g' modul.ko
And after insmoding u get:
no version magic, tainting kernel.
but modul is succesfully loaded.
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 17:15    Post subject: Reply with quote
gouryella wrote:
stephensuley wrote:

snd_hwdep: version magic '2.6.25.17 mod_unload MIPS32_R1 32BIT ' should be '2.6.24.111 mod_unload MIPS32_R1 32BIT 'Any ideas?


U can make compatible module by / or replacing magic in XVI32:
Code:

 sed -i 's/vermagic/cigamrev/g' modul.ko
And after insmoding u get:
no version magic, tainting kernel.
but modul is succesfully loaded.




Looks like we have a winner;


I ran the sed command above on the snd-hwdep.ko from the 2.6.25 build of the openwrt and now my dmesg reads;

snd_hwdep: no version magic, tainting kernel.
usbcore: registered new interface driver snd-usb-audio
root@e3000:/opt/lib/modules/2.6.24.111#







Can you tell me a few commands to run now to verify that my audio device is working correctly?

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 18:19    Post subject: Reply with quote
All I did to get mp3blaster to work was to create a link

ls -s /dev/sound/dsp /dev/dsp


mp3blaster is now playing audio...



sorta...


The sound is very choppy, not even close enough to listen too, cuts in and out 2 or 3 times a second...

Can you give me any ideas why this is happening and what I can do to get the audio to play smoothly.

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 18:24    Post subject: Reply with quote
I got better results from mocp and now all songs are playing great!!!!!


yahoo.....me happy.



Capture111.PNG
 Description:
 Filesize:  59.23 KB
 Viewed:  13790 Time(s)

Capture111.PNG



_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
gouryella
DD-WRT User


Joined: 06 Mar 2010
Posts: 107
Location: Plzeň, CZE

PostPosted: Sat Feb 05, 2011 18:35    Post subject: Reply with quote
stephensuley wrote:
I just replaced the 240KB file snd-hwdep that I got from OTRW, and I put in a random snd-hwdep from an openwrt 9.0 build;
Can u post link where this files can be downloaded, thanks.
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 18:54    Post subject: Reply with quote
gouryella wrote:
stephensuley wrote:
I just replaced the 240KB file snd-hwdep that I got from OTRW, and I put in a random snd-hwdep from an openwrt 9.0 build;
Can u post link where this files can be downloaded, thanks.




http://kamikaze.openwrt.org/8.09/brcm47xx/packages/kmod-usb-core_2.6.25.17-brcm47xx-1_mipsel.ipk


Extract the package and copy the snd-hwdep.ko over to the router and replace the ORTW version of the file and then run the sid command posted above; reboot.

Then

create a link for the music app's so they can see the audio device in the place they expect to see it;

Code:
ln -s /dev/sound/dsp /dev/dsp



I have included the file that I used.



snd-hwdep.zip
 Description:

Download
 Filename:  snd-hwdep.zip
 Filesize:  4.73 KB
 Downloaded:  614 Time(s)


_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
stephensuley
DD-WRT Guru


Joined: 09 Feb 2008
Posts: 641
Location: Canada

PostPosted: Sat Feb 05, 2011 19:08    Post subject: Reply with quote
I just plugged in my logitech USB headset and it started to play the music to that plug and play style!



root@e3000:/tmp/c# lsusb
Bus 001 Device 008: ID 0c76:1607 JMTek, LLC.
Bus 001 Device 007: ID 046d:0a01 Logitech, Inc. Logitech USB Headset
Bus 001 Device 006: ID 0c76:0006 JMTek, LLC. Transcend JetFlash
Bus 001 Device 005: ID 058f:9254 Alcor Micro Corp. Hub
Bus 001 Device 001: ID 0000:0000

_________________
Location (urban) - 1x Linksys EA8500 (AP wlan0 & wlan1 enabled)
1x Asus 68u (Repeater Bridge w/VAP) - wl0 disabled
1x Asus 87u (Client Bridge) - wl1 disabled


Latest and greatest builds Wink
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Sat Feb 12, 2011 23:14    Post subject: Reply with quote
@Stephensuley

Do you think you can add a post with step by step updated instructions so that noobs like me can do this too? I read through the whole thread but really cant keep up or understand much...I would really appreciate it, as im sure others would too....

_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Wed Feb 16, 2011 2:54    Post subject: Reply with quote
@Frater

Is there any way you can replace the openwrt 'snd-hwdep' file with the one in your module and make the changes so this can be working once the 'soundmodules' are downloaded? no other hussling needed? That would be great...

_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Wed Feb 16, 2011 3:34    Post subject: Reply with quote
How do you install and use mocp to the router? I think i figured everything else out...just got this last part left...any help?
_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 4 of 7
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum