public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* BlueZ 4.26 : headset profile
@ 2009-01-13  8:25 Thierry Pierret
  2009-01-13  9:03 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Pierret @ 2009-01-13  8:25 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I wish my computer to play the role of a headset, with the aim to play
music from my bluetooth-capable player onto the computer soundcard.

First I had to enable the "Gateway" option in the "audio.conf" file in
order to get the Headset service exposed. By the same way, you must
enable the "Headset" option in order to be an audio gateway). It
sounds already weird to me.

Then I have to configure the .asoundrc file for the alsa-plugin
configuration. How do I specify my own bluetooth adapter as the music
source ? I tried this :

pcm.bluetooth {
       type bluetooth
       device XX:XX:XX:XX:XX:XX
       profile hifi
}

where the specified address is the local address. But it did not work,
of course :

$ arecord -D bluetooth -f S16_LE /var/tmp/record.wav &
bluetoothd[1826]: Accepted new client connection on unix socket (fd=13)
bluetoothd[1826]: Audio API: BT_REQUEST <- BT_GET_CAPABILITIES
bluetoothd[1826]: Audio API: BT_ERROR -> BT_GET_CAPABILITIES
ALSA lib pcm_bluetooth.c:1561:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
bluetoothd[1826]: Unix client disconnected (fd=13)
arecord: main:552: audio open error: Input/output error


May I ask some help at this point ?

Regards.

Thierry Pierret

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BlueZ 4.26 : headset profile
  2009-01-13  8:25 BlueZ 4.26 : headset profile Thierry Pierret
@ 2009-01-13  9:03 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2009-01-13  9:03 UTC (permalink / raw)
  To: BlueZ development

Hi,

On Jan 13, 2009, at 9:25, Thierry Pierret wrote:
> I wish my computer to play the role of a headset, with the aim to play
> music from my bluetooth-capable player onto the computer soundcard.

That's not implemented right now so it won't work. There's an  
experimental patch available (with the misleading subject "Gateway  
profile") on this list which hasn't been accepted upstream yet (since  
there are just too many issues with it).

> First I had to enable the "Gateway" option in the "audio.conf" file in
> order to get the Headset service exposed. By the same way, you must
> enable the "Headset" option in order to be an audio gateway). It
> sounds already weird to me.

Yeah, I know it's a little bit counterintuitive. The reason is mainly  
historical. What the option is referring to is which D-Bus interfaces  
should be enabled for remote devices objects. I.e. "Headset" enables  
support for the org.bluez.Headset interface on remote device objects  
(i.e. allows remote devices that support the Headset/Handsfree role to  
be used).

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-13  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13  8:25 BlueZ 4.26 : headset profile Thierry Pierret
2009-01-13  9:03 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox