This patch adds EchoCancelingNoiseReduction property to GetProperties
method of Handsfree interface.
---
 src/handsfree.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/handsfree.c b/src/handsfree.c
index 6d7f263..d60841b 100644
--- a/src/handsfree.c
+++ b/src/handsfree.c
@@ -45,6 +45,7 @@
 static GSList *g_drivers = NULL;
 
 struct ofono_handsfree {
+       ofono_bool_t ecnr;
        ofono_bool_t inband_ringing;
        ofono_bool_t voice_recognition;
        ofono_bool_t voice_recognition_pending;
@@ -175,6 +176,10 @@ static DBusMessage 
*handsfree_get_properties(DBusConnection *conn,
        ofono_dbus_dict_append(&dict, "InbandRinging", DBUS_TYPE_BOOLEAN,
                                &inband_ringing);
 
+       if (hf->ag_features & HFP_AG_FEATURE_ECNR)
+               ofono_dbus_dict_append(&dict, "EchoCancelingNoiseReduction",
+                                               DBUS_TYPE_BOOLEAN, &hf->ecnr);
+
        voice_recognition = hf->voice_recognition;
        ofono_dbus_dict_append(&dict, "VoiceRecognition", DBUS_TYPE_BOOLEAN,
                                &voice_recognition);
-- 
1.7.11.7

_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to