cm9780.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef CM9780_H_INCLUDED
  2. #define CM9780_H_INCLUDED
  3. #define CM9780_JACK 0x62
  4. #define CM9780_MIXER 0x64
  5. #define CM9780_GPIO_SETUP 0x70
  6. #define CM9780_GPIO_STATUS 0x72
  7. /* jack control */
  8. #define CM9780_RSOE 0x0001
  9. #define CM9780_CBOE 0x0002
  10. #define CM9780_SSOE 0x0004
  11. #define CM9780_FROE 0x0008
  12. #define CM9780_HP2FMICOE 0x0010
  13. #define CM9780_CB2MICOE 0x0020
  14. #define CM9780_FMIC2LI 0x0040
  15. #define CM9780_FMIC2MIC 0x0080
  16. #define CM9780_HP2LI 0x0100
  17. #define CM9780_HP2MIC 0x0200
  18. #define CM9780_MIC2LI 0x0400
  19. #define CM9780_MIC2MIC 0x0800
  20. #define CM9780_LI2LI 0x1000
  21. #define CM9780_LI2MIC 0x2000
  22. #define CM9780_LO2LI 0x4000
  23. #define CM9780_LO2MIC 0x8000
  24. /* mixer control */
  25. #define CM9780_BSTSEL 0x0001
  26. #define CM9780_STRO_MIC 0x0002
  27. #define CM9780_SPDI_FREX 0x0004
  28. #define CM9780_SPDI_SSEX 0x0008
  29. #define CM9780_SPDI_CBEX 0x0010
  30. #define CM9780_SPDI_RSEX 0x0020
  31. #define CM9780_MIX2FR 0x0040
  32. #define CM9780_MIX2SS 0x0080
  33. #define CM9780_MIX2CB 0x0100
  34. #define CM9780_MIX2RS 0x0200
  35. #define CM9780_MIX2FR_EX 0x0400
  36. #define CM9780_MIX2SS_EX 0x0800
  37. #define CM9780_MIX2CB_EX 0x1000
  38. #define CM9780_MIX2RS_EX 0x2000
  39. #define CM9780_P47_IO 0x4000
  40. #define CM9780_PCBSW 0x8000
  41. /* GPIO setup */
  42. #define CM9780_GPI0EN 0x0001
  43. #define CM9780_GPI1EN 0x0002
  44. #define CM9780_SENSE_P 0x0004
  45. #define CM9780_LOCK_P 0x0008
  46. #define CM9780_GPIO0P 0x0010
  47. #define CM9780_GPIO1P 0x0020
  48. #define CM9780_GPIO0IO 0x0100
  49. #define CM9780_GPIO1IO 0x0200
  50. /* GPIO status */
  51. #define CM9780_GPO0 0x0001
  52. #define CM9780_GPO1 0x0002
  53. #define CM9780_GPIO0S 0x0010
  54. #define CM9780_GPIO1S 0x0020
  55. #define CM9780_GPII0S 0x0100
  56. #define CM9780_GPII1S 0x0200
  57. #endif