From: Pablo Barrantes <pablo.barrantes@ridgerun.com>
To: linux-bluetooth@vger.kernel.org
Subject: A2DP optional codecs support
Date: Wed, 19 Sep 2012 11:31:08 -0600 [thread overview]
Message-ID: <505A015C.5060002@ridgerun.com> (raw)
Hi,
I have successfully started audio streaming using A2DP profile from
an Android and iOS device to an embedded system under development. The
embedded system is using bluez, pulseaudio, ALSA and a bluetooth USB
dongle to capture the stream. By default the system is choosing SBC
encodification, but now I would like to use MPEG (AAC and MP3), this is
where it got complicated since I've been looking all around for
documentation or usage cases of A2DP with MPEG codecs with no success.
So here are a some questions I have, hope you can help me with them:
1. First, I'd like to have a better understanding of how will bluez
behave under this circumstances. Assuming that the source (Android or
iOS) is streaming MPEG data, is bluez capable of processing the packages
and then interact with another application (a pulse module maybe?) to
decode and play the data?
2. Related to the previous, my current audio.conf file has this
couple lines that are supposed to enable MPEG:
[A2DP]
SBCSources=0
MPEG12Sources=1
is that correct? Also, is there a way to "force" bluez to choose MPEG
over SBC?
3. How can I know which codec was selected on the negotiation process?
This one isn't directly related to bluez, but is still valid and maybe
somebody on this mailing list can answer it:
4. As mentioned before, I'm using an Android smartphone to stream
data to my embedded system and Android uses bluez to support bluetooth.
Is is possible to stream using MPEG encoded data with such devices?
FYI the kernel/packages version on my system are:
bluez-4.98 (had problems cross-compiling 4.101)
alsa-lib-1.0.25
pulseaudio-2.1
linux-kernel-2.6.32 (pretty old, but it's the one supported ATM)
Thanks in advance,
--Pablo
reply other threads:[~2012-09-19 17:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=505A015C.5060002@ridgerun.com \
--to=pablo.barrantes@ridgerun.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).