audio_def.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. *******************************************************************
  3. * Audio Common Definitions
  4. *
  5. *Note(s):
  6. * (1)Only macro definitions can be defined here.
  7. * (2)Use (1UL << (n)) instead of BIT(n)
  8. *******************************************************************
  9. */
  10. #ifndef _AUDIO_DEF_H_
  11. #define _AUDIO_DEF_H_
  12. /*
  13. *******************************************************************
  14. * DAC Definitions
  15. *******************************************************************
  16. */
  17. /*
  18. *******************************************************************
  19. * ADC Definitions
  20. *******************************************************************
  21. */
  22. /*
  23. *******************************************************************
  24. * Linein(Aux) Definitions
  25. *******************************************************************
  26. */
  27. /*
  28. *******************************************************************
  29. * ANC Definitions
  30. *******************************************************************
  31. */
  32. //ANC Mode Enable
  33. #define ANC_FF_EN (1UL << (0))
  34. #define ANC_FB_EN (1UL << (1))
  35. #define ANC_HYBRID_EN (1UL << (2))
  36. //ANC芯片版本定义
  37. #define ANC_VERSION_BR30 0x01 //AD697N/AC897N
  38. #define ANC_VERSION_BR30C 0x02 //AC699N/AD698N
  39. #define ANC_VERSION_BR36 0x03 //AC700N
  40. #define ANC_VERSION_BR28 0x04 //AC701N/BR40
  41. #endif/*_AUDIO_DEF_H_*/