diff options
Diffstat (limited to 'tdm/xivo_tdm_api.h')
-rw-r--r-- | tdm/xivo_tdm_api.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tdm/xivo_tdm_api.h b/tdm/xivo_tdm_api.h index cde2269..9191653 100644 --- a/tdm/xivo_tdm_api.h +++ b/tdm/xivo_tdm_api.h @@ -12,12 +12,9 @@ /* for audio propagation, xivo_tdm_cb will be called every ms (hopefully...) */ -struct xivo_tdm_cb_struct { - u8 *rx_bufs[XIVO_TDM_TS_NUM]; - u8 *tx_bufs[XIVO_TDM_TS_NUM]; - - void (*xivo_tdm_cb)(void *data); - void *xivo_tdm_cb_data; +struct xivo_tdm_tick_cb_struct { + void (*tick)(void *data); + void *tick_data; }; @@ -40,10 +37,16 @@ int xivo_tdm_config_port( unsigned int port_config); /* hardirq: no -- softirq: no -- user: yes */ +void xivo_tdm_register_port0_started( + struct xivo_tdm_port* xtp, + void (*port0_started)(void *), + void *port0_started_data); + +/* hardirq: no -- softirq: no -- user: yes */ int xivo_tdm_start_chans( struct xivo_tdm_port* xtp, u32 chans, - struct xivo_tdm_cb_struct *cb_struct); // optional, can be null + struct xivo_tdm_tick_cb_struct *cb_struct); // optional, can be null void xivo_tdm_stop_chans( struct xivo_tdm_port* xtp); |