Skip to contentSkip to conversation

plugz: snd_pcm_hw_params_set_rate(8287) failed: Invalid argument

Bluez-users Wolfgang Wershofen 1 participant 2 messages Feb 20, 2007 – Feb 21, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm rather new to using bluetooth devices but I successfully managed to get my headset running using plugz. I use it for telephony purposes with twinkle (http://www.twinklephone.com).

I am able to hear people and talk to them during the phone call without problems, but I can't hear the ringtone created by twinkle on my headset. In the log files, I find the following error message:

snd_pcm_hw_params_set_rate(8287) failed: Invalid argument

After that message, twinkle stops generation of the ringtone and I am left in silence until the phone line is established.
In most cases, I will miss the first words from the other side, because the headset daemon returned to idle state while I was waiting and has to get back to streaming mode upon call reception.

I'm running on 64-bit OpenSuSE 10.2 with kernel 2.6.18 (SCO-patch applied). bluez-libs and bluez-utils is at 3.7, alsa at 1.0.13. I got bluetooth-alsa from CVS on Feb, 6th and installed it as described. My Dongle is a Level-One MDU-0005 (CSR chipset) and I have to different headsets, a JABRA BT-200 and a B-Speech Vitac. The Problem occurs with both of them.

I don't know, if this is a plugz issue or a twinkle issue and I didn't find anything related on the net.

Any hints on this?

thx
Wolfgang

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF2sM1gUafbxFH+p8RAp+1AKDaRylwPpiQR2mlGSUt3ZiT91bXGgCghV48 5lzHLc20qtgfpyVfwPmrGjw=
=SJbk
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Am Dienstag, 20. Februar 2007 schrieb Wolfgang Wershofen:

Quoted 12 lines

Hi,

I'm rather new to using bluetooth devices but I successfully managed to get my headset running using plugz. I use it for telephony purposes with twinkle (http://www.twinklephone.com).

I am able to hear people and talk to them during the phone call without problems, but I can't hear the ringtone created by twinkle on my headset. In the log files, I find the following error message:

snd_pcm_hw_params_set_rate(8287) failed: Invalid argument

(...)

Quoted 2 lines

I don't know, if this is a plugz issue or a twinkle issue and I didn't find anything related on the net.

Meanwhile, I got an answer from the author of twinkle as follows:

---- < snip > ----------------------------------------------------------- This error shows that setting the soundcard to an exact sample rate of 8287 fails (this sample rate comes from ringback.wav). Twinkle uses this call to set an exact rate:

err =3D snd_pcm_hw_params_set_rate (pcm_ptr, hw_params, sample_rate, 0)

This happens on some soundcard and is not fatal, as Twinkle next instructs the soundcard to pick a lower sampe rate that it can suppor with this call:

err =3D snd_pcm_hw_params_set_rate (pcm_ptr, hw_params, sample_rate, -1)

The -1 argument indicates that =A0the soundcard may pick a lower sample rate. It seems that your alsa does not accept this parameter. ---- < snap > -----------------------------------------------------------

I got around this problem by supplying twinkle with a wav audio file with =

exactly 8000 Hz sample rate and now it works.

But the question still remains: Why is the setting of a sample rate not =

possible with plugz?

cu
Wolfgang

-- =

Geek by nature - Linux by choice

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users