cddsp.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef __CDDSP_H
  2. #define __CDDSP_H
  3. //
  4. // 1999 Apr30 definition
  5. //
  6. #ifdef CDIF_SYNC
  7. #define RF_CD_BCLK_rising_edge          0
  8. #define RF_CD_BCLK_falling_edge  0x0001
  9. #else
  10. #define RF_CD_BCLK_rising_edge          0x0001
  11. #define RF_CD_BCLK_falling_edge  0
  12. #endif
  13. #define RF_CD_DATA_MSB_first            0x0002 
  14. #define RF_CD_DATA_LSB_first 0
  15. #define RF_CD_DATA_left_justify         0x0004
  16. #define RF_CD_DATA_right_justify 0
  17. #define RF_CD_DATA_one_delay            0x0008
  18. #define RF_CD_DATA_zero_delay 0
  19. #define RF_CD_LRCK_low_right            0x0010
  20. #define RF_CD_LRCK_low_left 0
  21. #define RF_CD_LRCK_pulse                0x0020
  22. #define RF_CD_LRCK_level 0
  23. #define RF_CD_C2P0_MSB_first 0x0040
  24. #define RF_CD_C2P0_LSB_first            0
  25. #define RF_CD_DATA_size_16              (0<<7)
  26. #define RF_CD_DATA_size_17 (1<<7)
  27. #define RF_CD_DATA_size_18 (2<<7)
  28. #define RF_CD_DATA_size_19 (3<<7)
  29. #define RF_CD_DATA_size_20 (4<<7)
  30. #define RF_CD_DATA_size_21 (5<<7)
  31. #define RF_CD_DATA_size_22 (6<<7)
  32. #define RF_CD_DATA_size_24 (7<<7)
  33. /* bit 12:11 */
  34. #define RF_CD_DATA_container_16         (0<<11)
  35. #define RF_CD_DATA_container_24 (1<<11)
  36. #define RF_CD_DATA_container_32 (2<<11)
  37. #define RF_CD_DATA_raw 0x2000
  38. #define RF_CD_DATA_descramble           0 /* default */
  39. #define RF_CD_DATA_swap                 0x4000
  40. #define RF_CD_DATA_noswap               0
  41. #define RF_CD_DATA_sync 0 /* default */
  42. #define RF_CD_DATA_nosync 0x8000
  43. #define CDDSP_I2S_raw ( 
  44.   RF_CD_DATA_noswap 
  45. | RF_CD_DATA_raw 
  46. | RF_CD_DATA_container_24 
  47. | RF_CD_DATA_size_16 
  48. | RF_CD_LRCK_level  
  49. | RF_CD_LRCK_low_left 
  50. | RF_CD_DATA_one_delay 
  51. | RF_CD_DATA_left_justify 
  52. | RF_CD_DATA_MSB_first 
  53. | RF_CD_BCLK_rising_edge )
  54. /*
  55. ** Philips I2S bus
  56. */
  57. #define CDDSP_I2S ( 
  58.   RF_CD_DATA_noswap 
  59. | RF_CD_DATA_descramble 
  60. | RF_CD_DATA_container_24 
  61. | RF_CD_DATA_size_16 
  62. | RF_CD_LRCK_level  
  63. | RF_CD_LRCK_low_left 
  64. | RF_CD_DATA_one_delay 
  65. | RF_CD_DATA_left_justify 
  66. | RF_CD_DATA_MSB_first 
  67. | RF_CD_BCLK_rising_edge )
  68. #define CDDSP_SONY ( 
  69.   RF_CD_DATA_noswap 
  70. | RF_CD_DATA_descramble 
  71. | RF_CD_DATA_container_24 
  72. | RF_CD_DATA_size_16 
  73. | RF_CD_LRCK_level  
  74. | RF_CD_LRCK_low_left 
  75. | RF_CD_DATA_zero_delay 
  76. | RF_CD_DATA_right_justify 
  77. | RF_CD_DATA_MSB_first 
  78. | RF_CD_BCLK_rising_edge )
  79. #define CDDSP_CONFIG CDDSP_SONY
  80. #endif/*__CDDSP_H*/