summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-06-02 20:01:44 +0000
committerShaun Ruffell <sruffell@digium.com>2011-06-02 20:01:44 +0000
commit914882bb844f05c3e1e7bd23b570abc55838a6df (patch)
tree75e2db46168eab4f8c9c845ad195799c16a73f71 /include
parenta5321ae535ea720597e83c23eea34f46c0dc8b26 (diff)
dahdi: Provide notification when preechocan buffer is created and destroyed.
Not quite ideal, but this seems to be the most straightforward way to know when someone is trying to monitor the preec stream on a channel. This callback allows the board driver providing the span an opportunity to setup the hardware preecho monitoring as needed. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9942 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 41196e4..97e1231 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -864,6 +864,12 @@ struct dahdi_span_ops {
int (*audio_notify)(struct dahdi_chan *chan, int yes);
#endif
+ /*! Opt: Enable preechocan stream from inline HW echocanceler. */
+ int (*enable_hw_preechocan)(struct dahdi_chan *chan);
+
+ /*! Opt: Disable preechocan stream from inline HW echocanceler. */
+ void (*disable_hw_preechocan)(struct dahdi_chan *chan);
+
/*! Opt: Dacs the contents of chan2 into chan1 if possible */
int (*dacs)(struct dahdi_chan *chan1, struct dahdi_chan *chan2);