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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user