Debian Squeeze: connect to A2DP (bluetooth) through command line
I would like to turn my Lacie NAS into a A2DP bluetooth source, in order to stream audio to a bluetooth audio sink. The NAS runs Debian Squeeze in a chroot environment, and is connected to a Bluetooth dongle. I have no GUI installed on this NAS.
I can get bluetooth up with 'hciconfig hci0 up', and I can pair with the audio sink.
I created a file '~/.asoundrc' with the following contents:
Then I executed 'hciconfig hci0 voice 0x0060', which gave no output.
After that, I executed
pactl load-module module-alsa-sink device=btheadset
which gave the following error:
socket(): Address family not supported by protocol
Connection failure: Connection refused
Did I skip a step? Or is there anything else to accomplish what I want?