歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Linux系統下藍牙立體聲配置A2DP profile

Linux系統下藍牙立體聲配置A2DP profile

日期:2017/3/2 16:52:37   编辑:Linux服務器
系統配置: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

Copyright © Linux教程網 All Rights Reserved