Bluetooth audio (once again)

Iain Hibbert plunky at rya-online.net
Wed Oct 8 18:03:00 UTC 2008


On Wed, 8 Oct 2008, Maksim Yevmenkin wrote:

> 2) license issues. bluez is gnu, which could be a problem. we could
> take a look at what netbsd does.

Well NetBSD has no A2DP support as yet

There is bthset(1) which is a small utility to talk to the command
part of a Headset profile, but the audio part is handled inside the kernel
by a btsco(4) audio device driver (so in effect, you can just use
/dev/audio1 to play audio). However, I don't think that is very easy to
port to FreeBSD because our audio(9) API is different. (Also bthset uses
libevent :)

Something that may be of more immediate use is a port of the hstest
program from BlueZ that I made when I was writing the SCO support for
NetBSD. It is attached for what its worth (GPL warning) and it should be
able to copy audio data in and out.

Another thing that might be of interest is the proof of concept bthfp
program I wrote to talk to a Handsfree profile (source at
http://homepages.rya-online.net/plunky/bthfp-0.1.tar.gz) which alas also
uses libevent though I wrote a version that used select and the NetBSD
audio device directly (attached) but that doesn't always work properly
because our audio device framework won't properly handle errors from the
devices (eg disconnects)

So in summary, what NetBSD has is probably not of great use but may be
of some interest :)

iain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hstest.tar.gz
Type: application/octet-stream
Size: 3338 bytes
Desc: port of BlueZ hstest utility to NetBSD
Url : http://lists.freebsd.org/pipermail/freebsd-bluetooth/attachments/20081008/b470e0a6/hstest.tar.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bthfp_dev.tar.gz
Type: application/octet-stream
Size: 7682 bytes
Desc: HFP program using select
Url : http://lists.freebsd.org/pipermail/freebsd-bluetooth/attachments/20081008/b470e0a6/bthfp_dev.tar.obj


More information about the freebsd-bluetooth mailing list