cfg_spectral.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: This file contains centralized cfg definitions of Spectral component
  20. */
  21. #ifndef __CONFIG_SPECTRAL_H
  22. #define __CONFIG_SPECTRAL_H
  23. /*
  24. * <ini>
  25. * spectral_disable - disable spectral feature
  26. * @Min: 0
  27. * @Max: 1
  28. * @Default: 0
  29. *
  30. * This ini is used to disable spectral feature.
  31. *
  32. * Related: None
  33. *
  34. * Supported Feature: Spectral
  35. *
  36. * Usage: External
  37. *
  38. * </ini>
  39. */
  40. #define CFG_SPECTRAL_DISABLE \
  41. CFG_INI_BOOL("spectral_disable", false, \
  42. "Spectral disable")
  43. /*
  44. * <ini>
  45. * poison_spectral_bufs - enable poisoning of spectral buffers
  46. * @Min: 0
  47. * @Max: 1
  48. * @Default: 0
  49. *
  50. * This ini is used to enable the poisoning of spectral buffers.
  51. *
  52. * Related: None
  53. *
  54. * Supported Feature: Spectral
  55. *
  56. * Usage: Internal
  57. *
  58. * </ini>
  59. */
  60. #define CFG_SPECTRAL_POISON_BUFS \
  61. CFG_INI_BOOL("poison_spectral_bufs", false, \
  62. "Enable spectral bufs poison at init")
  63. #define CFG_SPECTRAL_ALL \
  64. CFG(CFG_SPECTRAL_DISABLE) \
  65. CFG(CFG_SPECTRAL_POISON_BUFS)
  66. #endif