mISDNdsp.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __mISDNdsp_H__
  3. #define __mISDNdsp_H__
  4. struct mISDN_dsp_element_arg {
  5. char *name;
  6. char *def;
  7. char *desc;
  8. };
  9. struct mISDN_dsp_element {
  10. char *name;
  11. void *(*new)(const char *arg);
  12. void (*free)(void *p);
  13. void (*process_tx)(void *p, unsigned char *data, int len);
  14. void (*process_rx)(void *p, unsigned char *data, int len,
  15. unsigned int txlen);
  16. int num_args;
  17. struct mISDN_dsp_element_arg
  18. *args;
  19. };
  20. extern int mISDN_dsp_element_register(struct mISDN_dsp_element *elem);
  21. extern void mISDN_dsp_element_unregister(struct mISDN_dsp_element *elem);
  22. struct dsp_features {
  23. int hfc_id; /* unique id to identify the chip (or -1) */
  24. int hfc_dtmf; /* set if HFCmulti card supports dtmf */
  25. int hfc_conf; /* set if HFCmulti card supports conferences */
  26. int hfc_loops; /* set if card supports tone loops */
  27. int hfc_echocanhw; /* set if card supports echocancelation*/
  28. int pcm_id; /* unique id to identify the pcm bus (or -1) */
  29. int pcm_slots; /* number of slots on the pcm bus */
  30. int pcm_banks; /* number of IO banks of pcm bus */
  31. int unclocked; /* data is not clocked (has jitter/loss) */
  32. int unordered; /* data is unordered (packets have index) */
  33. };
  34. #endif