public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset)
  2008-08-26 17:19     ` Marcel Holtmann
@ 2008-09-05 16:26       ` martin f krafft
  2008-09-05 17:00         ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: martin f krafft @ 2008-09-05 16:26 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1643 bytes --]

also sprach Marcel Holtmann <marcel@holtmann.org> [2008.08.26.1819 +0100]:
> don't use headsetd. Use the audio stuff that comes with bluez-utils.

So I am trying, and I got a little further, installing the right
lines into .asoundrc as per
http://wiki.bluez.org/wiki/HOWTO/AudioDevices. I have gotten beyond
issues of

  bt_audio_service_open: connect() failed: Connection refused (111)
  aplay: main:564: audio open error: Connection refused 

but it still doesn't want to work. If I execute

  arecord -D bt500v -f S16_LE | aplay -D bt500v -f S16_LE

then the headset makes a noise, the bluetooth LED flashes and
arecord prints

  Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

But then after about 30 or 40 seconds, it all fails:

  ALSA lib pcm_bluetooth.c:464:(bluetooth_hsp_hw_params) BT_SETCONFIGURATION failed : Input/output error(5)
  arecord: set_params:979: 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: 125000
  PERIOD_SIZE: 1000
  PERIOD_BYTES: 2000
  PERIODS: 4
  BUFFER_TIME: 500000
  BUFFER_SIZE: 4000
  BUFFER_BYTES: 8000
  TICK_TIME: [0 0]
  aplay: playback:2019: read error

I have bluez-audio installed, but /etc/bluetooth/audio.conf is
default. No PulseAudio or anything other than plain ALSA here...

Any clues?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"alas, i am dying beyond my means."
                                                        -- oscar wilde
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #1.2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset)
  2008-09-05 16:26       ` [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset) martin f krafft
@ 2008-09-05 17:00         ` Marcel Holtmann
  2008-09-08 20:33           ` martin f krafft
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2008-09-05 17:00 UTC (permalink / raw)
  To: BlueZ development

Hi Martin,

> > don't use headsetd. Use the audio stuff that comes with bluez-utils.
> 
> So I am trying, and I got a little further, installing the right
> lines into .asoundrc as per
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices. I have gotten beyond
> issues of
> 
>   bt_audio_service_open: connect() failed: Connection refused (111)
>   aplay: main:564: audio open error: Connection refused 
> 
> but it still doesn't want to work. If I execute
> 
>   arecord -D bt500v -f S16_LE | aplay -D bt500v -f S16_LE
> 
> then the headset makes a noise, the bluetooth LED flashes and
> arecord prints
> 
>   Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
> 
> But then after about 30 or 40 seconds, it all fails:
> 
>   ALSA lib pcm_bluetooth.c:464:(bluetooth_hsp_hw_params) BT_SETCONFIGURATION failed : Input/output error(5)
>   arecord: set_params:979: 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: 125000
>   PERIOD_SIZE: 1000
>   PERIOD_BYTES: 2000
>   PERIODS: 4
>   BUFFER_TIME: 500000
>   BUFFER_SIZE: 4000
>   BUFFER_BYTES: 8000
>   TICK_TIME: [0 0]
>   aplay: playback:2019: read error
> 
> I have bluez-audio installed, but /etc/bluetooth/audio.conf is
> default. No PulseAudio or anything other than plain ALSA here...
> 
> Any clues?

actually I have none. It simply works for me. And I have tested it a
lot. There are some rare conditions where the btusb driver is off on the
16-bit boundaries, but I am looking at a fix for it. However this will
not disturb the audio service. You just don't here anything.

Regards

Marcel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset)
  2008-09-05 17:00         ` Marcel Holtmann
@ 2008-09-08 20:33           ` martin f krafft
  0 siblings, 0 replies; 4+ messages in thread
From: martin f krafft @ 2008-09-08 20:33 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

also sprach Marcel Holtmann <marcel@holtmann.org> [2008.09.05.1800 +0100]:
> actually I have none. It simply works for me. And I have tested it a
> lot. There are some rare conditions where the btusb driver is off on the
> 16-bit boundaries, but I am looking at a fix for it. However this will
> not disturb the audio service. You just don't here anything.

Where should we go from here? How can I help debug this?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
no cat has eight tails.
a cat has one tail more than no cat.
therefore, a cat has nine tails.
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #1.2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset)
@ 2008-09-22 21:03 Stuart Pook
  0 siblings, 0 replies; 4+ messages in thread
From: Stuart Pook @ 2008-09-22 21:03 UTC (permalink / raw)
  To: bluez-devel

Hello

I have read Martin's messages concerning his Jabra BT500v bluetooth headset.

I have similar problems with my Jabra JX10 headset.  I have installed 
bluez-4.4. When I run aplay with a 2.6.26 kernel, aplay works. When I 
run aplay with linux 2.6.27-rc5 I can hear a hiss when my PC connects to 
the headset but no music.

I have written a long bug report on 
http://bugzilla.kernel.org/show_bug.cgi?id=11514 with the output of 
hcidump -X -V and the messages from bluetoothd. Could someone have a 
look and give me a hint about what I might be doing wrong? Has anyone 
had any luck with Jabra headsets and 2.6.27-rc5 or should I buy a 
different brand of headset? Marcel Holtmann said that "It simply works 
for me." What headsets have you tested?

aplay always says "Unable to install hw params" after bluetoothd says 
"connect(): Connection timed out (110)" but hcidump shows lots of SCO 
packets being sent to the headset.

thanks
Stuart

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-09-22 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 21:03 [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset) Stuart Pook
  -- strict thread matches above, loose matches on Subject: below --
2008-08-22  7:36 [Bluez-devel] SCO flowcontrol patch v4.4 on 2.6.25/6 causes hardlocks when connecting to BT device martin f krafft
2008-08-22  8:33 ` Marcel Holtmann
2008-08-26 16:35   ` [Bluez-devel] btusb+sco failing to play sound through Jabra BT500v headset (was: SCO flowcontrol patch v4.4 on 2.6.25/6 causes) " martin f krafft
2008-08-26 17:19     ` Marcel Holtmann
2008-09-05 16:26       ` [Bluez-devel] "unable to install hw params" to bluetooth (SCO) headset (was: btusb+sco failing to play sound through Jabra BT500v headset) martin f krafft
2008-09-05 17:00         ` Marcel Holtmann
2008-09-08 20:33           ` martin f krafft

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