[Bluez-devel] RE : a2dpd: audio connection breaks every 300 seconds

Frederic Dalleau
2007-01-15T07:03:44Z

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

Robert,

> A2DPD[155.135]: a2dp_transfer_raw: Wrote -1 not 603 bytes.

The write call returned EAGAIN, so we should resend the data after a while.

> I attached the complete logfile. It was created by a slightly modified version
> of a2dpd that tries to resend the data several times (with 1/10/20 us
> delay) - to no avail.

It should succeed if you wait long enough. Set the delay to 2000 and do more tries (like 1000). Unfortunately, waiting too much will lead to gaps in the sound when this happen.

I think the cause is elsewhere, could you send us the hcidump -V log?
Do you have another program using BlueZ? Another headset to try?
You could try a shorter bitpool (say 32) if your headset supports it to save some bandwith.

Frédéric

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3176 bytes --]

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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