找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7827|回复: 10

7231-4p添加USB声卡,建音乐服务器、蓝牙等的方法(转自老外)

[复制链接]
发表于 2008-8-5 17:11 | 显示全部楼层 |阅读模式
找来找去,在网上找到老外的文章,原来USB声卡、音乐服务器、蓝牙是这么折腾上去的
过会回去试试。
现在附上原文链接

http://sokrates.mimuw.edu.pl/~sebek/openwrt/

My OpenWRT applications
Warning - this is an early beta version
Hardware
ASUS WL-500G Deluxe (200mips, 4MB flash, 32MB RAM, 2 external USB ports, etc, etc.). For more info see http://wiki.openwrt.org/TableOfHardware. Cost: about 100USD.
Software
OpenWRT WhiteRussian RC4. You can read more about OpenWRT here. And Here is my OpenWRT package repository. Sources are available.
Application: sound server (polypaudio)
Additional hardware:
USB audio card. I'm using one that I've assembled myself, using PCM2702 chip (thanks to Texas Instruments for providing a free sample) and this design. I've tested USB VoIP headset too, and it worked as well.
Additional software
Kernel audio modules build for 2.4.30 kernel (OpenWRT WhiteRussian RC4), and following packages: libusb, alsa-utils, libltdl, polypaudio.
HowTo
Just load kernel modules from /etc/modules.d/72-snd-usb-audio, in following order:
soundcore
snd-page-alloc
snd
snd-rawmidi
snd-hwdep
snd-timer
snd-pcm
snd-mixer-oss
snd-pcm-oss
snd-usb-lib
snd-usb-audio

and then run polypaudio server in daemon mode, listening on tcp socket using native as well as esound protocol.
This way I can play MP3s and watch movies on my notebook PC, using my old aplituner and 4 speakers instead of notebook's built-in speaker, with no cables lying around (notebook is using wifi connection).

Photos
Amplituner Asus WL500g USB audio card
Application: sound server (EsounD)
EsounD server uses about 2/3 less of system resources than polypaudio. It isn't as flexible or powerful, but works fine for me. It worked without OSS emulation (polypaudio didn't).
Additional hardware
as in previus sound server application
Additional software
Kernel audio modules build for 2.4.30 kernel (OpenWRT WhiteRussian RC4), and following packages: audiofile, esound-alsa
HowTo
Load kernel modules from /etc/modules.d/72-snd-usb-audio, in following order:
soundcore
snd-page-alloc
snd
snd-rawmidi
snd-hwdep
snd-timer
snd-pcm
snd-usb-lib
snd-usb-audio

Edit esd options in /etc/esd.conf:
auto_spawn=0
default_options=-nobeeps -as 2 -public -tcp

You may also add "-promiscuous -bind <your-LAN-ip>" to options. Then run esd in background (esd &).
Application: console server
Additional hardware:
Up to 8 PL2303-based USB<->RS232 cables, one or two USB 4-port bus-powered hubs, RS232 external modem.
Additional software:
Kernel usb-serial and usb-pl2303 modules (you can get them from this repository: http://users.bigpond.net.au/flett/ipkg), mgetty, conserver, tinylogin.
HowTo
Plug in all USB cables and reboot. Now connect modem to one of them, and find out which one is it ;) /proc/tty/driver/usb-serial may be helpful. Then edit /etc/inittab and enter:
::respawn:/usr/sbin/mgetty usb/tts/<deviceon>

Then edit /etc/conserver.cf and configure all your serial ports, using following template:
default * {
        logfile /var/log/console-&;
        logfilemax 512k;
        timestamp 1hab;
        master localhost;
        rw *;
}

console 0 { type device; device /dev/usb/tts/0; parity none; baud 9600; }
console 1 { type device; device /dev/usb/tts/1; parity none; baud 9600; }
console 2 { type device; device /dev/usb/tts/2; parity none; baud 9600; }

access * {
        trusted 127.0.0.1;
}

config * {
        daemonmode yes;
}

Run conserver, and you're all set. Use "console <device_no>" to connect to a serial port.
Application: scanner server (SANE)
Additional hardware
SANE-compatible USB scanner
Additional software
sane-backends, libusb, libgcc, libpthreads, xinetd
HowTo
Install sane-backends. Attach your scanner and check if SANE can find it:
scanimage -L

You should get something like this:
root@OpenWrt:~# scanimage -L
device `hp:libusb:001:004' is a Hewlett-Packard ScanJet 63x0C flatbed scanner
root@OpenWrt:~#

Edit /etc/sane.d/<your_backend>.conf if neccessary. Edit /etc/sane.d/saned.conf and add "+" to allow all IP addresses to use scanner. Add line:
sane-port       6566/tcp

to /etc/services. Create /etc/xinetd.d/sane:
service sane-port
{           
  socket_type = stream
  server = /usr/sbin/saned
  protocol = tcp
  user = root
  group = root
  wait = no     
  disable = no  
}           

Start xinetd: /etc/init.d/xinetd start. You can now connect to saned using XSane or any other SANE frontend.
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2008-8-5 17:19 | 显示全部楼层
果然使用EsounD来做音频服务器
今天一定要把声卡挂上去,体验一把。

去hifidiy.net买一个电子管USB声卡套件,如果也能挂上7231,再配合天龙功放,就是无线功放啦。
正好无线路由就放在电视柜。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-5 17:22 | 显示全部楼层
OPTWARE有一千多个软件,详细可以查看如下链接
http://www.dd-wrt.com/wiki/index ... of_Optware_packages
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-5 17:30 | 显示全部楼层
摘要翻译:

音频服务器 POLYPAUDIO
需要的硬件:USB声卡
需要的软件:Kernel audio modules build for 2.4.30 kernel ,以及libusb, alsa-utils, libltdl, polypaudio。
注意:该软件在OPTWARE平台下没有。无法使用。

音频服务器 ESOUND
需要的硬件:USB声卡
需要的软件:Kernel audio modules build for 2.4.30 kernel ,以及esound-alsa
OPTWARE平台下有此软件。
按如下搜顺序载入MODULES
soundcore
snd-page-alloc
snd
snd-rawmidi
snd-hwdep
snd-timer
snd-pcm
snd-usb-lib
snd-usb-audio

编辑 esd options 在 /etc/esd.conf:
auto_spawn=0
default_options=-nobeeps -as 2 -public -tcp
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-5 17:53 | 显示全部楼层
找到了个WINDOWS下 ESOUND的驱动
http://www.clingman.org/winesd/
详见此链接

This is the homepage for WinESD.  WinESD is a sound driver for Windows NT 4.0 that pipes all sound output to the esound daemon.  The driver acts as a esd client ala esddsp.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2008-8-5 18:25 | 显示全部楼层
该WINESD驱动已经在XP下安装成功。

Installation

The latest version (0.03) will install in Windows 2000 and NT 4.0. The installation is tricky, and somewhat hacked. Maybe 0.04 will fix this.

After unzipping the zip file, go to the "Multimedia" control panel.
Select the "devices" tab.
Click on "Add"
choose "Unlisted or Updated driver"
type in the Path where WinESD was unzipped.  The installation may complain about the driver already being on the system.  I don't know why this is, but I think the OEMSETUP.INF file needs to be reviewed.
Add a registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Enlightened\WinESD\ESPEAKER" (REG_SZ) that contains the node name of your esd machine (i.e. "linuxhost:16001"). The port number is needed--Old version of esound used 5001, new version use 16001
Reboot


The driver currently reports errors using several different Beeps.  This is ugly, but consistent with the rest of the driver.  A very high pitched beep (2kHz) means the registry entry was not found or invalid (check Security on the key).  A medium pitched tone (1.5kHz) indicates that the driver got "Connection Refused" from the server.

此驱动目前用哔哔响来报错。2kHZ的哔哔声表示注册表中没有建立所需的项;1.5kHZ的哔哔声表示无法连接到服务器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-8 13:45 | 显示全部楼层
关注下 我的MSS2 不知道能不能也用上  有ARM版本的吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-8-10 00:21 | 显示全部楼层
不知道哪款声卡可以用,有推荐的吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-9-11 11:20 | 显示全部楼层
推荐声卡  有alsa驱动包吗  有的话 ms可以用  支持多音频流吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2008-12-17 15:23 | 显示全部楼层
MSS I 上面怎么挂声卡?安装完软件,把USB声卡插上就可以了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-11-22 21:55 | 显示全部楼层
mark!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 00:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表