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
This commit is contained in:
Shaun Ruffell
2011-06-02 20:01:44 +00:00
parent dd33d6c357
commit 93a7adfb9f
2 changed files with 141 additions and 33 deletions

View File

@@ -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);