pcm1796.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef PCM1796_H_INCLUDED
  2. #define PCM1796_H_INCLUDED
  3. /* register 16 */
  4. #define PCM1796_ATL_MASK 0xff
  5. /* register 17 */
  6. #define PCM1796_ATR_MASK 0xff
  7. /* register 18 */
  8. #define PCM1796_MUTE 0x01
  9. #define PCM1796_DME 0x02
  10. #define PCM1796_DMF_MASK 0x0c
  11. #define PCM1796_DMF_DISABLED 0x00
  12. #define PCM1796_DMF_48 0x04
  13. #define PCM1796_DMF_441 0x08
  14. #define PCM1796_DMF_32 0x0c
  15. #define PCM1796_FMT_MASK 0x70
  16. #define PCM1796_FMT_16_RJUST 0x00
  17. #define PCM1796_FMT_20_RJUST 0x10
  18. #define PCM1796_FMT_24_RJUST 0x20
  19. #define PCM1796_FMT_24_LJUST 0x30
  20. #define PCM1796_FMT_16_I2S 0x40
  21. #define PCM1796_FMT_24_I2S 0x50
  22. #define PCM1796_ATLD 0x80
  23. /* register 19 */
  24. #define PCM1796_INZD 0x01
  25. #define PCM1796_FLT_MASK 0x02
  26. #define PCM1796_FLT_SHARP 0x00
  27. #define PCM1796_FLT_SLOW 0x02
  28. #define PCM1796_DFMS 0x04
  29. #define PCM1796_OPE 0x10
  30. #define PCM1796_ATS_MASK 0x60
  31. #define PCM1796_ATS_1 0x00
  32. #define PCM1796_ATS_2 0x20
  33. #define PCM1796_ATS_4 0x40
  34. #define PCM1796_ATS_8 0x60
  35. #define PCM1796_REV 0x80
  36. /* register 20 */
  37. #define PCM1796_OS_MASK 0x03
  38. #define PCM1796_OS_64 0x00
  39. #define PCM1796_OS_32 0x01
  40. #define PCM1796_OS_128 0x02
  41. #define PCM1796_CHSL_MASK 0x04
  42. #define PCM1796_CHSL_LEFT 0x00
  43. #define PCM1796_CHSL_RIGHT 0x04
  44. #define PCM1796_MONO 0x08
  45. #define PCM1796_DFTH 0x10
  46. #define PCM1796_DSD 0x20
  47. #define PCM1796_SRST 0x40
  48. /* register 21 */
  49. #define PCM1796_PCMZ 0x01
  50. #define PCM1796_DZ_MASK 0x06
  51. /* register 22 */
  52. #define PCM1796_ZFGL 0x01
  53. #define PCM1796_ZFGR 0x02
  54. /* register 23 */
  55. #define PCM1796_ID_MASK 0x1f
  56. #endif