Re: [Bluez-users] BT Headset connected but no sound

Guillaume Bedot
2008-02-02T10:40:07Z

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

On sam, 2008-02-02 at 10:32 +0100, Daniel Stumpner wrote:
> Daniel Stumpner wrote:
> > Hi,
> >
> > can connect to my BT Headset but if I try to play a sound, it does only
> > beep at the start and at the end of the connection but there is no sound.
> >
> > mplayer -ao alsa:device=bluetooth test.wav
> > - beep -
> > (pressing 'q')
> > - beep -
> >
> > I am running Gentoo with linux 2.6.23 (x86)
> > bluez-libs-3.24
> > blues-utils-3.24
> >
There is a bug in bluez-utils 3.24 that prevents headset/SCO connections
to work.
Try with current bluez cvs or with the attached patch.

> But the errors don't change...
> What do I have to do to get my key-agent working?
>
You can check your configuration in /etc/bluetooth/hcid.conf too.

Regards,

Guillaume B.

[-- Attachment #2: bluez-utils-3.24-fixheadset.patch --]
[-- Type: text/x-patch, Size: 514 bytes --]

--- bluez-utils/audio/pcm_bluetooth.c 2008/01/05 14:51:47 1.91
+++ bluez-utils/audio/pcm_bluetooth.c 2008/01/09 03:03:32 1.92
@@ -786,11 +786,11 @@
DBG("areas->step=%u areas->first=%u offset=%lu size=%lu io->nonblock=%u",
areas->step, areas->first, offset, size, io->nonblock);

+ frame_size = areas->step / 8;
+
if (data->count > 0)
goto proceed;

- frame_size = areas->step / 8;
-
nrecv = recv(data->stream.fd, data->buffer, data->link_mtu,
MSG_WAITALL | (io->nonblock ? MSG_DONTWAIT : 0));

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]