public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Jothikumar Mothilal <Jothikumar.Mothilal@Atheros.com>
Cc: "linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	"marcel@holtmann.org" <marcel@holtmann.org>
Subject: Re: HFP - A2DP in BlueZ
Date: Mon, 7 Sep 2009 20:32:44 +0300	[thread overview]
Message-ID: <20090907173244.GA25473@jh-x301> (raw)
In-Reply-To: <44EE5C37ADC36343B0625A05DD408C48506920BA83@CHEXMB-01.global.atheros.com>

Hi Jothi,

On Mon, Sep 07, 2009, Jothikumar Mothilal wrote:
> I was able to test HFP/A2DP independently.
> Is BlueZ supports multi profiles?
> For example, like A2DP with HFP - When you listen song, if you get a Skype call,
> Stop audio streaming and attend the call and start streaming once the
> call is disconnected.

Yes, we support it. The recommended way to connect both profiles is to
simply use the org.bluez.Audio.Connect() D-Bus method. You'll need to have
some integration with the actual telephony subsystem (e.g. skype in your
case) as well as some extra handling in the component that interfaces with
bluetoothd over the audio unix socket (pulseaudio/gstreamer/alsa/etc).
Your media player should probably also be telephony aware or at least
provide an interface to a component that is telephony aware so that the
playing can be paused for the duration of a call.

In Maemo 5 this all works quite well by using the bluez maemo telephony
driver and a special pulseaudio policy module which handles the stream
switching on the pulseaudio side. Even with upstream pulseaudio on my
Ubuntu laptop I can get the profile switching somewhat well working with
the help of the pavucontrol tool.

> Is this feature available in BlueZ? If so from what version of BlueZ?

In theory any 4.x version should be fine, but the newer the version the
higher the chances that it'll work well.

Johan

  reply	other threads:[~2009-09-07 17:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 12:29 promisc mode and broadcast BT sockets Pavan Savoy
2009-09-07  9:56 ` Pavan Savoy
2009-09-07 17:00   ` HFP - A2DP in BlueZ Jothikumar Mothilal
2009-09-07 17:32     ` Johan Hedberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-18  9:33 Sasikiran Maddula
2009-09-18  9:55 ` Johan Hedberg
2009-09-18 10:15   ` Sasikiran Maddula

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=20090907173244.GA25473@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=Jothikumar.Mothilal@Atheros.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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