summaryrefslogtreecommitdiff
path: root/tdm/xivo_tdm_api.h
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@proformatique.com>2010-10-19 15:37:29 +0200
committerGuillaume Knispel <gknispel@proformatique.com>2010-10-19 15:37:29 +0200
commit766eed6827e37844d9fb9af88a19419750538a73 (patch)
treea33c584b0015f99fc8df5b4370552c6787ae9e66 /tdm/xivo_tdm_api.h
parent619cb8f38b88a8f7e01e51bc39fb387e86e7b0b4 (diff)
trying to get a better sound
Diffstat (limited to 'tdm/xivo_tdm_api.h')
-rw-r--r--tdm/xivo_tdm_api.h17
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);