diff options
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-reg.h')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-reg.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/drivers/media/video/saa7134/saa7134-reg.h b/drivers/media/video/saa7134/saa7134-reg.h index ae0c7a165390..ac6431ba4fc3 100644 --- a/drivers/media/video/saa7134/saa7134-reg.h +++ b/drivers/media/video/saa7134/saa7134-reg.h | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | /* DMA channels, n = 0 ... 6 */ | 28 | /* DMA channels, n = 0 ... 6 */ |
29 | #define SAA7134_RS_BA1(n) ((0x200 >> 2) + 4*n) | 29 | #define SAA7134_RS_BA1(n) ((0x200 >> 2) + 4*n) |
30 | #define SAA7134_RS_BA2(n) ((0x204 >> 2) + 4*n) | 30 | #define SAA7134_RS_BA2(n) ((0x204 >> 2) + 4*n) |
31 | #define SAA7134_RS_PITCH(n) ((0x208 >> 2) + 4*n) | 31 | #define SAA7134_RS_PITCH(n) ((0x208 >> 2) + 4*n) |
32 | #define SAA7134_RS_CONTROL(n) ((0x20c >> 2) + 4*n) | 32 | #define SAA7134_RS_CONTROL(n) ((0x20c >> 2) + 4*n) |
33 | #define SAA7134_RS_CONTROL_WSWAP (0x01 << 25) | 33 | #define SAA7134_RS_CONTROL_WSWAP (0x01 << 25) |
@@ -43,16 +43,24 @@ | |||
43 | #define SAA7134_FIFO_SIZE (0x2a0 >> 2) | 43 | #define SAA7134_FIFO_SIZE (0x2a0 >> 2) |
44 | #define SAA7134_THRESHOULD (0x2a4 >> 2) | 44 | #define SAA7134_THRESHOULD (0x2a4 >> 2) |
45 | 45 | ||
46 | #define SAA7133_NUM_SAMPLES (0x588 >> 2) | ||
47 | #define SAA7133_AUDIO_CHANNEL (0x58c >> 2) | ||
48 | #define SAA7133_AUDIO_FORMAT (0x58f >> 2) | ||
49 | #define SAA7133_DIGITAL_OUTPUT_SEL1 (0x46c >> 2) | ||
50 | #define SAA7133_DIGITAL_OUTPUT_SEL2 (0x470 >> 2) | ||
51 | #define SAA7133_DIGITAL_INPUT_XBAR1 (0x464 >> 2) | ||
52 | #define SAA7133_ANALOG_IO_SELECT (0x594 >> 2) | ||
53 | |||
46 | /* main control */ | 54 | /* main control */ |
47 | #define SAA7134_MAIN_CTRL (0x2a8 >> 2) | 55 | #define SAA7134_MAIN_CTRL (0x2a8 >> 2) |
48 | #define SAA7134_MAIN_CTRL_VPLLE (1 << 15) | 56 | #define SAA7134_MAIN_CTRL_VPLLE (1 << 15) |
49 | #define SAA7134_MAIN_CTRL_APLLE (1 << 14) | 57 | #define SAA7134_MAIN_CTRL_APLLE (1 << 14) |
50 | #define SAA7134_MAIN_CTRL_EXOSC (1 << 13) | 58 | #define SAA7134_MAIN_CTRL_EXOSC (1 << 13) |
51 | #define SAA7134_MAIN_CTRL_EVFE1 (1 << 12) | 59 | #define SAA7134_MAIN_CTRL_EVFE1 (1 << 12) |
52 | #define SAA7134_MAIN_CTRL_EVFE2 (1 << 11) | 60 | #define SAA7134_MAIN_CTRL_EVFE2 (1 << 11) |
53 | #define SAA7134_MAIN_CTRL_ESFE (1 << 10) | 61 | #define SAA7134_MAIN_CTRL_ESFE (1 << 10) |
54 | #define SAA7134_MAIN_CTRL_EBADC (1 << 9) | 62 | #define SAA7134_MAIN_CTRL_EBADC (1 << 9) |
55 | #define SAA7134_MAIN_CTRL_EBDAC (1 << 8) | 63 | #define SAA7134_MAIN_CTRL_EBDAC (1 << 8) |
56 | #define SAA7134_MAIN_CTRL_TE6 (1 << 6) | 64 | #define SAA7134_MAIN_CTRL_TE6 (1 << 6) |
57 | #define SAA7134_MAIN_CTRL_TE5 (1 << 5) | 65 | #define SAA7134_MAIN_CTRL_TE5 (1 << 5) |
58 | #define SAA7134_MAIN_CTRL_TE4 (1 << 4) | 66 | #define SAA7134_MAIN_CTRL_TE4 (1 << 4) |
@@ -348,6 +356,7 @@ | |||
348 | 356 | ||
349 | /* test modes */ | 357 | /* test modes */ |
350 | #define SAA7134_SPECIAL_MODE 0x1d0 | 358 | #define SAA7134_SPECIAL_MODE 0x1d0 |
359 | #define SAA7134_PRODUCTION_TEST_MODE 0x1d1 | ||
351 | 360 | ||
352 | /* audio -- saa7133 + saa7135 only */ | 361 | /* audio -- saa7133 + saa7135 only */ |
353 | #define SAA7135_DSP_RWSTATE 0x580 | 362 | #define SAA7135_DSP_RWSTATE 0x580 |