* HFP - A2DP in BlueZ
@ 2009-09-18 9:33 Sasikiran Maddula
2009-09-18 9:55 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Sasikiran Maddula @ 2009-09-18 9:33 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org
Hi Johan,
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.
There was a discussion went with you and jothi probably 10 days back. I have some questions on that issue.
Your saying it works fine with the pavucontrol tool and pulseaudio. I am using pulseaudio 0.9.14 version. Whether it is sufficient to have the bluetooth profile switching. If I need to upgrade what version is the best suitable and suggest me on how to upgrade. Also whether pavucontrol is linked with the package for pulseaudio or it is separate. You mentioned that with the help of pavucontrol tool your able to do profile switching somewhat better. But I do not see any options in pavucontrol useful for bluetooth perspective. Could you guide me with more details.
Also you mentioned that the player I am using must be telephony aware directly or through some other component. Do you have any idea of any player which has that kind of facility.
Thanks,
Sasikiran.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HFP - A2DP in BlueZ
2009-09-18 9:33 HFP - A2DP in BlueZ Sasikiran Maddula
@ 2009-09-18 9:55 ` Johan Hedberg
2009-09-18 10:15 ` Sasikiran Maddula
0 siblings, 1 reply; 5+ messages in thread
From: Johan Hedberg @ 2009-09-18 9:55 UTC (permalink / raw)
To: Sasikiran Maddula; +Cc: linux-bluetooth@vger.kernel.org
Hi Sasikiran,
First of all, could you try to fix your email quoting. I found it quite
confusing to see my own text unquoted in your email.
On Fri, Sep 18, 2009, Sasikiran Maddula wrote:
> Your saying it works fine with the pavucontrol tool and pulseaudio. I am
> using pulseaudio 0.9.14 version. Whether it is sufficient to have the
> bluetooth profile switching. If I need to upgrade what version is the
> best suitable and suggest me on how to upgrade.
You'll need at least pulseaudio 0.9.15 but 0.9.17 would probably give you
the best results.
> Also whether pavucontrol is linked with the package for pulseaudio or it
> is separate. You mentioned that with the help of pavucontrol tool your
> able to do profile switching somewhat better. But I do not see any
> options in pavucontrol useful for bluetooth perspective. Could you guide
> me with more details.
Once you have Bluetooth audio working with pulseaudio you'll see what I
mean (there will be controls for toggling the profile as well as which
streams should go to the headset).
> Also you mentioned that the player I am using must be telephony aware
> directly or through some other component. Do you have any idea of any
> player which has that kind of facility.
No.
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HFP - A2DP in BlueZ
2009-09-18 9:55 ` Johan Hedberg
@ 2009-09-18 10:15 ` Sasikiran Maddula
0 siblings, 0 replies; 5+ messages in thread
From: Sasikiran Maddula @ 2009-09-18 10:15 UTC (permalink / raw)
To: Sasikiran Maddula, linux-bluetooth@vger.kernel.org
Hi Johan,
>
> First of all, could you try to fix your email quoting. I found it quite
> confusing to see my own text unquoted in your email.
>
> On Fri, Sep 18, 2009, Sasikiran Maddula wrote:
>
>> Your saying it works fine with the pavucontrol tool and pulseaudio. I am
>> using pulseaudio 0.9.14 version. Whether it is sufficient to have the
>> bluetooth profile switching. If I need to upgrade what version is the
>> best suitable and suggest me on how to upgrade.
>>
>
> You'll need at least pulseaudio 0.9.15 but 0.9.17 would probably give you
> the best results.
>
>
>> Also whether pavucontrol is linked with the package for pulseaudio or it
>> is separate. You mentioned that with the help of pavucontrol tool your
>> able to do profile switching somewhat better. But I do not see any
>> options in pavucontrol useful for bluetooth perspective. Could you guide
>> me with more details.
>>
>
> Once you have Bluetooth audio working with pulseaudio you'll see what I
> mean (there will be controls for toggling the profile as well as which
> streams should go to the headset).
>
>
>> Also you mentioned that the player I am using must be telephony aware
>> directly or through some other component. Do you have any idea of any
>> player which has that kind of facility.
>>
>
> No.
>
Thanks for your suggestion. Will take care of quoting from next time
onwards.
--Sasikiran
^ permalink raw reply [flat|nested] 5+ messages in thread
* promisc mode and broadcast BT sockets
@ 2009-09-04 12:29 Pavan Savoy
2009-09-07 9:56 ` Pavan Savoy
0 siblings, 1 reply; 5+ messages in thread
From: Pavan Savoy @ 2009-09-04 12:29 UTC (permalink / raw)
To: linux-bluetooth
Hi,
I remember that eth0 had some flags which sets the raw sockets into promisc mode, so that we can receive the sockets on the interface even if we are not the intended host.
does something like this exist for BT sockets ?
If a user-space process is creating the socket, I understand that the process which does _create, _bind would get the events which it is supposed to, but how ?
example: I run hcitool scan, and a remote pairing request comes in, would the hcitool process also have access to the pairing request ?
if YES- then good - my work is done,
but if NO -- How do I make it to ? + How do I make it receive if the socket is created and does in-kernel socket calls [the hacked up way of get_fs/set_fs of KERNEL_DS].
Thanks in advance.
Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: promisc mode and broadcast BT sockets
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
0 siblings, 1 reply; 5+ messages in thread
From: Pavan Savoy @ 2009-09-07 9:56 UTC (permalink / raw)
To: linux-bluetooth
Got it. [not top posting this time around....]
----- Original Message ----
> From: Pavan Savoy <pavan_savoy@yahoo.co.in>
> To: linux-bluetooth@vger.kernel.org
> Sent: Friday, 4 September, 2009 5:59:25 PM
> Subject: promisc mode and broadcast BT sockets
>
> Hi,
>
> I remember that eth0 had some flags which sets the raw sockets into promisc
> mode, so that we can receive the sockets on the interface even if we are not the
> intended host.
> does something like this exist for BT sockets ?
>
> If a user-space process is creating the socket, I understand that the process
> which does _create, _bind would get the events which it is supposed to, but how
> ?
>
> example: I run hcitool scan, and a remote pairing request comes in, would the
> hcitool process also have access to the pairing request ?
>
> if YES- then good - my work is done,
> but if NO -- How do I make it to ? + How do I make it receive if the socket is
> created and does in-kernel socket calls [the hacked up way of get_fs/set_fs of
> KERNEL_DS].
>
>
> Thanks in advance.
>
>
> Love Cricket? Check out live scores, photos, video highlights and more.
> Click here http://cricket.yahoo.com
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
It does seem that adding all ptypes and all events filter in kernel ['ala hcidump in user-mode] I am able to catch in the events and do get my recvmsg called - unfortunately kernel panicked [may not be a BT issue et. all - just may be i am poor at pointers].
I just want to know, how do I safely implement _send and _recv HCI socket functions in my kernel module ?
regards,
Pavan
Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread* HFP - A2DP in BlueZ
2009-09-07 9:56 ` Pavan Savoy
@ 2009-09-07 17:00 ` Jothikumar Mothilal
2009-09-07 17:32 ` Johan Hedberg
0 siblings, 1 reply; 5+ messages in thread
From: Jothikumar Mothilal @ 2009-09-07 17:00 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org
Hi Marcel and all,
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.
Is this feature available in BlueZ? If so from what version of BlueZ?
Is some one tried and succeeded with any headset/PC dongle combination.
Please update.
Thanks,
Jothi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HFP - A2DP in BlueZ
2009-09-07 17:00 ` HFP - A2DP in BlueZ Jothikumar Mothilal
@ 2009-09-07 17:32 ` Johan Hedberg
0 siblings, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2009-09-07 17:32 UTC (permalink / raw)
To: Jothikumar Mothilal; +Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-18 10:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18 9:33 HFP - A2DP in BlueZ Sasikiran Maddula
2009-09-18 9:55 ` Johan Hedberg
2009-09-18 10:15 ` Sasikiran Maddula
-- strict thread matches above, loose matches on Subject: below --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox