linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] SCO stuck on a Netgear WGT634U (mips)
@ 2006-03-03  0:14 Henryk Plötz
  2006-03-03  4:27 ` Brad Midgley
  0 siblings, 1 reply; 7+ messages in thread
From: Henryk Plötz @ 2006-03-03  0:14 UTC (permalink / raw)
  To: bluez-devel

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

Moin,

I'm currently trying to get btsco working on a my Netgear WGT634U
running OpenWgt (with a lot of custom packages) on kernel 2.6.12-rc3
and current btsco cvs. I can't seem to get it working: Each program
that wants to play audio simply stalls (when using aplay it stops in a
poll(), when using oss the write blocks).

The syslog says:
snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 16002 count: 4000 
snd-bt-sco: playback_trigger 1 
snd-bt-sco: setting playback to bspcm

hcidump says:
< HCI Command: Add SCO Connection (0x01|0x0007) plen 4
  0000: 2a 00 e0 00                                       *...
> HCI Event: Command Status (0x0f) plen 4
  0000: 00 01 07 04                                       ....
> HCI Event: Max Slots Change (0x1b) plen 3
  0000: 2a 00 01                                          *..
> HCI Event: Connect Complete (0x03) plen 11
  0000: 00 2d 00 ed 03 30 f4 08  00 00 00                 .-...0.....
> HCI Event: Max Slots Change (0x1b) plen 3
  0000: 2a 00 03                                          *..

When looking through kernel/btsco.c this caught my attention:
 /* This will block until we receive data or a signal */
 len = sock_recvmsg(sock, &msg, BUF_SIZE,0);

I added a dprintk("foo\n"); and a dprintk("bar\n"); after that line and
get foo, bar, foo in the logs, so yes, it is blocking at this line.

At this point I'm stuck. Any hints as to in what direction I should
investigate further would be highly appreciated.

-- 
Henryk Plötz
Grüße aus Berlin
~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~
~ Help Microsoft fight software piracy: Give Linux to a friend today! ~

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

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

end of thread, other threads:[~2006-03-06 19:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03  0:14 [Bluez-devel] SCO stuck on a Netgear WGT634U (mips) Henryk Plötz
2006-03-03  4:27 ` Brad Midgley
2006-03-04  1:41   ` Henryk Plötz
2006-03-04  7:47     ` Henryk Plötz
2006-03-06  7:43       ` Pieter Poorthuis
2006-03-06  8:01         ` Henryk Plötz
2006-03-06 19:10           ` Brad Midgley

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).