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: Fri, 2 Sep 2011 11:23:09 +0300	[thread overview]
Message-ID: <20110902082308.GA17562@dell> (raw)
In-Reply-To: <4E5FF591.7060905@bluewatersys.com>

Hi Andre,

On Fri, Sep 02, 2011, Andre Renaud wrote:
> Another issue I'm trying to get my head around, is that the system I'm
> working on doesn't have audio attached to the CPU. The PCM lines are
> going to an external FPGA which is entirely independent. So the Linux
> kernel has no Alsa drivers, and no audio codec. Due to space limitations
> of the filesystem, subsystems like PulseAudio are probably not going to
> be available.

I suppose you still have *some* component in the system which knows
about the need for a SCO link? All you'd need is to have this component
register an endpoint through the BlueZ Media API and have it request the
SCO link whenever you need it. Luiz already pointed out in his email the
test/simple-endpoint script which should give you some idea of what to
do. When there's a HFP or HSP connection you'll get the D-Bus object
path of the media transport object through the SetConfiguration callback
of the endpoint you registered and then you can call the Acquire method
that the transport object provides to get the actual SCO link.

> I think this essentially comes down to vendor specific HCI writes to
> toggle the audio path, but I'm not sure if I have a full understanding
> of how it all works.
> 
> Can anyone tell me how they went about setting up an audio connection
> with an Bluetooth headset, and then configured the audio to go over the
> PCM channel?

The PCM routing part will always be hardware dependent. So what someone
else did won't necessarily help you much unless they had the exact same
hardware as you. If the setting isn't hard-coded in the controller you'd
typically set it through some vendor-dependent command during the
initialization phase.

Johan

      reply	other threads:[~2011-09-02  8:23 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
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 [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=20110902082308.GA17562@dell \
    --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).