From 914882bb844f05c3e1e7bd23b570abc55838a6df Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 2 Jun 2011 20:01:44 +0000 Subject: 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 Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9942 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/kernel.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/dahdi') 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); -- cgit v1.2.3