Re: BT Headset connected but no sound

Guillaume Bedot <[email protected]>
Newsgroups gmane.linux.bluez.user
Message-ID <1201948807.11895.10.camel@littletux>
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.

-------------------------------------------------------------------------
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/

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
bluez-utils-3.24-fixheadset.patch (text/x-patch, 514 B)
--- 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));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.