public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !
@ 2007-04-15  9:57 Brandon Philips
  2007-04-15 18:34 ` Brad Midgley
  2007-04-24 18:48 ` Marc Haber
  0 siblings, 2 replies; 13+ messages in thread
From: Brandon Philips @ 2007-04-15  9:57 UTC (permalink / raw)
  To: bluez-devel

Hello-

I am running 2.6.21-rc6 with sco-flowcontrol-v4.2.diff applied and I am
getting the following error when trying to use my Platronics 640
headset.  The computer is a Thinkpad x60s running Debian unstable.

Any suggestions?  I am willing to test patches, etc.

Cheers,

	Brandon

philips@plankton:~$ aplay -D headset /usr/share/sounds/ekiga/busytone.wav
Playing WAVE '/usr/share/sounds/ekiga/busytone.wav' : Signed 16 bit
Little Endian, Rate 8000 Hz, Mono
ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number of
SCO buffers : please upgrade your Kernel !
aplay: set_params:965: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 3000
PERIOD_SIZE: 24
PERIOD_BYTES: 48
PERIODS: 167
BUFFER_TIME: 501000
BUFFER_SIZE: 4008
BUFFER_BYTES: 8016
TICK_TIME: [0 0]

philips@plankton:~$ headsetd -n
headsetd[6326]: Bluetooth headset daemon version 0.5
headsetd[6326]: Configuration phase ended: target bdaddr is
00:03:89:59:DE:F9, timeout is 6000 ms
headsetd[6326]: Changing state: Idle-->Paging
headsetd[6326]: Changing state: Paging-->Connecting
headsetd[6326]: Changing state: Connecting-->Ready
headsetd[6326]: Changing state: Ready-->Opening
headsetd[6326]: SCO channel opened handle=0x0001 mtu=64
headsetd[6326]: Changing state: Opening-->Streaming
headsetd[6326]: Appli closed socket
headsetd[6326]: Changing state: Streaming-->Zombie
headsetd[6326]: Nobody uses SCO channel anymore, closing it.
headsetd[6326]: Changing state: Zombie-->Connected

Relevant dmesg output:
hci_scodata_packet: hci0 SCO packet for unknown connection handle 1

~/.asoundrc
pcm.headset {
        @args [BDADDR TIMEOUT]

        # The Bluetooth device address for target headset, used for
        # Audio Gateway (PC) initiated connections
        # Please note that this value is ignored when the connection is
        # Headset initiated
        @args.BDADDR {
                type string
                default 00:03:89:59:XX:XX  # XX:XX for privacy
        }

        # This value represents how long we will try to reach the
        # headset, until we give up.
        # Value is in milliseconds
        @args.TIMEOUT {
                type integer
                default 6000
        }

        type        sco
        bdaddr      $BDADDR
        timeout     $TIMEOUT
}

ctl.headset {
        type sco
}


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !
@ 2007-04-22  6:52 John Frankish
  2007-04-22 16:50 ` Brad Midgley
  0 siblings, 1 reply; 13+ messages in thread
From: John Frankish @ 2007-04-22  6:52 UTC (permalink / raw)
  To: bluez-devel

Hi,

Apologies for jumping onto the end of this thread but I joined the 
mailing list a few days after the initial message.

 > ALSA lib pcm_sco.c:273:(sco_headset_hw_params) Unable to set number of
 > SCO buffers : please upgrade your Kernel !

I have exactly the same error on a machine using DSL-N (2.6.12) and a 
Sonyericsson HBH-610 Bluetooth headset - the same setup works fine 
with DSL (2.4.26) and bluezsco.

I can compile plugz without problems using:

cvs 
-d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa 
login
cvs 
-d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa 
co plugz
cd plugz
./bootstrap
./configure --prefix=/usr
make
sudo make install

But what cvs command is meant by "cvs update your plugz to head and 
it should work"?

Thanks
John


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2007-04-29 20:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-15  9:57 [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel ! Brandon Philips
2007-04-15 18:34 ` Brad Midgley
2007-04-16  7:35   ` Brandon Philips
2007-04-24 18:48 ` Marc Haber
2007-04-29 12:34   ` Klaus
2007-04-29 16:17     ` Klaus
2007-04-29 16:18     ` Brad Midgley
2007-04-29 20:58       ` Klaus
  -- strict thread matches above, loose matches on Subject: below --
2007-04-22  6:52 John Frankish
2007-04-22 16:50 ` Brad Midgley
2007-04-23  4:07   ` John Frankish
2007-04-24 13:45     ` Brad Midgley
2007-04-25  5:56       ` John Frankish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox