Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH v1 1/7] doc: Add EchoCancelingNoiseReduction to Handsfree
Date: Mon, 22 Apr 2013 06:56:36 -0500	[thread overview]
Message-ID: <51752574.7010705@gmail.com> (raw)
In-Reply-To: <CAKT1EBeQ=ttv5r6M99fzwLCCMJ4Hb5WiC6wEbCt4qmHwNgoi-g@mail.gmail.com>

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

Hi Claudio,

On 04/22/2013 11:46 AM, Claudio Takahasi wrote:
> Hi Denis:
>
> On Mon, Apr 22, 2013 at 6:04 AM, Denis Kenzior<denkenz@gmail.com>  wrote:
>> Hi Claudio,
>>
>>
>> On 04/22/2013 07:58 AM, Claudio Takahasi wrote:
>>>
>>> This patch adds echo canceling and noise reduction property to Handsfree
>>> interface, allowing the handsfree unit to enable or disable this feature
>>> in the audio gateway.
>>>
>>> According to Bluetooth HFP 1.6 spec: By default, if the AG supports its
>>> own embedded echo canceling and/or noise reduction functions, it shall
>>> have them activated until the AT+NREC command is received.
>>> ---
>>>    doc/handsfree-api.txt | 7 +++++++
>>>    1 file changed, 7 insertions(+)
>>>
>>> diff --git a/doc/handsfree-api.txt b/doc/handsfree-api.txt
>>> index 0b5d421..6855d93 100644
>>> --- a/doc/handsfree-api.txt
>>> +++ b/doc/handsfree-api.txt
>>> @@ -56,6 +56,13 @@ Properties   array{string} Features [readonly]
>>>                          to activate or deactivate the function from the
>>> HF, or
>>>                          the AG could autonomously initiate it.
>>>
>>> +               boolean EchoCancelingNoiseReduction [readwrite]
>>> +
>>> +                       Boolean representing whether echo canceling and
>>> noise
>>> +                       reduction is enabled in the AG. This property may
>>> be
>>> +                       written to activate or deactivate this feature
>>> from
>>> +                       the HF unit.
>>> +
>>
>>
>> This feature can only be disabled, not enabled for a given SLC.  So setting
>> this to 'True' should return an error or do something way fancier.
>>
>> I suspect that to implement this properly we need to store the ECNR setting
>> on disk (e.g. /var/lib/ofono/<local bdaddr>/<remote bdaddr>/handsfree or
>> something) and manage it appropriately inside the core.
>
> It is true, the HFP spec defines the procedure to disable it only.
> I implemented an option to disable it because I noticed different
> behavior between the phones/modems. Anyway, I will remove it, we can
> extend the API later if necessary.

This interface is specific to HFP, so don't worry about real modems.

>
> Regarding the storage, the spec (page 53) is a little bit confusing to
> me, I understood that the AG will enable it again when the connection
> is dropped. So, we don't need to stored it.
>

In theory we could remember the previous setting and just simply send it 
automatically the next time a device is connected.  However, your 
approach will be fine for now.

Regards,
-Denis

  reply	other threads:[~2013-04-22 11:56 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-19 17:34 [PATCH v0 1/7] doc: Add ECNR to Handsfree Claudio Takahasi
2013-04-19 15:24 ` Denis Kenzior
2013-04-19 21:17   ` Claudio Takahasi
2013-04-19 18:01     ` Denis Kenzior
2013-04-19 17:34 ` [PATCH v0 2/7] core: Add ECNR to Handsfree Features Claudio Takahasi
2013-04-19 17:34 ` [PATCH v0 3/7] core: Add ECNR in Handsfree GetProperty Claudio Takahasi
2013-04-19 17:34 ` [PATCH v0 4/7] core: Set ECNR to TRUE by default Claudio Takahasi
2013-04-19 17:34 ` [PATCH v0 5/7] include: Add ECNR to handsfree driver Claudio Takahasi
2013-04-19 17:34 ` [PATCH v0 6/7] hfpmodem: Add ECNR implementation Claudio Takahasi
2013-04-19 17:34 ` [PATCH v0 7/7] core: Add SetProperty for ECNR Claudio Takahasi
2013-04-19 20:11 ` [PATCH v0 1/7] doc: Add ECNR to Handsfree Johan Hedberg
2013-04-19 20:43   ` Claudio Takahasi
2013-04-22 12:58 ` [PATCH v1 1/7] doc: Add EchoCancelingNoiseReduction " Claudio Takahasi
2013-04-22  9:04   ` Denis Kenzior
2013-04-22 16:46     ` Claudio Takahasi
2013-04-22 11:56       ` Denis Kenzior [this message]
2013-04-22 12:58   ` [PATCH v1 2/7] core: Add "echo-canceling-and-noise-reduction" Claudio Takahasi
2013-04-22 12:58   ` [PATCH v1 3/7] core: Add EchoCancelingNoiseReduction to GetProperties Claudio Takahasi
2013-04-22 12:58   ` [PATCH v1 4/7] core: Set EchoCancelingNoiseReduction to TRUE by default Claudio Takahasi
2013-04-22 12:58   ` [PATCH v1 5/7] include: Add EchoCancelingNoiseReduction to handsfree driver Claudio Takahasi
2013-04-22  9:00     ` Denis Kenzior
2013-04-22 12:58   ` [PATCH v1 6/7] hfpmodem: Add EchoCancelingNoiseReduction Claudio Takahasi
2013-04-22 12:58   ` [PATCH v1 7/7] core: Add SetProperty for EchoCancelingNoiseReduction Claudio Takahasi
2013-04-23 12:44   ` [PATCH v2 1/7] doc: Add EchoCancelingNoiseReduction to Handsfree Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 2/7] core: Add "echo-canceling-and-noise-reduction" Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 3/7] core: Add EchoCancelingNoiseReduction to GetProperties Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 4/7] core: Set EchoCancelingNoiseReduction to TRUE by default Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 5/7] include: Add EchoCancelingNoiseReduction to handsfree driver Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 6/7] hfpmodem: Add EchoCancelingNoiseReduction Claudio Takahasi
2013-04-23 12:44     ` [PATCH v2 7/7] core: Add SetProperty for EchoCancelingNoiseReduction Claudio Takahasi
2013-04-23 17:21     ` [PATCH v3 1/7] doc: Add EchoCancelingNoiseReduction to Handsfree Claudio Takahasi
2013-04-23 15:30       ` Denis Kenzior
2013-04-23 17:21       ` [PATCH v3 2/7] core: Add "echo-canceling-and-noise-reduction" Claudio Takahasi
2013-04-23 17:21       ` [PATCH v3 3/7] core: Add EchoCancelingNoiseReduction to GetProperties Claudio Takahasi
2013-04-23 17:21       ` [PATCH v3 4/7] core: Set EchoCancelingNoiseReduction to TRUE by default Claudio Takahasi
2013-04-23 17:21       ` [PATCH v3 5/7] include: Add EchoCancelingNoiseReduction to handsfree driver Claudio Takahasi
2013-04-23 17:21       ` [PATCH v3 6/7] hfpmodem: Add EchoCancelingNoiseReduction Claudio Takahasi
2013-04-23 17:21       ` [PATCH v3 7/7] core: Add SetProperty for EchoCancelingNoiseReduction Claudio Takahasi

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=51752574.7010705@gmail.com \
    --to=denkenz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox