Hello Marcel and Luiz, On 06/08/2012 22:30, Luiz Augusto von Dentz wrote: > Hi Marcel, > > On Sun, Aug 5, 2012 at 7:37 AM, Marcel Holtmann wrote: >>> +org.bluez.TelephonyAgent using this new interface. This will setup a SDP record >>> +for the profile and a RFCOMM server listening for incoming connection. >>> + >>> +When a new device is connected, NewConnection method of TelephonyAgent is >>> +called. The telephony agent should reply to it after proper communication >>> +establishment (directly for HSP or after SLC setup completes for HFP). >> >> We need to describe on how HFP 1.6 with wideband speech is handled as >> well. > > I need to look in detail when the audio configuration is done in HFP > 1.6, in any case a the transport object can be used to signal wideband > speech which PulseAudio should be able to catch and setup sbc > encoder/decoder, iirc the parameters are fixed so there is no need to > negotiate parameters with the endpoint as in A2DP so oFono only need > to know if the transport is capable of wideband speech or not. > >>> +Interaction with the audio component (i.e. PulseAudio) will be done through the >>> +MediaTransport object (passed to telephony agent during NewConnection call). >> >> This is the one thing that is really unclear to me. How does this >> actually help. The MediaTransport and TelephonyAgent should be >> independent. > > They are mostly independent, oFono will never really acquire or > anything like that, but there are some AT commands (+VGS,+VGM) that > does notify PA about volume gain changes and as I said above it could > be useful to notify about wideband speech in the same way. > It is also possible that telephony agent implements a TelephonyClient interface for each connection, object which should be returned by NewConnection method. In this case BlueZ will listen to properties changes on this interface (like for remote volume change) or call SetProperty (when receiving volume change from PulseAudio). As MediaTransport may change during wideband speech HFP session, due to codec re-negotiation, this architecture may simplify media transport code. You can find attached design documentation and telephony interfaces APIs proposal for this new architecture. What are your advices regarding this ? Regards Fred -- Frederic Danis Open Source Technology Center frederic.danis@intel.com Intel Corporation