linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Socket type in audio IPC
@ 2010-11-04  8:14 Andrzej Kaczmarek
  2010-11-06 11:08 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Kaczmarek @ 2010-11-04  8:14 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

We have a problem with audio IPC, sometimes following printout can be seen in logs when A2DP connection fails:
external/bluetooth/bluez/audio/pcm_bluetooth.c:1609:(audioservice_recv) Too short (1 bytes) IPC packet from bluetoothd

I was not able to catch this issue on my workstation for debugging so far, but it does not seem like ipc.h mismatch between BlueZ and ALSA plugin - we use one BlueZ version for a long time. Perhaps it's because of some unusual fragmentation (not sure how exactly sockets work internally) so my questions is why SOCK_STREAM sockets are used in audio IPC? Doesn't SOCK_SEQPACKET fit better here since we're dealing with messages rather than byte stream? There's no handling of fragmented packets in pcm_bluetooth.c at all so in case recv() returns less bytes than expected this is immediately returned as an error.

BR,
Andrzej


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

end of thread, other threads:[~2010-11-06 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04  8:14 Socket type in audio IPC Andrzej Kaczmarek
2010-11-06 11:08 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).