Hi,
On Fri, Sep 25, 2009, Nick Davies wrote:
OK, but I don't know where the RFCOMM socket is created,
audio/headset.c
how can I connect to existing socket?
You can't really but you also shouldn't need to. You can request
bluetoothd to change the volume using the SetProperty("SpeakerGain", 0-15)
method on the org.bluez.Headset interface on the D-Bus object that
represents your headset. There's a python script in the bluez source that
lets you do it too, e.g:
test/test-telephony <remote address> speakergain 10
test/test-telephony <remote address> microphonegain 5
Johan