This is still incomplete, but to help us work on it:

Check out utils from the bluez project. Apply the a2dp.patch and
copy the .h files there.

Configure utils using

./configure --enable-alsa

and run 

make all install

in the alsa directory.

You should put something like this in your ~/.asoundrc with the 
headset address specified correctly:

	pcm.headphone {
	        type a2dp
	        bdaddr "00:08:F4:30:05:BB"
	}

You invoke the plugin with something like:

	aplay -B 1000000 -D pcm.headphone file.wav

