From: Chanyeol Park <chanyeol.park@samsung.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Question about A2DP, Pulseaudio.
Date: Wed, 02 Nov 2011 16:39:28 +0900 [thread overview]
Message-ID: <4EB0F3B0.6050902@samsung.com> (raw)
In-Reply-To: <CABBYNZJ8F7U5RpNkyv0QTrceK2LZbjitxsWAfnGMPeW7K=ti4g@mail.gmail.com>
Hello
On 2011년 10월 10일 22:59, Luiz Augusto von Dentz wrote:
> Hi Chan-yeol,
>
> On Mon, Oct 10, 2011 at 11:11 AM, Chan-yeol Park
> <chanyeol.park@samsung.com> wrote:
>> Hello bluetooth developers.
>>
>> I have a few questions about BlueZ,PulseAudio.
>> If there are any plan to develop. I want to discuss how to implement the
>> below.
>>
>> 1. How to handle New Codec(A2DP) between BlueZ and PulseAudio
>> As far as I understand puleaduio add_card() working by UUID info.
>> however , in case of mpeg and other codec, we can't use it.
> You can have whatever you want as capabilities including new codecs,
> so yes it is, or intended to be, possible to have your own SEP
> capabilities. UUID in that case only defines the profile/role of the
> endpoint you are registering, in fact with test/simple-endpoint it is
> already possible to register mp3 endpoints.
>
>> I think AudioSink dbus interface should provide codec info that headset
>> supports. Based on it, PulseaAudio can know headset support codec info.
> We are trying to avoid using device object to expose this info because
> it creates a need of device detection on the clients which is not that
> trivial to get it right e.g. PA module-bluetooth-discover. Also the
> matching capabilities is done by bluetoothd, PA just receives the
> transport configuration, the only thing that is not possible right now
> is to force one specific endpoint over the others, what you can do
> however is to register this specific endpoint using a dedicated
> process/connection (e.g. a media player) and then call Audio.Connect
> or AudioSink.Connect from that same process/connection, in other words
> the sender's endpoint have higher priority than the other endpoint
> registered.
>
> Note that PA cannot mix audio encoded so it just a pass through, so it
> is kind tricky to detect whether to use an endpoint or not specially
> if the application is not streaming only encoded data.
>
>> Bluez audio.conf should have option related to this.
>>
>> 2. auto_connect.
>> Could you explain this purpose?
> This is only valid for the only API, when set this indicates to
> bluetoothd that if the device is not connected to start connecting to
> it, which means PA will be blocked until it connects which IMO is a
> bad.
>
>> 4. Is there anyone could explain sco_sink, sco_source? If there are ALSA
>> code related to it, could you tell me the link that explain ?
> This is used when SCO packets are not routed to HCI, SCO socket
> read/writes won't do anything, in that case we need a device to
> read/write the data. Apparently some system don't even bother
> exporting this audio path to the software stack because it is only
> active while on call, if this is your case then it means we cannot
> control the audio routing in software and we probably should do
> nothing (e.g. set sco_sink/sco_source to "none" and when HFP/HSP is
> active set card profile to 'Off'), but note that this type of
> configuration has many limitation for instance a system like that
> cannot do navigation or voice commands using SCO.
>
There is an example:
Headset A2DP Sink(SEP 1:SBC,SEP 3:MP3),
Player A2DP Source(SEP 1:SBC, SEP 2: MP3)
Some user wants to use SBC codec connection or some user may want to use
MP3.
However in the bluez, there is no module or interface to handle user
preference as far as I understand.
And my understand is that bluez current implementation just try to find
the nearest sep combination.
If they search from SEP 1, naturally SBC codec is selected..
Could you explain my question?
BR
Chanyeol Park
next prev parent reply other threads:[~2011-11-02 7:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 8:11 Question about A2DP, Pulseaudio Chan-yeol Park
2011-10-10 13:59 ` Luiz Augusto von Dentz
2011-11-02 7:39 ` Chanyeol Park [this message]
2011-11-02 14:13 ` Marcel Holtmann
2011-10-11 6:07 ` Arun Raghavan
2011-10-11 6:19 ` Lin, Mengdong
2011-10-11 10:36 ` Luiz Augusto von Dentz
2011-10-12 5:20 ` Lin, Mengdong
2011-10-12 7:31 ` Luiz Augusto von Dentz
2011-10-13 3:14 ` Lin, Mengdong
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=4EB0F3B0.6050902@samsung.com \
--to=chanyeol.park@samsung.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.