Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2015 08:44:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 203745] A2DP Support for Bluetooth Headphone Audio
Message-ID:  <bug-203745-21060-s9luVoLWAY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203745-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203745-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

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

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

--- Comment #3 from Hans Petter Selasky <hselasky@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203745-21060-s9luVoLWAY>