diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audiohw.h | 2 | ||||
-rw-r--r-- | firmware/export/tsc2100.h | 42 |
2 files changed, 32 insertions, 12 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 190fcca7a8..b3493b86d9 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -45,6 +45,8 @@ | |||
45 | #include "as3514.h" | 45 | #include "as3514.h" |
46 | #elif defined(HAVE_MAS35XX) | 46 | #elif defined(HAVE_MAS35XX) |
47 | #include "mas35xx.h" | 47 | #include "mas35xx.h" |
48 | #elif defined(HAVE_TSC2100) | ||
49 | #include "tsc2100.h" | ||
48 | #endif | 50 | #endif |
49 | 51 | ||
50 | enum { | 52 | enum { |
diff --git a/firmware/export/tsc2100.h b/firmware/export/tsc2100.h index 9f3ceadcc9..70b793266f 100644 --- a/firmware/export/tsc2100.h +++ b/firmware/export/tsc2100.h | |||
@@ -71,12 +71,14 @@ void tsc2100_writereg(int page, int address, short value); | |||
71 | #define TSRESET_VALUE 0xBB00 | 71 | #define TSRESET_VALUE 0xBB00 |
72 | 72 | ||
73 | /* ts codec dac gain control */ | 73 | /* ts codec dac gain control */ |
74 | #define TSDACGAIN_PAGE 2 | 74 | #define TSDACGAIN_PAGE 2 |
75 | #define TSDACGAIN_ADDRESS 0x02 | 75 | #define TSDACGAIN_ADDRESS 0x02 |
76 | #define VOLUME_MAX 0 | ||
77 | #define VOLUME_MIN -630 | ||
76 | 78 | ||
77 | /* ts audio control 1*/ | 79 | /* ts audio control 1*/ |
78 | #define TSAC1_PAGE 2 | 80 | #define TSAC1_PAGE 2 |
79 | #define TSAC1_ADDRESS 0x00 | 81 | #define TSAC1_ADDRESS 0x00 |
80 | 82 | ||
81 | /* ts audio control 2 */ | 83 | /* ts audio control 2 */ |
82 | #define TSAC2_PAGE 2 | 84 | #define TSAC2_PAGE 2 |
@@ -95,19 +97,35 @@ void tsc2100_writereg(int page, int address, short value); | |||
95 | #define TSAC2_ADGAF (1<<0) /* r only */ | 97 | #define TSAC2_ADGAF (1<<0) /* r only */ |
96 | 98 | ||
97 | /* ts codec power control */ | 99 | /* ts codec power control */ |
98 | #define TSCPC_PAGE 2 | 100 | #define TSCPC_PAGE 2 |
99 | #define TSCPC_ADDRESS 0x05 | 101 | #define TSCPC_ADDRESS 0x05 |
100 | 102 | ||
101 | /* ts audio control 3 */ | 103 | /* ts audio control 3 */ |
102 | #define TSAC3_PAGE 2 | 104 | #define TSAC3_PAGE 2 |
103 | #define TSAC3_ADDRESS 0x06 | 105 | #define TSAC3_ADDRESS 0x06 |
104 | 106 | ||
105 | /* ts audio control 4 */ | 107 | /* ts audio control 4 */ |
106 | #define TSAC4_PAGE 2 | 108 | #define TSAC4_PAGE 2 |
107 | #define TSAC4_ADDRESS 0x1d | 109 | #define TSAC4_ADDRESS 0x1d |
110 | #define TSAC4_ASTDP (1<<15) | ||
111 | #define TSAC4_DASTDP (1<<14) | ||
112 | #define TSAC4_ASSTDP (1<<13) | ||
113 | #define TSAC4_DSTDP (1<<12) | ||
114 | #define TSAC4_RESERVEDD11 (1<<11) | ||
115 | #define TSAC4_AGC_HYST_MASK 0x0c00 | ||
116 | #define TSAC4_AGC_HYST_SHIFT 10 | ||
117 | #define TSAC4_SHCKT_DIS (1<<8) | ||
118 | #define TSAC4_SHCKT_PD (1<<7) | ||
119 | #define TSAC4_SHCKT_FLAG (1<<6) | ||
120 | #define TSAC4_DAC_POP_RED (1<<5) | ||
121 | #define TSAC4_DAC_POP_RED_SET1 (1<<4) | ||
122 | #define TSAC4_DAC_POP_RED_SET2_MASK 0x000c | ||
123 | #define TSAC4_DAC_POP_RED_SET2_SHIFT 3 | ||
124 | #define TSAC4_PGID_MASK 0x0003 | ||
125 | #define TSAC4_PGID_SHIFT 0 | ||
108 | 126 | ||
109 | /* ts audio control 5 */ | 127 | /* ts audio control 5 */ |
110 | #define TSAC5_PAGE 2 | 128 | #define TSAC5_PAGE 2 |
111 | #define TSAC5_ADDRESS 0x1e | 129 | #define TSAC5_ADDRESS 0x1e |
112 | 130 | ||
113 | #endif | 131 | #endif |