public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] 3.16 + alsa + headset problems...
Date: Fri, 31 Aug 2007 16:05:38 +0200	[thread overview]
Message-ID: <1188569138.13373.90.camel@violet> (raw)
In-Reply-To: <Pine.LNX.4.61.0708310929010.31862@gur-jnyy.znppbeznpx.arg>

Hi David,

> Hi fellow bluezers.  I followed the instructions from
>     http://wiki.bluez.org/wiki/HOWTO/AudioDevices
> 
> and I can successfully play audio on my headset via mplayer and alsa 
> (yea!).  However, I'm having a few problems.  The first is the following 
> error that mplayer spits out:
>      [AO_ALSA] alsa-lib: pcm_bluetooth.c:306:(bluetooth_hsp_hw_params)
>      Protocol not available (92)
> 
> I plays the audio, but I get that error (consitantly).  I peaked at the 
> source and it looks as though you're intentionally ignoring the error. 
> Any idea why I'm seeing it?  Here's what I see in /var/log/messages:
> 
> Aug 31 09:30:13 spooranch audio[22006]: Accepted new client connection on unix socket (fd=8)
> Aug 31 09:30:13 spooranch audio[22006]: Package PKT_TYPE_CFG_REQ:0
> Aug 31 09:30:13 spooranch audio[22006]: State changed /org/bluez/audio/device0: DISCONNECTED -> CONNECTING
> Aug 31 09:30:17 spooranch hcid[22000]: link_key_request (sba=00:11:F6:0A:E6:25, dba=00:0D:FD:0A:5F:C5)
> Aug 31 09:30:17 spooranch audio[22006]: /org/bluez/audio/device0: Connecting to 00:0D:FD:0A:5F:C5 channel 1
> Aug 31 09:30:18 spooranch audio[22006]: State changed /org/bluez/audio/device0: CONNECTING -> CONNECTED
> Aug 31 09:30:18 spooranch audio[22006]: /org/bluez/audio/device0: Connected to 00:0D:FD:0A:5F:C5
> Aug 31 09:30:18 spooranch audio[22006]: State changed /org/bluez/audio/device0: CONNECTED -> STREAM_STARTING
> Aug 31 09:30:18 spooranch audio[22006]: SCO socket opened for headset /org/bluez/audio/device0
> Aug 31 09:30:18 spooranch audio[22006]: SCO fd=10
> Aug 31 09:30:18 spooranch audio[22006]: fd=10, fd_opt=2, channels=1, pkt_len=48,sample_size=2, rate=8000
> Aug 31 09:30:18 spooranch audio[22006]: 31 bytes sent
> Aug 31 09:30:18 spooranch audio[22006]: 22 bytes sent
> Aug 31 09:30:18 spooranch audio[22006]: State changed /org/bluez/audio/device0: STREAM_STARTING -> STREAMING
> Aug 31 09:34:08 spooranch audio[22006]: Unix client disconnected (fd=8)
> Aug 31 09:34:08 spooranch audio[22006]: State changed /org/bluez/audio/device0: STREAMING -> DISCONNECTED
> 
> >From what I can see, alsa is using the headset profile by default.  Is 
> there something I can put in my .asoundrc to force a2dp?  I'd like to see 
> what the quality is like.

if you headset supports A2DP then it should pick that before using the
SCO channels. However you can add "profile a2dp" to .asoundrc to force
it to use A2DP.

> OK.  That's problem #1, and I bring it up because it may be related to 
> problem #2 (and the main reason I'm playing with a bluetooth headset).  I 
> tried to use my headset with Ekiga (aka gnomemeeting).  It uses alsa, so 
> encouraging it to use the headset was pretty easy, but the problem is that 
> it barfed with an error about requiring a full duplex device.  I'm just 
> getting started with this whole bluetooth thing so I guess the first 
> question is is it/can it be full duplex?  And, if so, how do I go about 
> convincing alsa that it is.

It is full duplex by definition, but we just started to make voice
headsets work. So there might be still problems.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2007-08-31 14:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 13:57 [Bluez-users] 3.16 + alsa + headset problems David MacCormack
2007-08-31 14:05 ` Marcel Holtmann [this message]
2007-09-01  0:55   ` David MacCormack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1188569138.13373.90.camel@violet \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox