btusb+sco: unable to install hw params (set_params:979)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I am trying to get btusb to work with my two SCO headsets (BT250 and BT500v) on
two different machines (i386 and amd64), both running 2.6.26. I am
pretty much following the instructions at
http://wiki.bluez.org/wiki/HOWTO/AudioDevices, which are "valid for
bluez-utils-3.16 or newer". I am using Debian's 3.36-1 on both
machines.

My .asoundrc has this content:

  pcm.bt250 {
    type bluetooth
    device "00:07:A4:01:AB:A3"
    profile "sco"
  }
  ctl.bt250 {
    type bluetooth
  }

and I put the headset into pairing mode, then ran this command:

  $ strace -f -o /tmp/arecord.strace arecord -f S16_LE -D bt250 >/tmp/test.wav
  Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

This caused bluetooth-applet to prompt me for the passkey and
finally to tell me that the bonding had been established, just as
there's a little tone in the headset to acknowledge the connection.

However, /tmp/test.wav won't grow, and after a few seconds, arecord
exits with $?=0 (!!) after spouting to the terminal:

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]

/tmp/test.wav is size 0. :(

I see precisely the same behaviour with any combination of the two
machines, the two headsets and three bluetooth dongles. Yes, I tried
them all. Yes, I am somewhat desperate by now.

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

Any clues what could be going on?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"i wish i hadn't slept all day, it's really lowered my productivity"
                                                   -- robert mcqueen
 
spamtraps: madduck.bogus@xxxxxxxxxxx

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux