public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] how to change volume for a2dp headset?
@ 2008-10-16 16:31 Galaha Shine
  2008-10-16 16:51 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Galaha Shine @ 2008-10-16 16:31 UTC (permalink / raw)
  To: bluez-devel

hi,

I just wonder if it is possible to change a2dp headset volume by D-bus
command?

I notice there is a D-bus API SetSpeakerGain in bluez 3.36. I've try it
with my sco headset and it works. But it doesn't work when I try it with
a a2dp headset. Dbus returns an error that is unconnected. Then I
download bluez 4.13 which is the latest build. I notice that API
SetSpeakerGain becomes deprecated. Meanwhile I find control-api.txt
which seems haven't been implemented yet. 

Could anybody give me a hint how to control a2dp headset from host side
by D-bus command?

regards,
Galaha


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] how to change volume for a2dp headset?
  2008-10-16 16:31 [Bluez-devel] how to change volume for a2dp headset? Galaha Shine
@ 2008-10-16 16:51 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2008-10-16 16:51 UTC (permalink / raw)
  To: BlueZ development

Hi Galaha,

On Oct 16, 2008, at 19:31, Galaha Shine wrote:
> I just wonder if it is possible to change a2dp headset volume by D-bus
> command?
>
> I notice there is a D-bus API SetSpeakerGain in bluez 3.36. I've try  
> it
> with my sco headset and it works. But it doesn't work when I try it  
> with
> a a2dp headset. Dbus returns an error that is unconnected. Then I
> download bluez 4.13 which is the latest build. I notice that API
> SetSpeakerGain becomes deprecated. Meanwhile I find control-api.txt
> which seems haven't been implemented yet.
>
> Could anybody give me a hint how to control a2dp headset from host  
> side
> by D-bus command?

The simple answer is that you can't do that at the moment. BlueZ has  
never supported controller (CT) side features of the AVRCP profile.  
There has been some talk about adding friendly D-Bus methods for this  
into the org.bluez.Control interface but it seems we forgot to add  
place holders for it into the control-api.txt API doc when the other  
new AVRCP features (that David Stockwell has worked on) were added  
there. I guess we should look into implementing this once David's  
patches get integrated upstream, but until then you'll have to control  
your A2DP volume from the headphone side.

Johan 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-16 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16 16:31 [Bluez-devel] how to change volume for a2dp headset? Galaha Shine
2008-10-16 16:51 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox