[Bug 203745] A2DP Support for Bluetooth Headphone Audio

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 19 08:44:29 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203745

Hans Petter Selasky <hselasky at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress

--- Comment #3 from Hans Petter Selasky <hselasky at FreeBSD.org> ---
Hi,

Over the weekend I've imported Nathanial Sloss's A2DP code into my virtual OSS
backend for FreeBSD. If someone wants to do recording support, would be great.
How to connect:

0) Add your device to /etc/bluetooth/hcsecd.conf

device {
        bdaddr  xx:xx:xx:xx:xx:xx;
        name    "BT audio device";
        key     nokey;
        pin     "0000";
}

1) /etc/rc.d/hcsecd onestart
2) hccontrol -n ubt0hci write_authentication_enable 1
3) Now switch on pairing
4) hccontrol -n ubt0hci create_connection xx:xx:xx:xx:xx:xx

5) Install cuse4bsd-kmod from ports or set HAVE_CUSE=YES for 11-current.
6) kldload cuse4bsd or cuse

7) svn --username anonsvn --password anonsvn \
       checkout svn://svn.turbocat.net/i4b/trunk/virtual_oss

cd virtual_oss
make HAVE_BLUETOOTH=YES all

# Disable kernel's /dev/dsp
sysctl hw.snd.basename_clone=0

# Create new /dev/dsp
./virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 1024 -R /dev/null -P
/dev/bluetooth/xx:xx:xx:xx:xx:xx -d dsp

Assuming you have sox installed:

play test.wav

Or use VLC and select OSS audio backend.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-wireless mailing list