linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andre Renaud <andre@bluewatersys.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: PCM audio output
Date: Thu, 1 Sep 2011 10:24:16 +0300	[thread overview]
Message-ID: <20110901072416.GA17434@dell.ger.corp.intel.com> (raw)
In-Reply-To: <4E5F1DD6.2090102@bluewatersys.com>

Hi Andre,

On Thu, Sep 01, 2011, Andre Renaud wrote:
> I am working with an embedded device which has a Marvell 8688 based
> bluetooth chip. We would like to use an external headset, but rather
> than have the audio be transmitted over the HCI layer, we'd like it to
> be sent directly out the PCM lines from the bluetooth chip, thus Linux
> really doesn't see any audio data, but is responsible for setting up the
> link/keys/authentication etc...
> 
> Are there any instructions on how to go about this? I've had a quick
> look around, and this doesn't seem to be a particularly popular
> configuration.

It might not be common on Linux PC's but most embedded systems (e.g.
phones) running Linux/BlueZ use PCM routing. Essentially your audio
subsystem needs to "know" that PCM routing is in place and that the SCO
socket received over the (now deprecated) audio unix socket interface or
the (new) Media interface isn't much more than a /dev/null (it's
a bit more useful than that since it lets the audio subsystem know that
there's a SCO connection and allows monitoring its lifetime through
POLLHUP/POLLERR).

If your system uses PulseAudio you're in luck since it has built-in
support for this. However, pulse expects the kernel to provide an ALSA
device abstraction for the PCM hardware link to the Bluetooth
controller. You can tell the bluetooth-device module the name of this
special ALSA device through the sco_sink and sco_source parameters.

Johan

  reply	other threads:[~2011-09-01  7:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-01  5:53 PCM audio output Andre Renaud
2011-09-01  7:24 ` Johan Hedberg [this message]
2011-09-01 15:31   ` Brad Midgley
2011-09-01 21:41     ` Luiz Augusto von Dentz
2011-09-01 21:13   ` Andre Renaud
2011-09-02  8:23     ` Johan Hedberg

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=20110901072416.GA17434@dell.ger.corp.intel.com \
    --to=johan.hedberg@gmail.com \
    --cc=andre@bluewatersys.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;
as well as URLs for NNTP newsgroup(s).