public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: incoming connection conflicting with alsa?
Date: Thu, 1 Jan 2009 23:25:36 +0200	[thread overview]
Message-ID: <4B40718A-55AA-40D1-AD54-469C0917070F@gmail.com> (raw)
In-Reply-To: <60689.209.216.239.242.1230838689.squirrel@webmail.ipns.com>

Hi Dave,

On Jan 1, 2009, at 21:38, Dave Schile wrote:
> I think I'm having  a conflict between alsa and my headset device  
> making
> its own connection.  If there is no connection, programs that are  
> set to
> use the alsa bluetooth  device connect fine.  If I have press the  
> button
> on the headset before alsa can connect to it, te device makes its  
> own ACL
> connection and alsa becomes unable to get the device.
>
> If alsa makes the connection first then  press the button on the  
> headset
> the incoming connection takes the place of the alsa connection and  
> alsa
> loses the device.
>
> How can I solve this?  I've tried a number of hciconfig settings,  
> but the
> button press always creates a connection, breaking the alsa one.

It shouldn't matter if the headset is already connected or if  
bluetoothd needs to create the connection on-demand (when needed by an  
alsa application). In both cases the alsa application should be able  
to pick up the bluetooth audio stream just fine. Could you post the  
output of hcidump -XV when the headset creates a connection to you and  
also when you try to use it with alsa after this (which fails)? Any  
debug output from bluetoothd when this happens could also help.

One potential cause that comes to my mind is that this headset might  
have a buggy HSP implementation (I assume you've got HFP disabled  
based on your other email about the AnswerRequested signal which is  
only available for HSP connections). Maybe the headset tries to  
connect HFP, fails (since you don't have it enabled) but stops there  
even though the correct behavior would be to continue trying to  
connect HSP instead. Which headset model is this btw?

Johan

      reply	other threads:[~2009-01-01 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 19:38 incoming connection conflicting with alsa? Dave Schile
2009-01-01 21:25 ` Johan Hedberg [this message]

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=4B40718A-55AA-40D1-AD54-469C0917070F@gmail.com \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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