第六 安装蓝牙耳机的音频程序
前提:你的linux应该使用的是ALSA的音频系统。
http://cgi.sfu.ca/~jdbates/debian/pool/bluetooth-alsa/
deb包 deb http://cgi.sfu.ca/~jdbates/debian/ . .
bluetooth-alsa_200503090-1_i386.deb 2005年5月19日
这个包会装安装btsco的应用程序。
现在我们还需要一个驱动程序。snd-bt-sco
1.到bluetooth-alsa项目的主页去下载源程序 或从CVS中下最新的代码。
http://bluetooth-alsa.sourceforge.net/
从CVS中可以得到最新的程序
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/bluetooth-alsa login
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/bluetooth-alsa co btsco
编译前需要的包
automake-1.7 |
2.Compile:
./bootstrap |
3. snd-bt-bco需要一个snd_hwdep_new的内核模块。 你可以通过在编辑内核时选上 emu10k1强行编译上面的内核模块。
device drivers ——> sound ——>Advance Linux sound Architecture——>PCI devices |
4.编译snd-bt-sco
到btsco/kernel目录下面
cd kernel
make
make install
depmod -e
make clean
默认的状态下会安装在/lib/modules/2.6.X/extra/目录下面。
第七 使用蓝牙耳机
1.modprobe snd_bt_sco
2.hciconfig hci0 voice 0x0060
3.btsco bdaddress
这里需要填的是蓝牙的MAC地址
这可以通过让你的蓝牙耳机处在查询状态。然后用hcitool scans就可以找到你的耳机,同时看到它的MAC地址。
#hcitool scan
Scanning ……
