PDA

Bekijk de volledige versie : Mp3 Player within Asus WL500-gp , HELP PLEASE



tmsulica
16-11-2009, 21:10
I want to make my asus router to play some mp3 files from my hdd mounted on the device and play it to an usb soundcard ( My router stands on my 5.1 media sistem and it would be easy to play music or an radio - streaming one -without turning computer on).

Can i do this ? I gogle it but i do not have an very good answer. (Cuz i am a newbie).

If i can, i wold need an linux player for router an drivers for the sound card , no ? The soundcard is ESS USB Audio from Konig (cmp-soundusb12)

PLEASE HELP IF YOU KNOW , AN IF YOU DON'T MAYBE YOU CAN GUIDE ME TO SOMEBODY ELSE !

THANK YOU FOR YOUR HELP !

PS : I use oleg's last firmware on WL500-gp, installed by wegi tutorial, it works fine !


I FOUND SOMETHING ON http://omgili.com/jmp/jHIAmI4hxg.9n1znT6bra.jJMLduMPKOaRg4wbzT0O9_vH4X5N jGM9XIdxodp4t2aPI6GhJwkPJHcxB7Sg69RO4f3g7mXTqRt.nF HDLzDOq5FGDo8pHn0Qkub3_CHs77nOEDlNBfvTGzvoRZOVw8Xd _AW3PHl4QU7lhkFJNlouwDHa1F9CSCi_HqTD7CF3d0oBhyc9QQ qJsOxw.bWitG2SDh0G4EqzxqQASbXSy..kFZUPNxH3FlaA-- BUT I DO NOT KNOW DEUTCH, and translated is rubbish ... HLP PLEASE

froo
09-01-2010, 05:25
perhaps this could help ....

http://nuwiki.openwrt.org/oldwiki/UsbAudioHowto

jr0
09-01-2010, 15:48
you may want to have a look at mightyohm's project (http://mightyohm.com/blog/2008/10/building-a-wifi-radio-part-1-introduction/). It's for WL-520GU, but the principle is the same.
Good luck ... :)

grit
13-04-2010, 21:03
Seems tat soundcard is a bit of a problem; I have it too and the oleg firmware 'dmesg' command says:

SB device 2 (vend/prod 0xc76/0x1605) is not claimed by any active driver

On an Ubuntu Linux system this card is detected without any problems however:
'SSS USB Headphone Set as /devices/pci0000:00/00'..etc...

The setup of this box has me getting into linux a little bit, but I/m still very novice...I wonder if it's possible to incoorporate these drivers in an oleg wl-system?

tmsulica
29-11-2010, 10:03
because of no answer probably NOT :( !

tmsulica
29-11-2010, 23:19
It says that the search is the mother of understanding (romanians at least). SO I FOUND AN ANSWER FOR MY QUESTION !!!!!

Premise: I get the next message when i plug my ESS USB Audio from Konig (cmp-soundusb12):


SB device 2 (vend/prod 0xc76/0x1605) is not claimed by any active driver

SO

I accidentally stumbled upon my old post about souncard on router , and i decided to be angry and give it a try. After a litle searching in the forums i've saw the solution, too simple to see it then (newbie , lol)

Step 1: to test if the core is good for my soundcard ... i downloaded oleg's latest modules archive from here (http://oleg.wl500g.info/1.9.2.7-10/modules-1.9.2.7-10.tgz), then within windows i extracted the 2 files i neded from it: lib/modules/2.4.20/kernel/drivers/sound - soundcore.o and lib/modules/2.4.20/kernel/drivers/usb - audio.o .
Step 2: i transfered them somewhere on my router's hdd:
Ex: /tmp/harddisk/pbfiles, then i created there another directory named scripts (well it was created long ago, for me is an directory where i create scripts and make them executables etc). ALL THE OPERATIONS FOR EASY USE I DID IT WITH MC (midnight commander), read wengi's post about full config and MC here (http://wl500g.info/showthread.php?t=10307), and files transferred with ftp (i use total commander from my xp).

STEP 3: I created in my Scripts directory a file nammed audio.start with this content:


sleep 5
rmmod audio
insmod /tmp/harddisk/pbfiles/soundcore.o
insmod /tmp/harddisk/pbfiles/audio.o

then i made it executable chmod +x audio.start

Step4: i do not want to modify to many times my post-boot file, so i added just a line to my recently created executable from above.


/tmp/harddisk/scripts/audio.start

the post boot file is in /usr/local/sbin/post-boot, I edited, after that I saved it, to commit the changes i gived the the router the reboot, flash command

flashfs save && flashfs commit && flashfs enable && reboot.

And voila my log:


Jan 1 01:00:58 kernel: usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
Jan 1 01:00:58 kernel: usbaudio: valid input sample rate 48000
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 48000 sratehi 48000 attributes 0x00
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 0 does not have an endpoint
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 1 channels 2 framesize 2 configured
Jan 1 01:00:58 kernel: usbaudio: valid output sample rate 48000
Jan 1 01:00:58 kernel: usbaudio: device 2 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
Jan 1 01:00:58 kernel: usbaudio: registered dsp 14,3
Jan 1 01:00:58 kernel: usbaudio: registered mixer 14,0
Jan 1 01:00:58 kernel: usbaudio: registered mixer 14,16
Jan 1 01:00:58 kernel: audio.c: v1.0.0:USB Audio Class driver


Of course that it was much simple just to add comands in post-boot file but i'm not an simple person :)) .

Tomorrow i will install an mp3 player on my router to test it ..... best wishes

tmsulica
01-12-2010, 18:54
# madplay Ben.Mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
Title: Ben
Artist: Michael Jackson
Orchestra: Michael Jackson
Album: Ben
Track: 01
Year: 1972
Genre: Pop
Encoder: Discography Arranged By Gabi_Bits
Comment:
output: sample frequency 44100 Hz not available; using 48000 Hz
output: resampling 44100 Hz to 48000 Hz


NO COMMENT :D