include: Add disable_nrec to handsfree driver
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Tue, 23 Apr 2013 17:21:41 +0000 (14:21 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 23 Apr 2013 15:20:22 +0000 (10:20 -0500)
This patch extends the handsfree driver adding echo canceling and noise
reduction callback to allow disabling this feature in the audio gateway.

include/handsfree.h

index b5e0d5f0b76e1d1e6cae017ba2cfa532ec450a30..dde7000f628deb27d0ed4ffd9001720aa3fdcec1 100644 (file)
@@ -48,6 +48,8 @@ struct ofono_handsfree_driver {
        void (*voice_recognition)(struct ofono_handsfree *hf,
                                        ofono_bool_t enabled,
                                        ofono_handsfree_cb_t cb, void *data);
+       void (*disable_nrec)(struct ofono_handsfree *hf,
+                                       ofono_handsfree_cb_t cb, void *data);
 };
 
 void ofono_handsfree_set_ag_features(struct ofono_handsfree *hf,