adt_lec.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * ADT Line Echo Canceller Parameter Parsing
  3. *
  4. * Copyright (C) 2008 Digium, Inc.
  5. *
  6. * Kevin P. Fleming <kpfleming@digium.com>
  7. *
  8. * All rights reserved.
  9. */
  10. /*
  11. * See http://www.asterisk.org for more information about
  12. * the Asterisk project. Please do not directly contact
  13. * any of the maintainers of this project for assistance;
  14. * the project provides a web site, mailing lists and IRC
  15. * channels for your use.
  16. *
  17. * This program is free software, distributed under the terms of
  18. * the GNU General Public License Version 2 as published by the
  19. * Free Software Foundation. See the LICENSE file included with
  20. * this program for more details.
  21. */
  22. #ifndef _ADT_LEC_H
  23. #define _ADT_LEC_H
  24. enum adt_lec_nlp_type {
  25. ADT_LEC_NLP_OFF = 0,
  26. ADT_LEC_NLP_MUTE,
  27. ADT_LEC_RANDOM_NOISE,
  28. ADT_LEC_HOTH_NOISE,
  29. ADT_LEC_SUPPRESS,
  30. };
  31. enum adt_companding {
  32. ADT_COMP_ULAW = 0,
  33. ADT_COMP_ALAW,
  34. };
  35. struct adt_lec_params {
  36. __u32 tap_length;
  37. enum adt_lec_nlp_type nlp_type;
  38. __u32 nlp_threshold;
  39. __u32 nlp_max_suppress;
  40. enum adt_companding companding;
  41. };
  42. #endif /* _ADT_LEC_H */