2007-04-15 09:57:29

by Brandon Philips

[permalink] [raw]
Subject: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2007-04-24 18:48:26

by Marc Haber

[permalink] [raw]
Subject: Re: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !

On Sun, Apr 15, 2007 at 02:57:29AM -0700, Brandon Philips wrote:
> 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.

I have exactly the same issue on a hp notebook, also running Debian
unstable. I exported current CVS HEAD, applied the Debian .diff and
built a local package, and I still have the same problem. Only that
the "Unable to set number of SCO buffers" error message now has
pcm_sco.c:277 as line number.

Any more hints?

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-04-16 07:35:35

by Brandon Philips

[permalink] [raw]
Subject: Re: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !

On 12:34 Sun 15 Apr 2007, Brad Midgley wrote:
> Brandon
>
> cvs update your plugz to head and it should work.

Thanks- it seems the Debian package in unstable was a few revisions
behind.

Now I have mplayer playing great- mpd is broken though. It connects to
my headset but then quickly dies. I will have to ping the developers on
that.

Thanks!

Brandon

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-04-15 18:34:57

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !

Brandon

cvs update your plugz to head and it should work.

brad

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

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel