Configure A2DPprofile for Bluetooth stereo in Linux

Source: Internet
Author: User
Article Title: Configure A2DPprofile for Bluetooth stereo in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification system configurations: Linux debian 2.6.22.6 #7 Mon Sep 3 10:46:00 CST 2007 ppc GNU/Linux
 
Bluetooth software: bluez-lib bluez-utils is 3.22.bluez.org
 
Bluetooth hardware: the built-in CSR bluetooth 2.0 chip and Motorola S705 bluetooth stereo headset of iBook G4 are also the CSR bluetooth 2.0 chip.
 
NOTE: add -- enable-audio to blue-utils./configure.
 
1. scan your bluetooth headset, get the bluetooth address, and be able to correctly match the bluetooth on the host
 
2. The content of edit $ (HOME)/. asoundrc is as follows:
 
Pcm. bluetooth {
 
Type bluetooth
 
Device 00: 02: 76: 64: 94: F9 // Bluetooth headset address
 
}
 
3. edit/etc/bluetooth/audio. conf and check whether your configuration is correct.
 
[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. Run the bluetoothd-service-audio under the bluez-utils-6.22/audio. After installation, it is generally in the/usr/lib/bluetooth
 
5. Run mplayer to test your bluetooth stereo headset. The command is as follows: mplayer-ao alsa: device = bluetooth audio/demodio
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.