All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Danis <frederic.danis@linux.intel.com>
To: ofono@ofono.org
Subject: Re: [RFC v4 10/10] emulator: Update supported features
Date: Mon, 23 Apr 2012 16:01:28 +0200	[thread overview]
Message-ID: <4F9560B8.3090708@linux.intel.com> (raw)
In-Reply-To: <4F7F2A2B.8070708@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1733 bytes --]

Hello Denis,

Le 06/04/2012 19:38, Denis Kenzior a écrit :
> Hi Frédéric,
>
> On 04/06/2012 08:17 AM, Frédéric Danis wrote:
>> Add ECNR (Echo Cancelation/Noise Reduction) and Inband Ringtone
>> capabilities to supported features (+BRSF event)
>> ---
>>   src/emulator.c |    2 ++
>>   1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/emulator.c b/src/emulator.c
>> index e7c7d41..371e96c 100644
>> --- a/src/emulator.c
>> +++ b/src/emulator.c
>> @@ -979,6 +979,8 @@ struct ofono_emulator *ofono_emulator_create(struct ofono_modem *modem,
>>
>>   	em->type = type;
>>   	em->l_features |= HFP_AG_FEATURE_3WAY;
>> +	em->l_features |= HFP_AG_FEATURE_ECNR;
>> +	em->l_features |= HFP_AG_FEATURE_IN_BAND_RING_TONE;
>>   	em->l_features |= HFP_AG_FEATURE_REJECT_CALL;
>>   	em->l_features |= HFP_AG_FEATURE_ENHANCED_CALL_STATUS;
>>   	em->l_features |= HFP_AG_FEATURE_ENHANCED_CALL_CONTROL;
>
> I think it would be better for the features to be modified based on what
> command handlers are registered.  E.g. if NREC handler is registered in
> ofono_emulator_add_handler then add ECNR to local features, etc.

Local features are sent during reply to AT+BRSF command (after emulator 
creation and command handlers registration), but also in the Bluetooth 
SDP record, before client connection (so before emulator creation).

Imho, local features value should only be created in hfp_ag.c file, and 
passed to the emulator through ofono_emulator_create() or a new 
ofono_emulator_set_features() API.

Regards,

Fred

-- 
Frederic Danis                            Open Source Technology Center
frederic.danis(a)intel.com                              Intel Corporation


  reply	other threads:[~2012-04-23 14:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 13:17 [RFC v4 00/10] org.bluez.Telephony interface integration =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 01/10] bluetooth: Add org.bluez.Telephony helpers =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 02/10] hfp_hf: Update to org.bluez.Telephony interface =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 03/10] hfp_ag: " =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 04/10] bluetooth: Add audio APIs for HFP AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 17:27   ` Denis Kenzior
2012-04-06 13:17 ` [RFC v4 05/10] bluetooth: Add AT+NREC support =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 17:32   ` Denis Kenzior
2012-04-06 13:17 ` [RFC v4 06/10] bluetooth: Add +BSIR support =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 07/10] bluetooth: Add AT+VGM support =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 08/10] bluetooth: Add AT+VGS support =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 13:17 ` [RFC v4 09/10] hfp_ag: Add media transport support =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 17:38   ` Denis Kenzior
2012-04-24 16:19     ` Frederic Danis
2012-04-23 19:24       ` Denis Kenzior
2012-04-06 13:17 ` [RFC v4 10/10] emulator: Update supported features =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-04-06 17:38   ` Denis Kenzior
2012-04-23 14:01     ` Frederic Danis [this message]
2012-04-23  0:03       ` Denis Kenzior

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=4F9560B8.3090708@linux.intel.com \
    --to=frederic.danis@linux.intel.com \
    --cc=ofono@ofono.org \
    /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.