linux 蓝牙 profile,Linux系统下蓝牙立体声配置A2DP profile

系统配置:Linux debian 2.6.22.6 #7 Mon Sep 3 10:46:00 CST

2007 ppc GNU/Linux

bluetooth software: bluez-lib bluez-utils

均是3.22。bluez.org

bluetooth hardware: iBook G4 内置的CSR 蓝牙2.0芯片、Motorola

S705蓝牙立体声耳机,也是CSR 蓝牙2.0芯片。

NOTE: 请在blue-utils ./configure的时候,加上--enable-audio

1、scan你的蓝牙耳机,得到bluetooth address,

并且能够跟主机上的bluetooth正确配对

2、edit $(HOME)/.asoundrc 内容 如下:

pcm.bluetooth{

type bluetooth

device 00:02:76:64:94:F9 //蓝牙耳机地址

}

3、edit /etc/bluetooth/audio.conf, check一下你配置是否正确

[General]

# SCO routing. Either PCM or HCI (in which case

audio is routed to/from ALSA)

# Defaults to HCI

SCORouting=HCI

[Headset]

# Defaults to false

DisableHFP=true

[A2DP]

SourceCount=1

4、运行 bluez-utils-6.22/audio

下的bluetoothd-service-audio,安装后一般在/usr/lib/bluetooth下

5、运行mplayer来测试一下你的蓝牙立体声耳机,命令如下: mplayer -ao

alsa:device=bluetooth audio/demo.mp3

(责任编辑:A6)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值