core: Set EchoCancelingNoiseReduction to TRUE by default

According to Bluetooth HFP 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. The
configuration set by the HF shall by used by the AG while the Service
Level Connection is active.

Since there isn't a command to query the current value, it is being
assumed that Echo Canceling and Noise Reduction is enabled when the
connection is established and the gateway supports this feature.
This commit is contained in:
Claudio Takahasi 2013-04-23 14:21:40 -03:00 committed by Denis Kenzior
parent 6ef7d4fa88
commit 275fe0df81
1 changed files with 1 additions and 0 deletions

View File

@ -358,6 +358,7 @@ struct ofono_handsfree *ofono_handsfree_create(struct ofono_modem *modem,
hf->atom = __ofono_modem_add_atom(modem,
OFONO_ATOM_TYPE_HANDSFREE,
handsfree_remove, hf);
hf->nrec = TRUE;
for (l = g_drivers; l; l = l->next) {
const struct ofono_handsfree_driver *drv = l->data;