diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-17 21:16:55 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-17 21:16:55 -0400 |
commit | 4b337c5f245b6587ba844ac7bb13c313a2912f7b (patch) | |
tree | 999c6a6580b76a083c8efb9dabff709d1c49fcd0 /drivers/media/video/gspca/spca508.c | |
parent | 492b057c426e4aa747484958e18e9da29003985d (diff) | |
parent | 3fe0344faf7fdcb158bd5c1a9aec960a8d70c8e8 (diff) |
Merge commit 'origin/master' into next
Diffstat (limited to 'drivers/media/video/gspca/spca508.c')
-rw-r--r-- | drivers/media/video/gspca/spca508.c | 1934 |
1 files changed, 888 insertions, 1046 deletions
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index adacf8437661..2ed2669bac3e 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * SPCA508 chip based cameras subdriver | 2 | * SPCA508 chip based cameras subdriver |
3 | * | 3 | * |
4 | * V4L2 by Jean-Francois Moine <http://moinejf.free.fr> | 4 | * Copyright (C) 2009 Jean-Francois Moine <http://moinejf.free.fr> |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
@@ -30,9 +30,9 @@ MODULE_LICENSE("GPL"); | |||
30 | struct sd { | 30 | struct sd { |
31 | struct gspca_dev gspca_dev; /* !! must be the first item */ | 31 | struct gspca_dev gspca_dev; /* !! must be the first item */ |
32 | 32 | ||
33 | unsigned char brightness; | 33 | u8 brightness; |
34 | 34 | ||
35 | char subtype; | 35 | u8 subtype; |
36 | #define CreativeVista 0 | 36 | #define CreativeVista 0 |
37 | #define HamaUSBSightcam 1 | 37 | #define HamaUSBSightcam 1 |
38 | #define HamaUSBSightcam2 2 | 38 | #define HamaUSBSightcam2 2 |
@@ -86,58 +86,34 @@ static const struct v4l2_pix_format sif_mode[] = { | |||
86 | }; | 86 | }; |
87 | 87 | ||
88 | /* Frame packet header offsets for the spca508 */ | 88 | /* Frame packet header offsets for the spca508 */ |
89 | #define SPCA508_OFFSET_TYPE 1 | ||
90 | #define SPCA508_OFFSET_COMPRESS 2 | ||
91 | #define SPCA508_OFFSET_FRAMSEQ 8 | ||
92 | #define SPCA508_OFFSET_WIN1LUM 11 | ||
93 | #define SPCA508_OFFSET_DATA 37 | 89 | #define SPCA508_OFFSET_DATA 37 |
94 | 90 | ||
95 | #define SPCA508_SNAPBIT 0x20 | ||
96 | #define SPCA508_SNAPCTRL 0x40 | ||
97 | /*************** I2c ****************/ | ||
98 | #define SPCA508_INDEX_I2C_BASE 0x8800 | ||
99 | |||
100 | /* | 91 | /* |
101 | * Initialization data: this is the first set-up data written to the | 92 | * Initialization data: this is the first set-up data written to the |
102 | * device (before the open data). | 93 | * device (before the open data). |
103 | */ | 94 | */ |
104 | static const u16 spca508_init_data[][2] = | 95 | static const u16 spca508_init_data[][2] = |
105 | { | 96 | { |
106 | /* line URB value, index */ | 97 | {0x0000, 0x870b}, |
107 | /* 44274 1804 */ {0x0000, 0x870b}, | 98 | |
108 | 99 | {0x0020, 0x8112}, /* Video drop enable, ISO streaming disable */ | |
109 | /* 44299 1805 */ {0x0020, 0x8112}, | 100 | {0x0003, 0x8111}, /* Reset compression & memory */ |
110 | /* Video drop enable, ISO streaming disable */ | 101 | {0x0000, 0x8110}, /* Disable all outputs */ |
111 | /* 44324 1806 */ {0x0003, 0x8111}, | 102 | /* READ {0x0000, 0x8114} -> 0000: 00 */ |
112 | /* Reset compression & memory */ | 103 | {0x0000, 0x8114}, /* SW GPIO data */ |
113 | /* 44349 1807 */ {0x0000, 0x8110}, | 104 | {0x0008, 0x8110}, /* Enable charge pump output */ |
114 | /* Disable all outputs */ | 105 | {0x0002, 0x8116}, /* 200 kHz pump clock */ |
115 | /* 44372 1808 */ /* READ {0x0000, 0x8114} -> 0000: 00 */ | 106 | /* UNKNOWN DIRECTION (URB_FUNCTION_SELECT_INTERFACE:) */ |
116 | /* 44398 1809 */ {0x0000, 0x8114}, | 107 | {0x0003, 0x8111}, /* Reset compression & memory */ |
117 | /* SW GPIO data */ | 108 | {0x0000, 0x8111}, /* Normal mode (not reset) */ |
118 | /* 44423 1810 */ {0x0008, 0x8110}, | 109 | {0x0098, 0x8110}, |
119 | /* Enable charge pump output */ | 110 | /* Enable charge pump output, sync.serial,external 2x clock */ |
120 | /* 44527 1811 */ {0x0002, 0x8116}, | 111 | {0x000d, 0x8114}, /* SW GPIO data */ |
121 | /* 200 kHz pump clock */ | 112 | {0x0002, 0x8116}, /* 200 kHz pump clock */ |
122 | /* 44555 1812 */ | 113 | {0x0020, 0x8112}, /* Video drop enable, ISO streaming disable */ |
123 | /* UNKNOWN DIRECTION (URB_FUNCTION_SELECT_INTERFACE:) */ | ||
124 | /* 44590 1813 */ {0x0003, 0x8111}, | ||
125 | /* Reset compression & memory */ | ||
126 | /* 44615 1814 */ {0x0000, 0x8111}, | ||
127 | /* Normal mode (not reset) */ | ||
128 | /* 44640 1815 */ {0x0098, 0x8110}, | ||
129 | /* Enable charge pump output, sync.serial,external 2x clock */ | ||
130 | /* 44665 1816 */ {0x000d, 0x8114}, | ||
131 | /* SW GPIO data */ | ||
132 | /* 44690 1817 */ {0x0002, 0x8116}, | ||
133 | /* 200 kHz pump clock */ | ||
134 | /* 44715 1818 */ {0x0020, 0x8112}, | ||
135 | /* Video drop enable, ISO streaming disable */ | ||
136 | /* --------------------------------------- */ | 114 | /* --------------------------------------- */ |
137 | /* 44740 1819 */ {0x000f, 0x8402}, | 115 | {0x000f, 0x8402}, /* memory bank */ |
138 | /* memory bank */ | 116 | {0x0000, 0x8403}, /* ... address */ |
139 | /* 44765 1820 */ {0x0000, 0x8403}, | ||
140 | /* ... address */ | ||
141 | /* --------------------------------------- */ | 117 | /* --------------------------------------- */ |
142 | /* 0x88__ is Synchronous Serial Interface. */ | 118 | /* 0x88__ is Synchronous Serial Interface. */ |
143 | /* TBD: This table could be expressed more compactly */ | 119 | /* TBD: This table could be expressed more compactly */ |
@@ -145,446 +121,384 @@ static const u16 spca508_init_data[][2] = | |||
145 | /* TBD: Should see if the values in spca50x_i2c_data */ | 121 | /* TBD: Should see if the values in spca50x_i2c_data */ |
146 | /* would work with the VQ110 instead of the values */ | 122 | /* would work with the VQ110 instead of the values */ |
147 | /* below. */ | 123 | /* below. */ |
148 | /* 44790 1821 */ {0x00c0, 0x8804}, | 124 | {0x00c0, 0x8804}, /* SSI slave addr */ |
149 | /* SSI slave addr */ | 125 | {0x0008, 0x8802}, /* 375 Khz SSI clock */ |
150 | /* 44815 1822 */ {0x0008, 0x8802}, | 126 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
151 | /* 375 Khz SSI clock */ | 127 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
152 | /* 44838 1823 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 128 | {0x0008, 0x8802}, /* 375 Khz SSI clock */ |
153 | /* 44862 1824 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 129 | {0x0012, 0x8801}, /* SSI reg addr */ |
154 | /* 44888 1825 */ {0x0008, 0x8802}, | 130 | {0x0080, 0x8800}, /* SSI data to write */ |
155 | /* 375 Khz SSI clock */ | 131 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
156 | /* 44913 1826 */ {0x0012, 0x8801}, | 132 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
157 | /* SSI reg addr */ | 133 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
158 | /* 44938 1827 */ {0x0080, 0x8800}, | 134 | {0x0008, 0x8802}, /* 375 Khz SSI clock */ |
159 | /* SSI data to write */ | 135 | {0x0012, 0x8801}, /* SSI reg addr */ |
160 | /* 44961 1828 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 136 | {0x0000, 0x8800}, /* SSI data to write */ |
161 | /* 44985 1829 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 137 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
162 | /* 45009 1830 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 138 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
163 | /* 45035 1831 */ {0x0008, 0x8802}, | 139 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
164 | /* 375 Khz SSI clock */ | 140 | {0x0008, 0x8802}, /* 375 Khz SSI clock */ |
165 | /* 45060 1832 */ {0x0012, 0x8801}, | 141 | {0x0011, 0x8801}, /* SSI reg addr */ |
166 | /* SSI reg addr */ | 142 | {0x0040, 0x8800}, /* SSI data to write */ |
167 | /* 45085 1833 */ {0x0000, 0x8800}, | 143 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
168 | /* SSI data to write */ | 144 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
169 | /* 45108 1834 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 145 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
170 | /* 45132 1835 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 146 | {0x0008, 0x8802}, |
171 | /* 45156 1836 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 147 | {0x0013, 0x8801}, |
172 | /* 45182 1837 */ {0x0008, 0x8802}, | 148 | {0x0000, 0x8800}, |
173 | /* 375 Khz SSI clock */ | 149 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
174 | /* 45207 1838 */ {0x0011, 0x8801}, | 150 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
175 | /* SSI reg addr */ | 151 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
176 | /* 45232 1839 */ {0x0040, 0x8800}, | 152 | {0x0008, 0x8802}, |
177 | /* SSI data to write */ | 153 | {0x0014, 0x8801}, |
178 | /* 45255 1840 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 154 | {0x0000, 0x8800}, |
179 | /* 45279 1841 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 155 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
180 | /* 45303 1842 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 156 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
181 | /* 45329 1843 */ {0x0008, 0x8802}, | 157 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
182 | /* 45354 1844 */ {0x0013, 0x8801}, | 158 | {0x0008, 0x8802}, |
183 | /* 45379 1845 */ {0x0000, 0x8800}, | 159 | {0x0015, 0x8801}, |
184 | /* 45402 1846 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 160 | {0x0001, 0x8800}, |
185 | /* 45426 1847 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 161 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
186 | /* 45450 1848 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 162 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
187 | /* 45476 1849 */ {0x0008, 0x8802}, | 163 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
188 | /* 45501 1850 */ {0x0014, 0x8801}, | 164 | {0x0008, 0x8802}, |
189 | /* 45526 1851 */ {0x0000, 0x8800}, | 165 | {0x0016, 0x8801}, |
190 | /* 45549 1852 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 166 | {0x0003, 0x8800}, |
191 | /* 45573 1853 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 167 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
192 | /* 45597 1854 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 168 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
193 | /* 45623 1855 */ {0x0008, 0x8802}, | 169 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
194 | /* 45648 1856 */ {0x0015, 0x8801}, | 170 | {0x0008, 0x8802}, |
195 | /* 45673 1857 */ {0x0001, 0x8800}, | 171 | {0x0017, 0x8801}, |
196 | /* 45696 1858 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 172 | {0x0036, 0x8800}, |
197 | /* 45720 1859 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 173 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
198 | /* 45744 1860 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 174 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
199 | /* 45770 1861 */ {0x0008, 0x8802}, | 175 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
200 | /* 45795 1862 */ {0x0016, 0x8801}, | 176 | {0x0008, 0x8802}, |
201 | /* 45820 1863 */ {0x0003, 0x8800}, | 177 | {0x0018, 0x8801}, |
202 | /* 45843 1864 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 178 | {0x00ec, 0x8800}, |
203 | /* 45867 1865 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 179 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
204 | /* 45891 1866 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 180 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
205 | /* 45917 1867 */ {0x0008, 0x8802}, | 181 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
206 | /* 45942 1868 */ {0x0017, 0x8801}, | 182 | {0x0008, 0x8802}, |
207 | /* 45967 1869 */ {0x0036, 0x8800}, | 183 | {0x001a, 0x8801}, |
208 | /* 45990 1870 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 184 | {0x0094, 0x8800}, |
209 | /* 46014 1871 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 185 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
210 | /* 46038 1872 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 186 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
211 | /* 46064 1873 */ {0x0008, 0x8802}, | 187 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
212 | /* 46089 1874 */ {0x0018, 0x8801}, | 188 | {0x0008, 0x8802}, |
213 | /* 46114 1875 */ {0x00ec, 0x8800}, | 189 | {0x001b, 0x8801}, |
214 | /* 46137 1876 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 190 | {0x0000, 0x8800}, |
215 | /* 46161 1877 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 191 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
216 | /* 46185 1878 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 192 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
217 | /* 46211 1879 */ {0x0008, 0x8802}, | 193 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
218 | /* 46236 1880 */ {0x001a, 0x8801}, | 194 | {0x0008, 0x8802}, |
219 | /* 46261 1881 */ {0x0094, 0x8800}, | 195 | {0x0027, 0x8801}, |
220 | /* 46284 1882 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 196 | {0x00a2, 0x8800}, |
221 | /* 46308 1883 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 197 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
222 | /* 46332 1884 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 198 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
223 | /* 46358 1885 */ {0x0008, 0x8802}, | 199 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
224 | /* 46383 1886 */ {0x001b, 0x8801}, | 200 | {0x0008, 0x8802}, |
225 | /* 46408 1887 */ {0x0000, 0x8800}, | 201 | {0x0028, 0x8801}, |
226 | /* 46431 1888 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 202 | {0x0040, 0x8800}, |
227 | /* 46455 1889 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 203 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
228 | /* 46479 1890 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 204 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
229 | /* 46505 1891 */ {0x0008, 0x8802}, | 205 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
230 | /* 46530 1892 */ {0x0027, 0x8801}, | 206 | {0x0008, 0x8802}, |
231 | /* 46555 1893 */ {0x00a2, 0x8800}, | 207 | {0x002a, 0x8801}, |
232 | /* 46578 1894 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 208 | {0x0084, 0x8800}, |
233 | /* 46602 1895 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 209 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
234 | /* 46626 1896 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 210 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
235 | /* 46652 1897 */ {0x0008, 0x8802}, | 211 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
236 | /* 46677 1898 */ {0x0028, 0x8801}, | 212 | {0x0008, 0x8802}, |
237 | /* 46702 1899 */ {0x0040, 0x8800}, | 213 | {0x002b, 0x8801}, |
238 | /* 46725 1900 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 214 | {0x00a8, 0x8800}, |
239 | /* 46749 1901 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 215 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
240 | /* 46773 1902 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 216 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
241 | /* 46799 1903 */ {0x0008, 0x8802}, | 217 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
242 | /* 46824 1904 */ {0x002a, 0x8801}, | 218 | {0x0008, 0x8802}, |
243 | /* 46849 1905 */ {0x0084, 0x8800}, | 219 | {0x002c, 0x8801}, |
244 | /* 46872 1906 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 220 | {0x00fe, 0x8800}, |
245 | /* 46896 1907 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 221 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
246 | /* 46920 1908 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 222 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
247 | /* 46946 1909 */ {0x0008, 0x8802}, | 223 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
248 | /* 46971 1910 */ {0x002b, 0x8801}, | 224 | {0x0008, 0x8802}, |
249 | /* 46996 1911 */ {0x00a8, 0x8800}, | 225 | {0x002d, 0x8801}, |
250 | /* 47019 1912 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 226 | {0x0003, 0x8800}, |
251 | /* 47043 1913 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 227 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
252 | /* 47067 1914 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 228 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
253 | /* 47093 1915 */ {0x0008, 0x8802}, | 229 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
254 | /* 47118 1916 */ {0x002c, 0x8801}, | 230 | {0x0008, 0x8802}, |
255 | /* 47143 1917 */ {0x00fe, 0x8800}, | 231 | {0x0038, 0x8801}, |
256 | /* 47166 1918 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 232 | {0x0083, 0x8800}, |
257 | /* 47190 1919 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 233 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
258 | /* 47214 1920 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 234 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
259 | /* 47240 1921 */ {0x0008, 0x8802}, | 235 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
260 | /* 47265 1922 */ {0x002d, 0x8801}, | 236 | {0x0008, 0x8802}, |
261 | /* 47290 1923 */ {0x0003, 0x8800}, | 237 | {0x0033, 0x8801}, |
262 | /* 47313 1924 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 238 | {0x0081, 0x8800}, |
263 | /* 47337 1925 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 239 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
264 | /* 47361 1926 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 240 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
265 | /* 47387 1927 */ {0x0008, 0x8802}, | 241 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
266 | /* 47412 1928 */ {0x0038, 0x8801}, | 242 | {0x0008, 0x8802}, |
267 | /* 47437 1929 */ {0x0083, 0x8800}, | 243 | {0x0034, 0x8801}, |
268 | /* 47460 1930 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 244 | {0x004a, 0x8800}, |
269 | /* 47484 1931 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 245 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
270 | /* 47508 1932 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 246 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
271 | /* 47534 1933 */ {0x0008, 0x8802}, | 247 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
272 | /* 47559 1934 */ {0x0033, 0x8801}, | 248 | {0x0008, 0x8802}, |
273 | /* 47584 1935 */ {0x0081, 0x8800}, | 249 | {0x0039, 0x8801}, |
274 | /* 47607 1936 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 250 | {0x0000, 0x8800}, |
275 | /* 47631 1937 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 251 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
276 | /* 47655 1938 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 252 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
277 | /* 47681 1939 */ {0x0008, 0x8802}, | 253 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
278 | /* 47706 1940 */ {0x0034, 0x8801}, | 254 | {0x0008, 0x8802}, |
279 | /* 47731 1941 */ {0x004a, 0x8800}, | 255 | {0x0010, 0x8801}, |
280 | /* 47754 1942 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 256 | {0x00a8, 0x8800}, |
281 | /* 47778 1943 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 257 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
282 | /* 47802 1944 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 258 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
283 | /* 47828 1945 */ {0x0008, 0x8802}, | 259 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
284 | /* 47853 1946 */ {0x0039, 0x8801}, | 260 | {0x0008, 0x8802}, |
285 | /* 47878 1947 */ {0x0000, 0x8800}, | 261 | {0x0006, 0x8801}, |
286 | /* 47901 1948 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 262 | {0x0058, 0x8800}, |
287 | /* 47925 1949 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 263 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
288 | /* 47949 1950 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 264 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
289 | /* 47975 1951 */ {0x0008, 0x8802}, | 265 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
290 | /* 48000 1952 */ {0x0010, 0x8801}, | 266 | {0x0008, 0x8802}, |
291 | /* 48025 1953 */ {0x00a8, 0x8800}, | 267 | {0x0000, 0x8801}, |
292 | /* 48048 1954 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 268 | {0x0004, 0x8800}, |
293 | /* 48072 1955 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 269 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
294 | /* 48096 1956 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 270 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
295 | /* 48122 1957 */ {0x0008, 0x8802}, | 271 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
296 | /* 48147 1958 */ {0x0006, 0x8801}, | 272 | {0x0008, 0x8802}, |
297 | /* 48172 1959 */ {0x0058, 0x8800}, | 273 | {0x0040, 0x8801}, |
298 | /* 48195 1960 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 274 | {0x0080, 0x8800}, |
299 | /* 48219 1961 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 275 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
300 | /* 48243 1962 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 276 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
301 | /* 48269 1963 */ {0x0008, 0x8802}, | 277 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
302 | /* 48294 1964 */ {0x0000, 0x8801}, | 278 | {0x0008, 0x8802}, |
303 | /* 48319 1965 */ {0x0004, 0x8800}, | 279 | {0x0041, 0x8801}, |
304 | /* 48342 1966 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 280 | {0x000c, 0x8800}, |
305 | /* 48366 1967 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 281 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
306 | /* 48390 1968 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 282 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
307 | /* 48416 1969 */ {0x0008, 0x8802}, | 283 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
308 | /* 48441 1970 */ {0x0040, 0x8801}, | 284 | {0x0008, 0x8802}, |
309 | /* 48466 1971 */ {0x0080, 0x8800}, | 285 | {0x0042, 0x8801}, |
310 | /* 48489 1972 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 286 | {0x000c, 0x8800}, |
311 | /* 48513 1973 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 287 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
312 | /* 48537 1974 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 288 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
313 | /* 48563 1975 */ {0x0008, 0x8802}, | 289 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
314 | /* 48588 1976 */ {0x0041, 0x8801}, | 290 | {0x0008, 0x8802}, |
315 | /* 48613 1977 */ {0x000c, 0x8800}, | 291 | {0x0043, 0x8801}, |
316 | /* 48636 1978 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 292 | {0x0028, 0x8800}, |
317 | /* 48660 1979 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 293 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
318 | /* 48684 1980 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 294 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
319 | /* 48710 1981 */ {0x0008, 0x8802}, | 295 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
320 | /* 48735 1982 */ {0x0042, 0x8801}, | 296 | {0x0008, 0x8802}, |
321 | /* 48760 1983 */ {0x000c, 0x8800}, | 297 | {0x0044, 0x8801}, |
322 | /* 48783 1984 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 298 | {0x0080, 0x8800}, |
323 | /* 48807 1985 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 299 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
324 | /* 48831 1986 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 300 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
325 | /* 48857 1987 */ {0x0008, 0x8802}, | 301 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
326 | /* 48882 1988 */ {0x0043, 0x8801}, | 302 | {0x0008, 0x8802}, |
327 | /* 48907 1989 */ {0x0028, 0x8800}, | 303 | {0x0045, 0x8801}, |
328 | /* 48930 1990 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 304 | {0x0020, 0x8800}, |
329 | /* 48954 1991 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 305 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
330 | /* 48978 1992 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 306 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
331 | /* 49004 1993 */ {0x0008, 0x8802}, | 307 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
332 | /* 49029 1994 */ {0x0044, 0x8801}, | 308 | {0x0008, 0x8802}, |
333 | /* 49054 1995 */ {0x0080, 0x8800}, | 309 | {0x0046, 0x8801}, |
334 | /* 49077 1996 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 310 | {0x0020, 0x8800}, |
335 | /* 49101 1997 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 311 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
336 | /* 49125 1998 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 312 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
337 | /* 49151 1999 */ {0x0008, 0x8802}, | 313 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
338 | /* 49176 2000 */ {0x0045, 0x8801}, | 314 | {0x0008, 0x8802}, |
339 | /* 49201 2001 */ {0x0020, 0x8800}, | 315 | {0x0047, 0x8801}, |
340 | /* 49224 2002 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 316 | {0x0080, 0x8800}, |
341 | /* 49248 2003 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 317 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
342 | /* 49272 2004 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 318 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
343 | /* 49298 2005 */ {0x0008, 0x8802}, | 319 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
344 | /* 49323 2006 */ {0x0046, 0x8801}, | 320 | {0x0008, 0x8802}, |
345 | /* 49348 2007 */ {0x0020, 0x8800}, | 321 | {0x0048, 0x8801}, |
346 | /* 49371 2008 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 322 | {0x004c, 0x8800}, |
347 | /* 49395 2009 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 323 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
348 | /* 49419 2010 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 324 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
349 | /* 49445 2011 */ {0x0008, 0x8802}, | 325 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
350 | /* 49470 2012 */ {0x0047, 0x8801}, | 326 | {0x0008, 0x8802}, |
351 | /* 49495 2013 */ {0x0080, 0x8800}, | 327 | {0x0049, 0x8801}, |
352 | /* 49518 2014 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 328 | {0x0084, 0x8800}, |
353 | /* 49542 2015 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 329 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
354 | /* 49566 2016 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 330 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
355 | /* 49592 2017 */ {0x0008, 0x8802}, | 331 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
356 | /* 49617 2018 */ {0x0048, 0x8801}, | 332 | {0x0008, 0x8802}, |
357 | /* 49642 2019 */ {0x004c, 0x8800}, | 333 | {0x004a, 0x8801}, |
358 | /* 49665 2020 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 334 | {0x0084, 0x8800}, |
359 | /* 49689 2021 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 335 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
360 | /* 49713 2022 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 336 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
361 | /* 49739 2023 */ {0x0008, 0x8802}, | 337 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
362 | /* 49764 2024 */ {0x0049, 0x8801}, | 338 | {0x0008, 0x8802}, |
363 | /* 49789 2025 */ {0x0084, 0x8800}, | 339 | {0x004b, 0x8801}, |
364 | /* 49812 2026 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 340 | {0x0084, 0x8800}, |
365 | /* 49836 2027 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 341 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
366 | /* 49860 2028 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | ||
367 | /* 49886 2029 */ {0x0008, 0x8802}, | ||
368 | /* 49911 2030 */ {0x004a, 0x8801}, | ||
369 | /* 49936 2031 */ {0x0084, 0x8800}, | ||
370 | /* 49959 2032 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
371 | /* 49983 2033 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
372 | /* 50007 2034 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | ||
373 | /* 50033 2035 */ {0x0008, 0x8802}, | ||
374 | /* 50058 2036 */ {0x004b, 0x8801}, | ||
375 | /* 50083 2037 */ {0x0084, 0x8800}, | ||
376 | /* 50106 2038 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
377 | /* --------------------------------------- */ | 342 | /* --------------------------------------- */ |
378 | /* 50132 2039 */ {0x0012, 0x8700}, | 343 | {0x0012, 0x8700}, /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ |
379 | /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ | 344 | {0x0000, 0x8701}, /* CKx1 clock delay adj */ |
380 | /* 50157 2040 */ {0x0000, 0x8701}, | 345 | {0x0000, 0x8701}, /* CKx1 clock delay adj */ |
381 | /* CKx1 clock delay adj */ | 346 | {0x0001, 0x870c}, /* CKOx2 output */ |
382 | /* 50182 2041 */ {0x0000, 0x8701}, | ||
383 | /* CKx1 clock delay adj */ | ||
384 | /* 50207 2042 */ {0x0001, 0x870c}, | ||
385 | /* CKOx2 output */ | ||
386 | /* --------------------------------------- */ | 347 | /* --------------------------------------- */ |
387 | /* 50232 2043 */ {0x0080, 0x8600}, | 348 | {0x0080, 0x8600}, /* Line memory read counter (L) */ |
388 | /* Line memory read counter (L) */ | 349 | {0x0001, 0x8606}, /* reserved */ |
389 | /* 50257 2044 */ {0x0001, 0x8606}, | 350 | {0x0064, 0x8607}, /* Line memory read counter (H) 0x6480=25,728 */ |
390 | /* reserved */ | 351 | {0x002a, 0x8601}, /* CDSP sharp interpolation mode, |
391 | /* 50282 2045 */ {0x0064, 0x8607}, | ||
392 | /* Line memory read counter (H) 0x6480=25,728 */ | ||
393 | /* 50307 2046 */ {0x002a, 0x8601}, | ||
394 | /* CDSP sharp interpolation mode, | ||
395 | * line sel for color sep, edge enhance enab */ | 352 | * line sel for color sep, edge enhance enab */ |
396 | /* 50332 2047 */ {0x0000, 0x8602}, | 353 | {0x0000, 0x8602}, /* optical black level for user settng = 0 */ |
397 | /* optical black level for user settng = 0 */ | 354 | {0x0080, 0x8600}, /* Line memory read counter (L) */ |
398 | /* 50357 2048 */ {0x0080, 0x8600}, | 355 | {0x000a, 0x8603}, /* optical black level calc mode: |
399 | /* Line memory read counter (L) */ | 356 | * auto; optical black offset = 10 */ |
400 | /* 50382 2049 */ {0x000a, 0x8603}, | 357 | {0x00df, 0x865b}, /* Horiz offset for valid pixels (L)=0xdf */ |
401 | /* optical black level calc mode: auto; optical black offset = 10 */ | 358 | {0x0012, 0x865c}, /* Vert offset for valid lines (L)=0x12 */ |
402 | /* 50407 2050 */ {0x00df, 0x865b}, | ||
403 | /* Horiz offset for valid pixels (L)=0xdf */ | ||
404 | /* 50432 2051 */ {0x0012, 0x865c}, | ||
405 | /* Vert offset for valid lines (L)=0x12 */ | ||
406 | 359 | ||
407 | /* The following two lines seem to be the "wrong" resolution. */ | 360 | /* The following two lines seem to be the "wrong" resolution. */ |
408 | /* But perhaps these indicate the actual size of the sensor */ | 361 | /* But perhaps these indicate the actual size of the sensor */ |
409 | /* rather than the size of the current video mode. */ | 362 | /* rather than the size of the current video mode. */ |
410 | /* 50457 2052 */ {0x0058, 0x865d}, | 363 | {0x0058, 0x865d}, /* Horiz valid pixels (*4) (L) = 352 */ |
411 | /* Horiz valid pixels (*4) (L) = 352 */ | 364 | {0x0048, 0x865e}, /* Vert valid lines (*4) (L) = 288 */ |
412 | /* 50482 2053 */ {0x0048, 0x865e}, | 365 | |
413 | /* Vert valid lines (*4) (L) = 288 */ | 366 | {0x0015, 0x8608}, /* A11 Coef ... */ |
414 | 367 | {0x0030, 0x8609}, | |
415 | /* 50507 2054 */ {0x0015, 0x8608}, | 368 | {0x00fb, 0x860a}, |
416 | /* A11 Coef ... */ | 369 | {0x003e, 0x860b}, |
417 | /* 50532 2055 */ {0x0030, 0x8609}, | 370 | {0x00ce, 0x860c}, |
418 | /* 50557 2056 */ {0x00fb, 0x860a}, | 371 | {0x00f4, 0x860d}, |
419 | /* 50582 2057 */ {0x003e, 0x860b}, | 372 | {0x00eb, 0x860e}, |
420 | /* 50607 2058 */ {0x00ce, 0x860c}, | 373 | {0x00dc, 0x860f}, |
421 | /* 50632 2059 */ {0x00f4, 0x860d}, | 374 | {0x0039, 0x8610}, |
422 | /* 50657 2060 */ {0x00eb, 0x860e}, | 375 | {0x0001, 0x8611}, /* R offset for white balance ... */ |
423 | /* 50682 2061 */ {0x00dc, 0x860f}, | 376 | {0x0000, 0x8612}, |
424 | /* 50707 2062 */ {0x0039, 0x8610}, | 377 | {0x0001, 0x8613}, |
425 | /* 50732 2063 */ {0x0001, 0x8611}, | 378 | {0x0000, 0x8614}, |
426 | /* R offset for white balance ... */ | 379 | {0x005b, 0x8651}, /* R gain for white balance ... */ |
427 | /* 50757 2064 */ {0x0000, 0x8612}, | 380 | {0x0040, 0x8652}, |
428 | /* 50782 2065 */ {0x0001, 0x8613}, | 381 | {0x0060, 0x8653}, |
429 | /* 50807 2066 */ {0x0000, 0x8614}, | 382 | {0x0040, 0x8654}, |
430 | /* 50832 2067 */ {0x005b, 0x8651}, | 383 | {0x0000, 0x8655}, |
431 | /* R gain for white balance ... */ | 384 | {0x0001, 0x863f}, /* Fixed gamma correction enable, USB control, |
432 | /* 50857 2068 */ {0x0040, 0x8652}, | 385 | * lum filter disable, lum noise clip disable */ |
433 | /* 50882 2069 */ {0x0060, 0x8653}, | 386 | {0x00a1, 0x8656}, /* Window1 size 256x256, Windows2 size 64x64, |
434 | /* 50907 2070 */ {0x0040, 0x8654}, | 387 | * gamma look-up disable, |
435 | /* 50932 2071 */ {0x0000, 0x8655}, | 388 | * new edge enhancement enable */ |
436 | /* 50957 2072 */ {0x0001, 0x863f}, | 389 | {0x0018, 0x8657}, /* Edge gain high thresh */ |
437 | /* Fixed gamma correction enable, USB control, | 390 | {0x0020, 0x8658}, /* Edge gain low thresh */ |
438 | * lum filter disable, lum noise clip disable */ | 391 | {0x000a, 0x8659}, /* Edge bandwidth high threshold */ |
439 | /* 50982 2073 */ {0x00a1, 0x8656}, | 392 | {0x0005, 0x865a}, /* Edge bandwidth low threshold */ |
440 | /* Window1 size 256x256, Windows2 size 64x64, | ||
441 | * gamma look-up disable, new edge enhancement enable */ | ||
442 | /* 51007 2074 */ {0x0018, 0x8657}, | ||
443 | /* Edge gain high thresh */ | ||
444 | /* 51032 2075 */ {0x0020, 0x8658}, | ||
445 | /* Edge gain low thresh */ | ||
446 | /* 51057 2076 */ {0x000a, 0x8659}, | ||
447 | /* Edge bandwidth high threshold */ | ||
448 | /* 51082 2077 */ {0x0005, 0x865a}, | ||
449 | /* Edge bandwidth low threshold */ | ||
450 | /* -------------------------------- */ | 393 | /* -------------------------------- */ |
451 | /* 51107 2078 */ {0x0030, 0x8112}, | 394 | {0x0030, 0x8112}, /* Video drop enable, ISO streaming enable */ |
452 | /* Video drop enable, ISO streaming enable */ | 395 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
453 | /* 51130 2079 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 396 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
454 | /* 51154 2080 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 397 | {0xa908, 0x8802}, |
455 | /* 51180 2081 */ {0xa908, 0x8802}, | 398 | {0x0034, 0x8801}, /* SSI reg addr */ |
456 | /* 51205 2082 */ {0x0034, 0x8801}, | 399 | {0x00ca, 0x8800}, |
457 | /* SSI reg addr */ | ||
458 | /* 51230 2083 */ {0x00ca, 0x8800}, | ||
459 | /* SSI data to write */ | 400 | /* SSI data to write */ |
460 | /* 51253 2084 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 401 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
461 | /* 51277 2085 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 402 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
462 | /* 51301 2086 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 403 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
463 | /* 51327 2087 */ {0x1f08, 0x8802}, | 404 | {0x1f08, 0x8802}, |
464 | /* 51352 2088 */ {0x0006, 0x8801}, | 405 | {0x0006, 0x8801}, |
465 | /* 51377 2089 */ {0x0080, 0x8800}, | 406 | {0x0080, 0x8800}, |
466 | /* 51400 2090 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 407 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
467 | 408 | ||
468 | /* ----- Read back coefs we wrote earlier. */ | 409 | /* ----- Read back coefs we wrote earlier. */ |
469 | /* 51424 2091 */ /* READ { 0, 0x0000, 0x8608 } -> 0000: 15 */ | 410 | /* READ { 0x0000, 0x8608 } -> 0000: 15 */ |
470 | /* 51448 2092 */ /* READ { 0, 0x0000, 0x8609 } -> 0000: 30 */ | 411 | /* READ { 0x0000, 0x8609 } -> 0000: 30 */ |
471 | /* 51472 2093 */ /* READ { 0, 0x0000, 0x860a } -> 0000: fb */ | 412 | /* READ { 0x0000, 0x860a } -> 0000: fb */ |
472 | /* 51496 2094 */ /* READ { 0, 0x0000, 0x860b } -> 0000: 3e */ | 413 | /* READ { 0x0000, 0x860b } -> 0000: 3e */ |
473 | /* 51520 2095 */ /* READ { 0, 0x0000, 0x860c } -> 0000: ce */ | 414 | /* READ { 0x0000, 0x860c } -> 0000: ce */ |
474 | /* 51544 2096 */ /* READ { 0, 0x0000, 0x860d } -> 0000: f4 */ | 415 | /* READ { 0x0000, 0x860d } -> 0000: f4 */ |
475 | /* 51568 2097 */ /* READ { 0, 0x0000, 0x860e } -> 0000: eb */ | 416 | /* READ { 0x0000, 0x860e } -> 0000: eb */ |
476 | /* 51592 2098 */ /* READ { 0, 0x0000, 0x860f } -> 0000: dc */ | 417 | /* READ { 0x0000, 0x860f } -> 0000: dc */ |
477 | /* 51616 2099 */ /* READ { 0, 0x0000, 0x8610 } -> 0000: 39 */ | 418 | /* READ { 0x0000, 0x8610 } -> 0000: 39 */ |
478 | /* 51640 2100 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 419 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
479 | /* 51664 2101 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 08 */ | 420 | /* READ { 0x0001, 0x8802 } -> 0000: 08 */ |
480 | /* 51690 2102 */ {0xb008, 0x8802}, | 421 | {0xb008, 0x8802}, |
481 | /* 51715 2103 */ {0x0006, 0x8801}, | 422 | {0x0006, 0x8801}, |
482 | /* 51740 2104 */ {0x007d, 0x8800}, | 423 | {0x007d, 0x8800}, |
483 | /* 51763 2105 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 424 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
484 | 425 | ||
485 | 426 | ||
486 | /* This chunk is seemingly redundant with */ | 427 | /* This chunk is seemingly redundant with */ |
487 | /* earlier commands (A11 Coef...), but if I disable it, */ | 428 | /* earlier commands (A11 Coef...), but if I disable it, */ |
488 | /* the image appears too dark. Maybe there was some kind of */ | 429 | /* the image appears too dark. Maybe there was some kind of */ |
489 | /* reset since the earlier commands, so this is necessary again. */ | 430 | /* reset since the earlier commands, so this is necessary again. */ |
490 | /* 51789 2106 */ {0x0015, 0x8608}, | 431 | {0x0015, 0x8608}, |
491 | /* 51814 2107 */ {0x0030, 0x8609}, | 432 | {0x0030, 0x8609}, |
492 | /* 51839 2108 */ {0xfffb, 0x860a}, | 433 | {0xfffb, 0x860a}, |
493 | /* 51864 2109 */ {0x003e, 0x860b}, | 434 | {0x003e, 0x860b}, |
494 | /* 51889 2110 */ {0xffce, 0x860c}, | 435 | {0xffce, 0x860c}, |
495 | /* 51914 2111 */ {0xfff4, 0x860d}, | 436 | {0xfff4, 0x860d}, |
496 | /* 51939 2112 */ {0xffeb, 0x860e}, | 437 | {0xffeb, 0x860e}, |
497 | /* 51964 2113 */ {0xffdc, 0x860f}, | 438 | {0xffdc, 0x860f}, |
498 | /* 51989 2114 */ {0x0039, 0x8610}, | 439 | {0x0039, 0x8610}, |
499 | /* 52014 2115 */ {0x0018, 0x8657}, | 440 | {0x0018, 0x8657}, |
500 | 441 | ||
501 | /* 52039 2116 */ {0x0000, 0x8508}, | 442 | {0x0000, 0x8508}, /* Disable compression. */ |
502 | /* Disable compression. */ | ||
503 | /* Previous line was: | 443 | /* Previous line was: |
504 | * 52039 2116 * { 0, 0x0021, 0x8508 }, * Enable compression. */ | 444 | {0x0021, 0x8508}, * Enable compression. */ |
505 | /* 52064 2117 */ {0x0032, 0x850b}, | 445 | {0x0032, 0x850b}, /* compression stuff */ |
506 | /* compression stuff */ | 446 | {0x0003, 0x8509}, /* compression stuff */ |
507 | /* 52089 2118 */ {0x0003, 0x8509}, | 447 | {0x0011, 0x850a}, /* compression stuff */ |
508 | /* compression stuff */ | 448 | {0x0021, 0x850d}, /* compression stuff */ |
509 | /* 52114 2119 */ {0x0011, 0x850a}, | 449 | {0x0010, 0x850c}, /* compression stuff */ |
510 | /* compression stuff */ | 450 | {0x0003, 0x8500}, /* *** Video mode: 160x120 */ |
511 | /* 52139 2120 */ {0x0021, 0x850d}, | 451 | {0x0001, 0x8501}, /* Hardware-dominated snap control */ |
512 | /* compression stuff */ | 452 | {0x0061, 0x8656}, /* Window1 size 128x128, Windows2 size 128x128, |
513 | /* 52164 2121 */ {0x0010, 0x850c}, | 453 | * gamma look-up disable, |
514 | /* compression stuff */ | 454 | * new edge enhancement enable */ |
515 | /* 52189 2122 */ {0x0003, 0x8500}, | 455 | {0x0018, 0x8617}, /* Window1 start X (*2) */ |
516 | /* *** Video mode: 160x120 */ | 456 | {0x0008, 0x8618}, /* Window1 start Y (*2) */ |
517 | /* 52214 2123 */ {0x0001, 0x8501}, | 457 | {0x0061, 0x8656}, /* Window1 size 128x128, Windows2 size 128x128, |
518 | /* Hardware-dominated snap control */ | 458 | * gamma look-up disable, |
519 | /* 52239 2124 */ {0x0061, 0x8656}, | 459 | * new edge enhancement enable */ |
520 | /* Window1 size 128x128, Windows2 size 128x128, | 460 | {0x0058, 0x8619}, /* Window2 start X (*2) */ |
521 | * gamma look-up disable, new edge enhancement enable */ | 461 | {0x0008, 0x861a}, /* Window2 start Y (*2) */ |
522 | /* 52264 2125 */ {0x0018, 0x8617}, | 462 | {0x00ff, 0x8615}, /* High lum thresh for white balance */ |
523 | /* Window1 start X (*2) */ | 463 | {0x0000, 0x8616}, /* Low lum thresh for white balance */ |
524 | /* 52289 2126 */ {0x0008, 0x8618}, | 464 | {0x0012, 0x8700}, /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ |
525 | /* Window1 start Y (*2) */ | 465 | {0x0012, 0x8700}, /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ |
526 | /* 52314 2127 */ {0x0061, 0x8656}, | 466 | /* READ { 0x0000, 0x8656 } -> 0000: 61 */ |
527 | /* Window1 size 128x128, Windows2 size 128x128, | 467 | {0x0028, 0x8802}, /* 375 Khz SSI clock, SSI r/w sync with VSYNC */ |
528 | * gamma look-up disable, new edge enhancement enable */ | 468 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
529 | /* 52339 2128 */ {0x0058, 0x8619}, | 469 | /* READ { 0x0001, 0x8802 } -> 0000: 28 */ |
530 | /* Window2 start X (*2) */ | 470 | {0x1f28, 0x8802}, /* 375 Khz SSI clock, SSI r/w sync with VSYNC */ |
531 | /* 52364 2129 */ {0x0008, 0x861a}, | 471 | {0x0010, 0x8801}, /* SSI reg addr */ |
532 | /* Window2 start Y (*2) */ | 472 | {0x003e, 0x8800}, /* SSI data to write */ |
533 | /* 52389 2130 */ {0x00ff, 0x8615}, | 473 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
534 | /* High lum thresh for white balance */ | 474 | {0x0028, 0x8802}, |
535 | /* 52414 2131 */ {0x0000, 0x8616}, | 475 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
536 | /* Low lum thresh for white balance */ | 476 | /* READ { 0x0001, 0x8802 } -> 0000: 28 */ |
537 | /* 52439 2132 */ {0x0012, 0x8700}, | 477 | {0x1f28, 0x8802}, |
538 | /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ | 478 | {0x0000, 0x8801}, |
539 | /* 52464 2133 */ {0x0012, 0x8700}, | 479 | {0x001f, 0x8800}, |
540 | /* Clock speed 48Mhz/(2+2)/2= 6 Mhz */ | 480 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
541 | /* 52487 2134 */ /* READ { 0, 0x0000, 0x8656 } -> 0000: 61 */ | 481 | {0x0001, 0x8602}, /* optical black level for user settning = 1 */ |
542 | /* 52513 2135 */ {0x0028, 0x8802}, | ||
543 | /* 375 Khz SSI clock, SSI r/w sync with VSYNC */ | ||
544 | /* 52536 2136 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
545 | /* 52560 2137 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 28 */ | ||
546 | /* 52586 2138 */ {0x1f28, 0x8802}, | ||
547 | /* 375 Khz SSI clock, SSI r/w sync with VSYNC */ | ||
548 | /* 52611 2139 */ {0x0010, 0x8801}, | ||
549 | /* SSI reg addr */ | ||
550 | /* 52636 2140 */ {0x003e, 0x8800}, | ||
551 | /* SSI data to write */ | ||
552 | /* 52659 2141 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
553 | /* 52685 2142 */ {0x0028, 0x8802}, | ||
554 | /* 52708 2143 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
555 | /* 52732 2144 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 28 */ | ||
556 | /* 52758 2145 */ {0x1f28, 0x8802}, | ||
557 | /* 52783 2146 */ {0x0000, 0x8801}, | ||
558 | /* 52808 2147 */ {0x001f, 0x8800}, | ||
559 | /* 52831 2148 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | ||
560 | /* 52857 2149 */ {0x0001, 0x8602}, | ||
561 | /* optical black level for user settning = 1 */ | ||
562 | 482 | ||
563 | /* Original: */ | 483 | /* Original: */ |
564 | /* 52882 2150 */ {0x0023, 0x8700}, | 484 | {0x0023, 0x8700}, /* Clock speed 48Mhz/(3+2)/4= 2.4 Mhz */ |
565 | /* Clock speed 48Mhz/(3+2)/4= 2.4 Mhz */ | 485 | {0x000f, 0x8602}, /* optical black level for user settning = 15 */ |
566 | /* 52907 2151 */ {0x000f, 0x8602}, | 486 | |
567 | /* optical black level for user settning = 15 */ | 487 | {0x0028, 0x8802}, |
568 | 488 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ | |
569 | /* 52932 2152 */ {0x0028, 0x8802}, | 489 | /* READ { 0x0001, 0x8802 } -> 0000: 28 */ |
570 | /* 52955 2153 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 490 | {0x1f28, 0x8802}, |
571 | /* 52979 2154 */ /* READ { 0, 0x0001, 0x8802 } -> 0000: 28 */ | 491 | {0x0010, 0x8801}, |
572 | /* 53005 2155 */ {0x1f28, 0x8802}, | 492 | {0x007b, 0x8800}, |
573 | /* 53030 2156 */ {0x0010, 0x8801}, | 493 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
574 | /* 53055 2157 */ {0x007b, 0x8800}, | 494 | {0x002f, 0x8651}, /* R gain for white balance ... */ |
575 | /* 53078 2158 */ /* READ { 0, 0x0001, 0x8803 } -> 0000: 00 */ | 495 | {0x0080, 0x8653}, |
576 | /* 53104 2159 */ {0x002f, 0x8651}, | 496 | /* READ { 0x0000, 0x8655 } -> 0000: 00 */ |
577 | /* R gain for white balance ... */ | 497 | {0x0000, 0x8655}, |
578 | /* 53129 2160 */ {0x0080, 0x8653}, | 498 | |
579 | /* 53152 2161 */ /* READ { 0, 0x0000, 0x8655 } -> 0000: 00 */ | 499 | {0x0030, 0x8112}, /* Video drop enable, ISO streaming enable */ |
580 | /* 53178 2162 */ {0x0000, 0x8655}, | 500 | {0x0020, 0x8112}, /* Video drop enable, ISO streaming disable */ |
581 | 501 | /* UNKNOWN DIRECTION (URB_FUNCTION_SELECT_INTERFACE: (ALT=0) ) */ | |
582 | /* 53203 2163 */ {0x0030, 0x8112}, | ||
583 | /* Video drop enable, ISO streaming enable */ | ||
584 | /* 53228 2164 */ {0x0020, 0x8112}, | ||
585 | /* Video drop enable, ISO streaming disable */ | ||
586 | /* 53252 2165 */ | ||
587 | /* UNKNOWN DIRECTION (URB_FUNCTION_SELECT_INTERFACE: (ALT=0) ) */ | ||
588 | {} | 502 | {} |
589 | }; | 503 | }; |
590 | 504 | ||
@@ -592,27 +506,27 @@ static const u16 spca508_init_data[][2] = | |||
592 | * Initialization data for Intel EasyPC Camera CS110 | 506 | * Initialization data for Intel EasyPC Camera CS110 |
593 | */ | 507 | */ |
594 | static const u16 spca508cs110_init_data[][2] = { | 508 | static const u16 spca508cs110_init_data[][2] = { |
595 | {0x0000, 0x870b}, /* Reset CTL3 */ | 509 | {0x0000, 0x870b}, /* Reset CTL3 */ |
596 | {0x0003, 0x8111}, /* Soft Reset compression, memory, TG & CDSP */ | 510 | {0x0003, 0x8111}, /* Soft Reset compression, memory, TG & CDSP */ |
597 | {0x0000, 0x8111}, /* Normal operation on reset */ | 511 | {0x0000, 0x8111}, /* Normal operation on reset */ |
598 | {0x0090, 0x8110}, | 512 | {0x0090, 0x8110}, |
599 | /* External Clock 2x & Synchronous Serial Interface Output */ | 513 | /* External Clock 2x & Synchronous Serial Interface Output */ |
600 | {0x0020, 0x8112}, /* Video Drop packet enable */ | 514 | {0x0020, 0x8112}, /* Video Drop packet enable */ |
601 | {0x0000, 0x8114}, /* Software GPIO output data */ | 515 | {0x0000, 0x8114}, /* Software GPIO output data */ |
602 | {0x0001, 0x8114}, | 516 | {0x0001, 0x8114}, |
603 | {0x0001, 0x8114}, | 517 | {0x0001, 0x8114}, |
604 | {0x0001, 0x8114}, | 518 | {0x0001, 0x8114}, |
605 | {0x0003, 0x8114}, | 519 | {0x0003, 0x8114}, |
606 | 520 | ||
607 | /* Initial sequence Synchronous Serial Interface */ | 521 | /* Initial sequence Synchronous Serial Interface */ |
608 | {0x000f, 0x8402}, /* Memory bank Address */ | 522 | {0x000f, 0x8402}, /* Memory bank Address */ |
609 | {0x0000, 0x8403}, /* Memory bank Address */ | 523 | {0x0000, 0x8403}, /* Memory bank Address */ |
610 | {0x00ba, 0x8804}, /* SSI Slave address */ | 524 | {0x00ba, 0x8804}, /* SSI Slave address */ |
611 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock Two DataByte */ | 525 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock Two DataByte */ |
612 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock two DataByte */ | 526 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock two DataByte */ |
613 | 527 | ||
614 | {0x0001, 0x8801}, | 528 | {0x0001, 0x8801}, |
615 | {0x000a, 0x8805},/* a - NWG: Dunno what this is about */ | 529 | {0x000a, 0x8805}, /* a - NWG: Dunno what this is about */ |
616 | {0x0000, 0x8800}, | 530 | {0x0000, 0x8800}, |
617 | {0x0010, 0x8802}, | 531 | {0x0010, 0x8802}, |
618 | 532 | ||
@@ -646,459 +560,459 @@ static const u16 spca508cs110_init_data[][2] = { | |||
646 | {0x0000, 0x8800}, | 560 | {0x0000, 0x8800}, |
647 | {0x0010, 0x8802}, | 561 | {0x0010, 0x8802}, |
648 | 562 | ||
649 | {0x0002, 0x8704}, /* External input CKIx1 */ | 563 | {0x0002, 0x8704}, /* External input CKIx1 */ |
650 | {0x0001, 0x8606}, /* 1 Line memory Read Counter (H) Result: (d)410 */ | 564 | {0x0001, 0x8606}, /* 1 Line memory Read Counter (H) Result: (d)410 */ |
651 | {0x009a, 0x8600}, /* Line memory Read Counter (L) */ | 565 | {0x009a, 0x8600}, /* Line memory Read Counter (L) */ |
652 | {0x0001, 0x865b}, /* 1 Horizontal Offset for Valid Pixel(L) */ | 566 | {0x0001, 0x865b}, /* 1 Horizontal Offset for Valid Pixel(L) */ |
653 | {0x0003, 0x865c}, /* 3 Vertical Offset for Valid Lines(L) */ | 567 | {0x0003, 0x865c}, /* 3 Vertical Offset for Valid Lines(L) */ |
654 | {0x0058, 0x865d}, /* 58 Horizontal Valid Pixel Window(L) */ | 568 | {0x0058, 0x865d}, /* 58 Horizontal Valid Pixel Window(L) */ |
655 | 569 | ||
656 | {0x0006, 0x8660}, /* Nibble data + input order */ | 570 | {0x0006, 0x8660}, /* Nibble data + input order */ |
657 | 571 | ||
658 | {0x000a, 0x8602}, /* Optical black level set to 0x0a */ | 572 | {0x000a, 0x8602}, /* Optical black level set to 0x0a */ |
659 | /* 1945 */ {0x0000, 0x8603}, /* Optical black level Offset */ | 573 | {0x0000, 0x8603}, /* Optical black level Offset */ |
660 | 574 | ||
661 | /* 1962 * {0, 0x0000, 0x8611}, * 0 R Offset for white Balance */ | 575 | /* {0x0000, 0x8611}, * 0 R Offset for white Balance */ |
662 | /* 1963 * {0, 0x0000, 0x8612}, * 1 Gr Offset for white Balance */ | 576 | /* {0x0000, 0x8612}, * 1 Gr Offset for white Balance */ |
663 | /* 1964 * {0, 0x0000, 0x8613}, * 1f B Offset for white Balance */ | 577 | /* {0x0000, 0x8613}, * 1f B Offset for white Balance */ |
664 | /* 1965 * {0, 0x0000, 0x8614}, * f0 Gb Offset for white Balance */ | 578 | /* {0x0000, 0x8614}, * f0 Gb Offset for white Balance */ |
665 | 579 | ||
666 | {0x0040, 0x8651}, /* 2b BLUE gain for white balance good at all 60 */ | 580 | {0x0040, 0x8651}, /* 2b BLUE gain for white balance good at all 60 */ |
667 | {0x0030, 0x8652}, /* 41 Gr Gain for white Balance (L) */ | 581 | {0x0030, 0x8652}, /* 41 Gr Gain for white Balance (L) */ |
668 | {0x0035, 0x8653}, /* 26 RED gain for white balance */ | 582 | {0x0035, 0x8653}, /* 26 RED gain for white balance */ |
669 | {0x0035, 0x8654}, /* 40Gb Gain for white Balance (L) */ | 583 | {0x0035, 0x8654}, /* 40Gb Gain for white Balance (L) */ |
670 | {0x0041, 0x863f}, | 584 | {0x0041, 0x863f}, |
671 | /* Fixed Gamma correction enabled (makes colours look better) */ | 585 | /* Fixed Gamma correction enabled (makes colours look better) */ |
672 | 586 | ||
673 | /* 2422 */ {0x0000, 0x8655}, | 587 | {0x0000, 0x8655}, |
674 | /* High bits for white balance*****brightness control*** */ | 588 | /* High bits for white balance*****brightness control*** */ |
675 | {} | 589 | {} |
676 | }; | 590 | }; |
677 | 591 | ||
678 | static const u16 spca508_sightcam_init_data[][2] = { | 592 | static const u16 spca508_sightcam_init_data[][2] = { |
679 | /* This line seems to setup the frame/canvas */ | 593 | /* This line seems to setup the frame/canvas */ |
680 | /*368 */ {0x000f, 0x8402}, | 594 | {0x000f, 0x8402}, |
681 | 595 | ||
682 | /* Theese 6 lines are needed to startup the webcam */ | 596 | /* Theese 6 lines are needed to startup the webcam */ |
683 | /*398 */ {0x0090, 0x8110}, | 597 | {0x0090, 0x8110}, |
684 | /*399 */ {0x0001, 0x8114}, | 598 | {0x0001, 0x8114}, |
685 | /*400 */ {0x0001, 0x8114}, | 599 | {0x0001, 0x8114}, |
686 | /*401 */ {0x0001, 0x8114}, | 600 | {0x0001, 0x8114}, |
687 | /*402 */ {0x0003, 0x8114}, | 601 | {0x0003, 0x8114}, |
688 | /*403 */ {0x0080, 0x8804}, | 602 | {0x0080, 0x8804}, |
689 | 603 | ||
690 | /* This part seems to make the pictures darker? (autobrightness?) */ | 604 | /* This part seems to make the pictures darker? (autobrightness?) */ |
691 | /*436 */ {0x0001, 0x8801}, | 605 | {0x0001, 0x8801}, |
692 | /*437 */ {0x0004, 0x8800}, | 606 | {0x0004, 0x8800}, |
693 | /*439 */ {0x0003, 0x8801}, | 607 | {0x0003, 0x8801}, |
694 | /*440 */ {0x00e0, 0x8800}, | 608 | {0x00e0, 0x8800}, |
695 | /*442 */ {0x0004, 0x8801}, | 609 | {0x0004, 0x8801}, |
696 | /*443 */ {0x00b4, 0x8800}, | 610 | {0x00b4, 0x8800}, |
697 | /*445 */ {0x0005, 0x8801}, | 611 | {0x0005, 0x8801}, |
698 | /*446 */ {0x0000, 0x8800}, | 612 | {0x0000, 0x8800}, |
699 | 613 | ||
700 | /*448 */ {0x0006, 0x8801}, | 614 | {0x0006, 0x8801}, |
701 | /*449 */ {0x00e0, 0x8800}, | 615 | {0x00e0, 0x8800}, |
702 | /*451 */ {0x0007, 0x8801}, | 616 | {0x0007, 0x8801}, |
703 | /*452 */ {0x000c, 0x8800}, | 617 | {0x000c, 0x8800}, |
704 | 618 | ||
705 | /* This section is just needed, it probably | 619 | /* This section is just needed, it probably |
706 | * does something like the previous section, | 620 | * does something like the previous section, |
707 | * but the cam won't start if it's not included. | 621 | * but the cam won't start if it's not included. |
708 | */ | 622 | */ |
709 | /*484 */ {0x0014, 0x8801}, | 623 | {0x0014, 0x8801}, |
710 | /*485 */ {0x0008, 0x8800}, | 624 | {0x0008, 0x8800}, |
711 | /*487 */ {0x0015, 0x8801}, | 625 | {0x0015, 0x8801}, |
712 | /*488 */ {0x0067, 0x8800}, | 626 | {0x0067, 0x8800}, |
713 | /*490 */ {0x0016, 0x8801}, | 627 | {0x0016, 0x8801}, |
714 | /*491 */ {0x0000, 0x8800}, | 628 | {0x0000, 0x8800}, |
715 | /*493 */ {0x0017, 0x8801}, | 629 | {0x0017, 0x8801}, |
716 | /*494 */ {0x0020, 0x8800}, | 630 | {0x0020, 0x8800}, |
717 | /*496 */ {0x0018, 0x8801}, | 631 | {0x0018, 0x8801}, |
718 | /*497 */ {0x0044, 0x8800}, | 632 | {0x0044, 0x8800}, |
719 | 633 | ||
720 | /* Makes the picture darker - and the | 634 | /* Makes the picture darker - and the |
721 | * cam won't start if not included | 635 | * cam won't start if not included |
722 | */ | 636 | */ |
723 | /*505 */ {0x001e, 0x8801}, | 637 | {0x001e, 0x8801}, |
724 | /*506 */ {0x00ea, 0x8800}, | 638 | {0x00ea, 0x8800}, |
725 | /*508 */ {0x001f, 0x8801}, | 639 | {0x001f, 0x8801}, |
726 | /*509 */ {0x0001, 0x8800}, | 640 | {0x0001, 0x8800}, |
727 | /*511 */ {0x0003, 0x8801}, | 641 | {0x0003, 0x8801}, |
728 | /*512 */ {0x00e0, 0x8800}, | 642 | {0x00e0, 0x8800}, |
729 | 643 | ||
730 | /* seems to place the colors ontop of each other #1 */ | 644 | /* seems to place the colors ontop of each other #1 */ |
731 | /*517 */ {0x0006, 0x8704}, | 645 | {0x0006, 0x8704}, |
732 | /*518 */ {0x0001, 0x870c}, | 646 | {0x0001, 0x870c}, |
733 | /*519 */ {0x0016, 0x8600}, | 647 | {0x0016, 0x8600}, |
734 | /*520 */ {0x0002, 0x8606}, | 648 | {0x0002, 0x8606}, |
735 | 649 | ||
736 | /* if not included the pictures becomes _very_ dark */ | 650 | /* if not included the pictures becomes _very_ dark */ |
737 | /*521 */ {0x0064, 0x8607}, | 651 | {0x0064, 0x8607}, |
738 | /*522 */ {0x003a, 0x8601}, | 652 | {0x003a, 0x8601}, |
739 | /*523 */ {0x0000, 0x8602}, | 653 | {0x0000, 0x8602}, |
740 | 654 | ||
741 | /* seems to place the colors ontop of each other #2 */ | 655 | /* seems to place the colors ontop of each other #2 */ |
742 | /*524 */ {0x0016, 0x8600}, | 656 | {0x0016, 0x8600}, |
743 | /*525 */ {0x0018, 0x8617}, | 657 | {0x0018, 0x8617}, |
744 | /*526 */ {0x0008, 0x8618}, | 658 | {0x0008, 0x8618}, |
745 | /*527 */ {0x00a1, 0x8656}, | 659 | {0x00a1, 0x8656}, |
746 | 660 | ||
747 | /* webcam won't start if not included */ | 661 | /* webcam won't start if not included */ |
748 | /*528 */ {0x0007, 0x865b}, | 662 | {0x0007, 0x865b}, |
749 | /*529 */ {0x0001, 0x865c}, | 663 | {0x0001, 0x865c}, |
750 | /*530 */ {0x0058, 0x865d}, | 664 | {0x0058, 0x865d}, |
751 | /*531 */ {0x0048, 0x865e}, | 665 | {0x0048, 0x865e}, |
752 | 666 | ||
753 | /* adjusts the colors */ | 667 | /* adjusts the colors */ |
754 | /*541 */ {0x0049, 0x8651}, | 668 | {0x0049, 0x8651}, |
755 | /*542 */ {0x0040, 0x8652}, | 669 | {0x0040, 0x8652}, |
756 | /*543 */ {0x004c, 0x8653}, | 670 | {0x004c, 0x8653}, |
757 | /*544 */ {0x0040, 0x8654}, | 671 | {0x0040, 0x8654}, |
758 | {} | 672 | {} |
759 | }; | 673 | }; |
760 | 674 | ||
761 | static const u16 spca508_sightcam2_init_data[][2] = { | 675 | static const u16 spca508_sightcam2_init_data[][2] = { |
762 | /* 35 */ {0x0020, 0x8112}, | 676 | {0x0020, 0x8112}, |
763 | 677 | ||
764 | /* 36 */ {0x000f, 0x8402}, | 678 | {0x000f, 0x8402}, |
765 | /* 37 */ {0x0000, 0x8403}, | 679 | {0x0000, 0x8403}, |
766 | 680 | ||
767 | /* 38 */ {0x0008, 0x8201}, | 681 | {0x0008, 0x8201}, |
768 | /* 39 */ {0x0008, 0x8200}, | 682 | {0x0008, 0x8200}, |
769 | /* 40 */ {0x0001, 0x8200}, | 683 | {0x0001, 0x8200}, |
770 | /* 43 */ {0x0009, 0x8201}, | 684 | {0x0009, 0x8201}, |
771 | /* 44 */ {0x0008, 0x8200}, | 685 | {0x0008, 0x8200}, |
772 | /* 45 */ {0x0001, 0x8200}, | 686 | {0x0001, 0x8200}, |
773 | /* 48 */ {0x000a, 0x8201}, | 687 | {0x000a, 0x8201}, |
774 | /* 49 */ {0x0008, 0x8200}, | 688 | {0x0008, 0x8200}, |
775 | /* 50 */ {0x0001, 0x8200}, | 689 | {0x0001, 0x8200}, |
776 | /* 53 */ {0x000b, 0x8201}, | 690 | {0x000b, 0x8201}, |
777 | /* 54 */ {0x0008, 0x8200}, | 691 | {0x0008, 0x8200}, |
778 | /* 55 */ {0x0001, 0x8200}, | 692 | {0x0001, 0x8200}, |
779 | /* 58 */ {0x000c, 0x8201}, | 693 | {0x000c, 0x8201}, |
780 | /* 59 */ {0x0008, 0x8200}, | 694 | {0x0008, 0x8200}, |
781 | /* 60 */ {0x0001, 0x8200}, | 695 | {0x0001, 0x8200}, |
782 | /* 63 */ {0x000d, 0x8201}, | 696 | {0x000d, 0x8201}, |
783 | /* 64 */ {0x0008, 0x8200}, | 697 | {0x0008, 0x8200}, |
784 | /* 65 */ {0x0001, 0x8200}, | 698 | {0x0001, 0x8200}, |
785 | /* 68 */ {0x000e, 0x8201}, | 699 | {0x000e, 0x8201}, |
786 | /* 69 */ {0x0008, 0x8200}, | 700 | {0x0008, 0x8200}, |
787 | /* 70 */ {0x0001, 0x8200}, | 701 | {0x0001, 0x8200}, |
788 | /* 73 */ {0x0007, 0x8201}, | 702 | {0x0007, 0x8201}, |
789 | /* 74 */ {0x0008, 0x8200}, | 703 | {0x0008, 0x8200}, |
790 | /* 75 */ {0x0001, 0x8200}, | 704 | {0x0001, 0x8200}, |
791 | /* 78 */ {0x000f, 0x8201}, | 705 | {0x000f, 0x8201}, |
792 | /* 79 */ {0x0008, 0x8200}, | 706 | {0x0008, 0x8200}, |
793 | /* 80 */ {0x0001, 0x8200}, | 707 | {0x0001, 0x8200}, |
794 | 708 | ||
795 | /* 84 */ {0x0018, 0x8660}, | 709 | {0x0018, 0x8660}, |
796 | /* 85 */ {0x0010, 0x8201}, | 710 | {0x0010, 0x8201}, |
797 | 711 | ||
798 | /* 86 */ {0x0008, 0x8200}, | 712 | {0x0008, 0x8200}, |
799 | /* 87 */ {0x0001, 0x8200}, | 713 | {0x0001, 0x8200}, |
800 | /* 90 */ {0x0011, 0x8201}, | 714 | {0x0011, 0x8201}, |
801 | /* 91 */ {0x0008, 0x8200}, | 715 | {0x0008, 0x8200}, |
802 | /* 92 */ {0x0001, 0x8200}, | 716 | {0x0001, 0x8200}, |
803 | 717 | ||
804 | /* 95 */ {0x0000, 0x86b0}, | 718 | {0x0000, 0x86b0}, |
805 | /* 96 */ {0x0034, 0x86b1}, | 719 | {0x0034, 0x86b1}, |
806 | /* 97 */ {0x0000, 0x86b2}, | 720 | {0x0000, 0x86b2}, |
807 | /* 98 */ {0x0049, 0x86b3}, | 721 | {0x0049, 0x86b3}, |
808 | /* 99 */ {0x0000, 0x86b4}, | 722 | {0x0000, 0x86b4}, |
809 | /* 100 */ {0x0000, 0x86b4}, | 723 | {0x0000, 0x86b4}, |
810 | 724 | ||
811 | /* 101 */ {0x0012, 0x8201}, | 725 | {0x0012, 0x8201}, |
812 | /* 102 */ {0x0008, 0x8200}, | 726 | {0x0008, 0x8200}, |
813 | /* 103 */ {0x0001, 0x8200}, | 727 | {0x0001, 0x8200}, |
814 | /* 106 */ {0x0013, 0x8201}, | 728 | {0x0013, 0x8201}, |
815 | /* 107 */ {0x0008, 0x8200}, | 729 | {0x0008, 0x8200}, |
816 | /* 108 */ {0x0001, 0x8200}, | 730 | {0x0001, 0x8200}, |
817 | 731 | ||
818 | /* 111 */ {0x0001, 0x86b0}, | 732 | {0x0001, 0x86b0}, |
819 | /* 112 */ {0x00aa, 0x86b1}, | 733 | {0x00aa, 0x86b1}, |
820 | /* 113 */ {0x0000, 0x86b2}, | 734 | {0x0000, 0x86b2}, |
821 | /* 114 */ {0x00e4, 0x86b3}, | 735 | {0x00e4, 0x86b3}, |
822 | /* 115 */ {0x0000, 0x86b4}, | 736 | {0x0000, 0x86b4}, |
823 | /* 116 */ {0x0000, 0x86b4}, | 737 | {0x0000, 0x86b4}, |
824 | 738 | ||
825 | /* 118 */ {0x0018, 0x8660}, | 739 | {0x0018, 0x8660}, |
826 | 740 | ||
827 | /* 119 */ {0x0090, 0x8110}, | 741 | {0x0090, 0x8110}, |
828 | /* 120 */ {0x0001, 0x8114}, | 742 | {0x0001, 0x8114}, |
829 | /* 121 */ {0x0001, 0x8114}, | 743 | {0x0001, 0x8114}, |
830 | /* 122 */ {0x0001, 0x8114}, | 744 | {0x0001, 0x8114}, |
831 | /* 123 */ {0x0003, 0x8114}, | 745 | {0x0003, 0x8114}, |
832 | 746 | ||
833 | /* 124 */ {0x0080, 0x8804}, | 747 | {0x0080, 0x8804}, |
834 | /* 157 */ {0x0003, 0x8801}, | 748 | {0x0003, 0x8801}, |
835 | /* 158 */ {0x0012, 0x8800}, | 749 | {0x0012, 0x8800}, |
836 | /* 160 */ {0x0004, 0x8801}, | 750 | {0x0004, 0x8801}, |
837 | /* 161 */ {0x0005, 0x8800}, | 751 | {0x0005, 0x8800}, |
838 | /* 163 */ {0x0005, 0x8801}, | 752 | {0x0005, 0x8801}, |
839 | /* 164 */ {0x0000, 0x8800}, | 753 | {0x0000, 0x8800}, |
840 | /* 166 */ {0x0006, 0x8801}, | 754 | {0x0006, 0x8801}, |
841 | /* 167 */ {0x0000, 0x8800}, | 755 | {0x0000, 0x8800}, |
842 | /* 169 */ {0x0007, 0x8801}, | 756 | {0x0007, 0x8801}, |
843 | /* 170 */ {0x0000, 0x8800}, | 757 | {0x0000, 0x8800}, |
844 | /* 172 */ {0x0008, 0x8801}, | 758 | {0x0008, 0x8801}, |
845 | /* 173 */ {0x0005, 0x8800}, | 759 | {0x0005, 0x8800}, |
846 | /* 175 */ {0x000a, 0x8700}, | 760 | {0x000a, 0x8700}, |
847 | /* 176 */ {0x000e, 0x8801}, | 761 | {0x000e, 0x8801}, |
848 | /* 177 */ {0x0004, 0x8800}, | 762 | {0x0004, 0x8800}, |
849 | /* 179 */ {0x0005, 0x8801}, | 763 | {0x0005, 0x8801}, |
850 | /* 180 */ {0x0047, 0x8800}, | 764 | {0x0047, 0x8800}, |
851 | /* 182 */ {0x0006, 0x8801}, | 765 | {0x0006, 0x8801}, |
852 | /* 183 */ {0x0000, 0x8800}, | 766 | {0x0000, 0x8800}, |
853 | /* 185 */ {0x0007, 0x8801}, | 767 | {0x0007, 0x8801}, |
854 | /* 186 */ {0x00c0, 0x8800}, | 768 | {0x00c0, 0x8800}, |
855 | /* 188 */ {0x0008, 0x8801}, | 769 | {0x0008, 0x8801}, |
856 | /* 189 */ {0x0003, 0x8800}, | 770 | {0x0003, 0x8800}, |
857 | /* 191 */ {0x0013, 0x8801}, | 771 | {0x0013, 0x8801}, |
858 | /* 192 */ {0x0001, 0x8800}, | 772 | {0x0001, 0x8800}, |
859 | /* 194 */ {0x0009, 0x8801}, | 773 | {0x0009, 0x8801}, |
860 | /* 195 */ {0x0000, 0x8800}, | 774 | {0x0000, 0x8800}, |
861 | /* 197 */ {0x000a, 0x8801}, | 775 | {0x000a, 0x8801}, |
862 | /* 198 */ {0x0000, 0x8800}, | 776 | {0x0000, 0x8800}, |
863 | /* 200 */ {0x000b, 0x8801}, | 777 | {0x000b, 0x8801}, |
864 | /* 201 */ {0x0000, 0x8800}, | 778 | {0x0000, 0x8800}, |
865 | /* 203 */ {0x000c, 0x8801}, | 779 | {0x000c, 0x8801}, |
866 | /* 204 */ {0x0000, 0x8800}, | 780 | {0x0000, 0x8800}, |
867 | /* 206 */ {0x000e, 0x8801}, | 781 | {0x000e, 0x8801}, |
868 | /* 207 */ {0x0004, 0x8800}, | 782 | {0x0004, 0x8800}, |
869 | /* 209 */ {0x000f, 0x8801}, | 783 | {0x000f, 0x8801}, |
870 | /* 210 */ {0x0000, 0x8800}, | 784 | {0x0000, 0x8800}, |
871 | /* 212 */ {0x0010, 0x8801}, | 785 | {0x0010, 0x8801}, |
872 | /* 213 */ {0x0006, 0x8800}, | 786 | {0x0006, 0x8800}, |
873 | /* 215 */ {0x0011, 0x8801}, | 787 | {0x0011, 0x8801}, |
874 | /* 216 */ {0x0006, 0x8800}, | 788 | {0x0006, 0x8800}, |
875 | /* 218 */ {0x0012, 0x8801}, | 789 | {0x0012, 0x8801}, |
876 | /* 219 */ {0x0000, 0x8800}, | 790 | {0x0000, 0x8800}, |
877 | /* 221 */ {0x0013, 0x8801}, | 791 | {0x0013, 0x8801}, |
878 | /* 222 */ {0x0001, 0x8800}, | 792 | {0x0001, 0x8800}, |
879 | 793 | ||
880 | /* 224 */ {0x000a, 0x8700}, | 794 | {0x000a, 0x8700}, |
881 | /* 225 */ {0x0000, 0x8702}, | 795 | {0x0000, 0x8702}, |
882 | /* 226 */ {0x0000, 0x8703}, | 796 | {0x0000, 0x8703}, |
883 | /* 227 */ {0x00c2, 0x8704}, | 797 | {0x00c2, 0x8704}, |
884 | /* 228 */ {0x0001, 0x870c}, | 798 | {0x0001, 0x870c}, |
885 | 799 | ||
886 | /* 229 */ {0x0044, 0x8600}, | 800 | {0x0044, 0x8600}, |
887 | /* 230 */ {0x0002, 0x8606}, | 801 | {0x0002, 0x8606}, |
888 | /* 231 */ {0x0064, 0x8607}, | 802 | {0x0064, 0x8607}, |
889 | /* 232 */ {0x003a, 0x8601}, | 803 | {0x003a, 0x8601}, |
890 | /* 233 */ {0x0008, 0x8602}, | 804 | {0x0008, 0x8602}, |
891 | /* 234 */ {0x0044, 0x8600}, | 805 | {0x0044, 0x8600}, |
892 | /* 235 */ {0x0018, 0x8617}, | 806 | {0x0018, 0x8617}, |
893 | /* 236 */ {0x0008, 0x8618}, | 807 | {0x0008, 0x8618}, |
894 | /* 237 */ {0x00a1, 0x8656}, | 808 | {0x00a1, 0x8656}, |
895 | /* 238 */ {0x0004, 0x865b}, | 809 | {0x0004, 0x865b}, |
896 | /* 239 */ {0x0002, 0x865c}, | 810 | {0x0002, 0x865c}, |
897 | /* 240 */ {0x0058, 0x865d}, | 811 | {0x0058, 0x865d}, |
898 | /* 241 */ {0x0048, 0x865e}, | 812 | {0x0048, 0x865e}, |
899 | /* 242 */ {0x0012, 0x8608}, | 813 | {0x0012, 0x8608}, |
900 | /* 243 */ {0x002c, 0x8609}, | 814 | {0x002c, 0x8609}, |
901 | /* 244 */ {0x0002, 0x860a}, | 815 | {0x0002, 0x860a}, |
902 | /* 245 */ {0x002c, 0x860b}, | 816 | {0x002c, 0x860b}, |
903 | /* 246 */ {0x00db, 0x860c}, | 817 | {0x00db, 0x860c}, |
904 | /* 247 */ {0x00f9, 0x860d}, | 818 | {0x00f9, 0x860d}, |
905 | /* 248 */ {0x00f1, 0x860e}, | 819 | {0x00f1, 0x860e}, |
906 | /* 249 */ {0x00e3, 0x860f}, | 820 | {0x00e3, 0x860f}, |
907 | /* 250 */ {0x002c, 0x8610}, | 821 | {0x002c, 0x8610}, |
908 | /* 251 */ {0x006c, 0x8651}, | 822 | {0x006c, 0x8651}, |
909 | /* 252 */ {0x0041, 0x8652}, | 823 | {0x0041, 0x8652}, |
910 | /* 253 */ {0x0059, 0x8653}, | 824 | {0x0059, 0x8653}, |
911 | /* 254 */ {0x0040, 0x8654}, | 825 | {0x0040, 0x8654}, |
912 | /* 255 */ {0x00fa, 0x8611}, | 826 | {0x00fa, 0x8611}, |
913 | /* 256 */ {0x00ff, 0x8612}, | 827 | {0x00ff, 0x8612}, |
914 | /* 257 */ {0x00f8, 0x8613}, | 828 | {0x00f8, 0x8613}, |
915 | /* 258 */ {0x0000, 0x8614}, | 829 | {0x0000, 0x8614}, |
916 | /* 259 */ {0x0001, 0x863f}, | 830 | {0x0001, 0x863f}, |
917 | /* 260 */ {0x0000, 0x8640}, | 831 | {0x0000, 0x8640}, |
918 | /* 261 */ {0x0026, 0x8641}, | 832 | {0x0026, 0x8641}, |
919 | /* 262 */ {0x0045, 0x8642}, | 833 | {0x0045, 0x8642}, |
920 | /* 263 */ {0x0060, 0x8643}, | 834 | {0x0060, 0x8643}, |
921 | /* 264 */ {0x0075, 0x8644}, | 835 | {0x0075, 0x8644}, |
922 | /* 265 */ {0x0088, 0x8645}, | 836 | {0x0088, 0x8645}, |
923 | /* 266 */ {0x009b, 0x8646}, | 837 | {0x009b, 0x8646}, |
924 | /* 267 */ {0x00b0, 0x8647}, | 838 | {0x00b0, 0x8647}, |
925 | /* 268 */ {0x00c5, 0x8648}, | 839 | {0x00c5, 0x8648}, |
926 | /* 269 */ {0x00d2, 0x8649}, | 840 | {0x00d2, 0x8649}, |
927 | /* 270 */ {0x00dc, 0x864a}, | 841 | {0x00dc, 0x864a}, |
928 | /* 271 */ {0x00e5, 0x864b}, | 842 | {0x00e5, 0x864b}, |
929 | /* 272 */ {0x00eb, 0x864c}, | 843 | {0x00eb, 0x864c}, |
930 | /* 273 */ {0x00f0, 0x864d}, | 844 | {0x00f0, 0x864d}, |
931 | /* 274 */ {0x00f6, 0x864e}, | 845 | {0x00f6, 0x864e}, |
932 | /* 275 */ {0x00fa, 0x864f}, | 846 | {0x00fa, 0x864f}, |
933 | /* 276 */ {0x00ff, 0x8650}, | 847 | {0x00ff, 0x8650}, |
934 | /* 277 */ {0x0060, 0x8657}, | 848 | {0x0060, 0x8657}, |
935 | /* 278 */ {0x0010, 0x8658}, | 849 | {0x0010, 0x8658}, |
936 | /* 279 */ {0x0018, 0x8659}, | 850 | {0x0018, 0x8659}, |
937 | /* 280 */ {0x0005, 0x865a}, | 851 | {0x0005, 0x865a}, |
938 | /* 281 */ {0x0018, 0x8660}, | 852 | {0x0018, 0x8660}, |
939 | /* 282 */ {0x0003, 0x8509}, | 853 | {0x0003, 0x8509}, |
940 | /* 283 */ {0x0011, 0x850a}, | 854 | {0x0011, 0x850a}, |
941 | /* 284 */ {0x0032, 0x850b}, | 855 | {0x0032, 0x850b}, |
942 | /* 285 */ {0x0010, 0x850c}, | 856 | {0x0010, 0x850c}, |
943 | /* 286 */ {0x0021, 0x850d}, | 857 | {0x0021, 0x850d}, |
944 | /* 287 */ {0x0001, 0x8500}, | 858 | {0x0001, 0x8500}, |
945 | /* 288 */ {0x0000, 0x8508}, | 859 | {0x0000, 0x8508}, |
946 | /* 289 */ {0x0012, 0x8608}, | 860 | {0x0012, 0x8608}, |
947 | /* 290 */ {0x002c, 0x8609}, | 861 | {0x002c, 0x8609}, |
948 | /* 291 */ {0x0002, 0x860a}, | 862 | {0x0002, 0x860a}, |
949 | /* 292 */ {0x0039, 0x860b}, | 863 | {0x0039, 0x860b}, |
950 | /* 293 */ {0x00d0, 0x860c}, | 864 | {0x00d0, 0x860c}, |
951 | /* 294 */ {0x00f7, 0x860d}, | 865 | {0x00f7, 0x860d}, |
952 | /* 295 */ {0x00ed, 0x860e}, | 866 | {0x00ed, 0x860e}, |
953 | /* 296 */ {0x00db, 0x860f}, | 867 | {0x00db, 0x860f}, |
954 | /* 297 */ {0x0039, 0x8610}, | 868 | {0x0039, 0x8610}, |
955 | /* 298 */ {0x0012, 0x8657}, | 869 | {0x0012, 0x8657}, |
956 | /* 299 */ {0x000c, 0x8619}, | 870 | {0x000c, 0x8619}, |
957 | /* 300 */ {0x0004, 0x861a}, | 871 | {0x0004, 0x861a}, |
958 | /* 301 */ {0x00a1, 0x8656}, | 872 | {0x00a1, 0x8656}, |
959 | /* 302 */ {0x00c8, 0x8615}, | 873 | {0x00c8, 0x8615}, |
960 | /* 303 */ {0x0032, 0x8616}, | 874 | {0x0032, 0x8616}, |
961 | 875 | ||
962 | /* 306 */ {0x0030, 0x8112}, | 876 | {0x0030, 0x8112}, |
963 | /* 313 */ {0x0020, 0x8112}, | 877 | {0x0020, 0x8112}, |
964 | /* 314 */ {0x0020, 0x8112}, | 878 | {0x0020, 0x8112}, |
965 | /* 315 */ {0x000f, 0x8402}, | 879 | {0x000f, 0x8402}, |
966 | /* 316 */ {0x0000, 0x8403}, | 880 | {0x0000, 0x8403}, |
967 | 881 | ||
968 | /* 317 */ {0x0090, 0x8110}, | 882 | {0x0090, 0x8110}, |
969 | /* 318 */ {0x0001, 0x8114}, | 883 | {0x0001, 0x8114}, |
970 | /* 319 */ {0x0001, 0x8114}, | 884 | {0x0001, 0x8114}, |
971 | /* 320 */ {0x0001, 0x8114}, | 885 | {0x0001, 0x8114}, |
972 | /* 321 */ {0x0003, 0x8114}, | 886 | {0x0003, 0x8114}, |
973 | /* 322 */ {0x0080, 0x8804}, | 887 | {0x0080, 0x8804}, |
974 | 888 | ||
975 | /* 355 */ {0x0003, 0x8801}, | 889 | {0x0003, 0x8801}, |
976 | /* 356 */ {0x0012, 0x8800}, | 890 | {0x0012, 0x8800}, |
977 | /* 358 */ {0x0004, 0x8801}, | 891 | {0x0004, 0x8801}, |
978 | /* 359 */ {0x0005, 0x8800}, | 892 | {0x0005, 0x8800}, |
979 | /* 361 */ {0x0005, 0x8801}, | 893 | {0x0005, 0x8801}, |
980 | /* 362 */ {0x0047, 0x8800}, | 894 | {0x0047, 0x8800}, |
981 | /* 364 */ {0x0006, 0x8801}, | 895 | {0x0006, 0x8801}, |
982 | /* 365 */ {0x0000, 0x8800}, | 896 | {0x0000, 0x8800}, |
983 | /* 367 */ {0x0007, 0x8801}, | 897 | {0x0007, 0x8801}, |
984 | /* 368 */ {0x00c0, 0x8800}, | 898 | {0x00c0, 0x8800}, |
985 | /* 370 */ {0x0008, 0x8801}, | 899 | {0x0008, 0x8801}, |
986 | /* 371 */ {0x0003, 0x8800}, | 900 | {0x0003, 0x8800}, |
987 | /* 373 */ {0x000a, 0x8700}, | 901 | {0x000a, 0x8700}, |
988 | /* 374 */ {0x000e, 0x8801}, | 902 | {0x000e, 0x8801}, |
989 | /* 375 */ {0x0004, 0x8800}, | 903 | {0x0004, 0x8800}, |
990 | /* 377 */ {0x0005, 0x8801}, | 904 | {0x0005, 0x8801}, |
991 | /* 378 */ {0x0047, 0x8800}, | 905 | {0x0047, 0x8800}, |
992 | /* 380 */ {0x0006, 0x8801}, | 906 | {0x0006, 0x8801}, |
993 | /* 381 */ {0x0000, 0x8800}, | 907 | {0x0000, 0x8800}, |
994 | /* 383 */ {0x0007, 0x8801}, | 908 | {0x0007, 0x8801}, |
995 | /* 384 */ {0x00c0, 0x8800}, | 909 | {0x00c0, 0x8800}, |
996 | /* 386 */ {0x0008, 0x8801}, | 910 | {0x0008, 0x8801}, |
997 | /* 387 */ {0x0003, 0x8800}, | 911 | {0x0003, 0x8800}, |
998 | /* 389 */ {0x0013, 0x8801}, | 912 | {0x0013, 0x8801}, |
999 | /* 390 */ {0x0001, 0x8800}, | 913 | {0x0001, 0x8800}, |
1000 | /* 392 */ {0x0009, 0x8801}, | 914 | {0x0009, 0x8801}, |
1001 | /* 393 */ {0x0000, 0x8800}, | 915 | {0x0000, 0x8800}, |
1002 | /* 395 */ {0x000a, 0x8801}, | 916 | {0x000a, 0x8801}, |
1003 | /* 396 */ {0x0000, 0x8800}, | 917 | {0x0000, 0x8800}, |
1004 | /* 398 */ {0x000b, 0x8801}, | 918 | {0x000b, 0x8801}, |
1005 | /* 399 */ {0x0000, 0x8800}, | 919 | {0x0000, 0x8800}, |
1006 | /* 401 */ {0x000c, 0x8801}, | 920 | {0x000c, 0x8801}, |
1007 | /* 402 */ {0x0000, 0x8800}, | 921 | {0x0000, 0x8800}, |
1008 | /* 404 */ {0x000e, 0x8801}, | 922 | {0x000e, 0x8801}, |
1009 | /* 405 */ {0x0004, 0x8800}, | 923 | {0x0004, 0x8800}, |
1010 | /* 407 */ {0x000f, 0x8801}, | 924 | {0x000f, 0x8801}, |
1011 | /* 408 */ {0x0000, 0x8800}, | 925 | {0x0000, 0x8800}, |
1012 | /* 410 */ {0x0010, 0x8801}, | 926 | {0x0010, 0x8801}, |
1013 | /* 411 */ {0x0006, 0x8800}, | 927 | {0x0006, 0x8800}, |
1014 | /* 413 */ {0x0011, 0x8801}, | 928 | {0x0011, 0x8801}, |
1015 | /* 414 */ {0x0006, 0x8800}, | 929 | {0x0006, 0x8800}, |
1016 | /* 416 */ {0x0012, 0x8801}, | 930 | {0x0012, 0x8801}, |
1017 | /* 417 */ {0x0000, 0x8800}, | 931 | {0x0000, 0x8800}, |
1018 | /* 419 */ {0x0013, 0x8801}, | 932 | {0x0013, 0x8801}, |
1019 | /* 420 */ {0x0001, 0x8800}, | 933 | {0x0001, 0x8800}, |
1020 | /* 422 */ {0x000a, 0x8700}, | 934 | {0x000a, 0x8700}, |
1021 | /* 423 */ {0x0000, 0x8702}, | 935 | {0x0000, 0x8702}, |
1022 | /* 424 */ {0x0000, 0x8703}, | 936 | {0x0000, 0x8703}, |
1023 | /* 425 */ {0x00c2, 0x8704}, | 937 | {0x00c2, 0x8704}, |
1024 | /* 426 */ {0x0001, 0x870c}, | 938 | {0x0001, 0x870c}, |
1025 | /* 427 */ {0x0044, 0x8600}, | 939 | {0x0044, 0x8600}, |
1026 | /* 428 */ {0x0002, 0x8606}, | 940 | {0x0002, 0x8606}, |
1027 | /* 429 */ {0x0064, 0x8607}, | 941 | {0x0064, 0x8607}, |
1028 | /* 430 */ {0x003a, 0x8601}, | 942 | {0x003a, 0x8601}, |
1029 | /* 431 */ {0x0008, 0x8602}, | 943 | {0x0008, 0x8602}, |
1030 | /* 432 */ {0x0044, 0x8600}, | 944 | {0x0044, 0x8600}, |
1031 | /* 433 */ {0x0018, 0x8617}, | 945 | {0x0018, 0x8617}, |
1032 | /* 434 */ {0x0008, 0x8618}, | 946 | {0x0008, 0x8618}, |
1033 | /* 435 */ {0x00a1, 0x8656}, | 947 | {0x00a1, 0x8656}, |
1034 | /* 436 */ {0x0004, 0x865b}, | 948 | {0x0004, 0x865b}, |
1035 | /* 437 */ {0x0002, 0x865c}, | 949 | {0x0002, 0x865c}, |
1036 | /* 438 */ {0x0058, 0x865d}, | 950 | {0x0058, 0x865d}, |
1037 | /* 439 */ {0x0048, 0x865e}, | 951 | {0x0048, 0x865e}, |
1038 | /* 440 */ {0x0012, 0x8608}, | 952 | {0x0012, 0x8608}, |
1039 | /* 441 */ {0x002c, 0x8609}, | 953 | {0x002c, 0x8609}, |
1040 | /* 442 */ {0x0002, 0x860a}, | 954 | {0x0002, 0x860a}, |
1041 | /* 443 */ {0x002c, 0x860b}, | 955 | {0x002c, 0x860b}, |
1042 | /* 444 */ {0x00db, 0x860c}, | 956 | {0x00db, 0x860c}, |
1043 | /* 445 */ {0x00f9, 0x860d}, | 957 | {0x00f9, 0x860d}, |
1044 | /* 446 */ {0x00f1, 0x860e}, | 958 | {0x00f1, 0x860e}, |
1045 | /* 447 */ {0x00e3, 0x860f}, | 959 | {0x00e3, 0x860f}, |
1046 | /* 448 */ {0x002c, 0x8610}, | 960 | {0x002c, 0x8610}, |
1047 | /* 449 */ {0x006c, 0x8651}, | 961 | {0x006c, 0x8651}, |
1048 | /* 450 */ {0x0041, 0x8652}, | 962 | {0x0041, 0x8652}, |
1049 | /* 451 */ {0x0059, 0x8653}, | 963 | {0x0059, 0x8653}, |
1050 | /* 452 */ {0x0040, 0x8654}, | 964 | {0x0040, 0x8654}, |
1051 | /* 453 */ {0x00fa, 0x8611}, | 965 | {0x00fa, 0x8611}, |
1052 | /* 454 */ {0x00ff, 0x8612}, | 966 | {0x00ff, 0x8612}, |
1053 | /* 455 */ {0x00f8, 0x8613}, | 967 | {0x00f8, 0x8613}, |
1054 | /* 456 */ {0x0000, 0x8614}, | 968 | {0x0000, 0x8614}, |
1055 | /* 457 */ {0x0001, 0x863f}, | 969 | {0x0001, 0x863f}, |
1056 | /* 458 */ {0x0000, 0x8640}, | 970 | {0x0000, 0x8640}, |
1057 | /* 459 */ {0x0026, 0x8641}, | 971 | {0x0026, 0x8641}, |
1058 | /* 460 */ {0x0045, 0x8642}, | 972 | {0x0045, 0x8642}, |
1059 | /* 461 */ {0x0060, 0x8643}, | 973 | {0x0060, 0x8643}, |
1060 | /* 462 */ {0x0075, 0x8644}, | 974 | {0x0075, 0x8644}, |
1061 | /* 463 */ {0x0088, 0x8645}, | 975 | {0x0088, 0x8645}, |
1062 | /* 464 */ {0x009b, 0x8646}, | 976 | {0x009b, 0x8646}, |
1063 | /* 465 */ {0x00b0, 0x8647}, | 977 | {0x00b0, 0x8647}, |
1064 | /* 466 */ {0x00c5, 0x8648}, | 978 | {0x00c5, 0x8648}, |
1065 | /* 467 */ {0x00d2, 0x8649}, | 979 | {0x00d2, 0x8649}, |
1066 | /* 468 */ {0x00dc, 0x864a}, | 980 | {0x00dc, 0x864a}, |
1067 | /* 469 */ {0x00e5, 0x864b}, | 981 | {0x00e5, 0x864b}, |
1068 | /* 470 */ {0x00eb, 0x864c}, | 982 | {0x00eb, 0x864c}, |
1069 | /* 471 */ {0x00f0, 0x864d}, | 983 | {0x00f0, 0x864d}, |
1070 | /* 472 */ {0x00f6, 0x864e}, | 984 | {0x00f6, 0x864e}, |
1071 | /* 473 */ {0x00fa, 0x864f}, | 985 | {0x00fa, 0x864f}, |
1072 | /* 474 */ {0x00ff, 0x8650}, | 986 | {0x00ff, 0x8650}, |
1073 | /* 475 */ {0x0060, 0x8657}, | 987 | {0x0060, 0x8657}, |
1074 | /* 476 */ {0x0010, 0x8658}, | 988 | {0x0010, 0x8658}, |
1075 | /* 477 */ {0x0018, 0x8659}, | 989 | {0x0018, 0x8659}, |
1076 | /* 478 */ {0x0005, 0x865a}, | 990 | {0x0005, 0x865a}, |
1077 | /* 479 */ {0x0018, 0x8660}, | 991 | {0x0018, 0x8660}, |
1078 | /* 480 */ {0x0003, 0x8509}, | 992 | {0x0003, 0x8509}, |
1079 | /* 481 */ {0x0011, 0x850a}, | 993 | {0x0011, 0x850a}, |
1080 | /* 482 */ {0x0032, 0x850b}, | 994 | {0x0032, 0x850b}, |
1081 | /* 483 */ {0x0010, 0x850c}, | 995 | {0x0010, 0x850c}, |
1082 | /* 484 */ {0x0021, 0x850d}, | 996 | {0x0021, 0x850d}, |
1083 | /* 485 */ {0x0001, 0x8500}, | 997 | {0x0001, 0x8500}, |
1084 | /* 486 */ {0x0000, 0x8508}, | 998 | {0x0000, 0x8508}, |
1085 | 999 | ||
1086 | /* 487 */ {0x0012, 0x8608}, | 1000 | {0x0012, 0x8608}, |
1087 | /* 488 */ {0x002c, 0x8609}, | 1001 | {0x002c, 0x8609}, |
1088 | /* 489 */ {0x0002, 0x860a}, | 1002 | {0x0002, 0x860a}, |
1089 | /* 490 */ {0x0039, 0x860b}, | 1003 | {0x0039, 0x860b}, |
1090 | /* 491 */ {0x00d0, 0x860c}, | 1004 | {0x00d0, 0x860c}, |
1091 | /* 492 */ {0x00f7, 0x860d}, | 1005 | {0x00f7, 0x860d}, |
1092 | /* 493 */ {0x00ed, 0x860e}, | 1006 | {0x00ed, 0x860e}, |
1093 | /* 494 */ {0x00db, 0x860f}, | 1007 | {0x00db, 0x860f}, |
1094 | /* 495 */ {0x0039, 0x8610}, | 1008 | {0x0039, 0x8610}, |
1095 | /* 496 */ {0x0012, 0x8657}, | 1009 | {0x0012, 0x8657}, |
1096 | /* 497 */ {0x0064, 0x8619}, | 1010 | {0x0064, 0x8619}, |
1097 | 1011 | ||
1098 | /* This line starts it all, it is not needed here */ | 1012 | /* This line starts it all, it is not needed here */ |
1099 | /* since it has been build into the driver */ | 1013 | /* since it has been build into the driver */ |
1100 | /* jfm: don't start now */ | 1014 | /* jfm: don't start now */ |
1101 | /* 590 * {0x0030, 0x8112}, */ | 1015 | /* {0x0030, 0x8112}, */ |
1102 | {} | 1016 | {} |
1103 | }; | 1017 | }; |
1104 | 1018 | ||
@@ -1109,14 +1023,14 @@ static const u16 spca508_vista_init_data[][2] = { | |||
1109 | {0x0008, 0x8200}, /* Clear register */ | 1023 | {0x0008, 0x8200}, /* Clear register */ |
1110 | {0x0000, 0x870b}, /* Reset CTL3 */ | 1024 | {0x0000, 0x870b}, /* Reset CTL3 */ |
1111 | {0x0020, 0x8112}, /* Video Drop packet enable */ | 1025 | {0x0020, 0x8112}, /* Video Drop packet enable */ |
1112 | {0x0003, 0x8111}, /* Soft Reset compression, memory, TG & CDSP */ | 1026 | {0x0003, 0x8111}, /* Soft Reset compression, memory, TG & CDSP */ |
1113 | {0x0000, 0x8110}, /* Disable everything */ | 1027 | {0x0000, 0x8110}, /* Disable everything */ |
1114 | {0x0000, 0x8114}, /* Software GPIO output data */ | 1028 | {0x0000, 0x8114}, /* Software GPIO output data */ |
1115 | {0x0000, 0x8114}, | 1029 | {0x0000, 0x8114}, |
1116 | 1030 | ||
1117 | {0x0003, 0x8111}, | 1031 | {0x0003, 0x8111}, |
1118 | {0x0000, 0x8111}, | 1032 | {0x0000, 0x8111}, |
1119 | {0x0090, 0x8110}, /* Enable: SSI output, External 2X clock output */ | 1033 | {0x0090, 0x8110}, /* Enable: SSI output, External 2X clock output */ |
1120 | {0x0020, 0x8112}, | 1034 | {0x0020, 0x8112}, |
1121 | {0x0000, 0x8114}, | 1035 | {0x0000, 0x8114}, |
1122 | {0x0001, 0x8114}, | 1036 | {0x0001, 0x8114}, |
@@ -1129,191 +1043,143 @@ static const u16 spca508_vista_init_data[][2] = { | |||
1129 | {0x00ba, 0x8804}, /* SSI Slave address */ | 1043 | {0x00ba, 0x8804}, /* SSI Slave address */ |
1130 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock Two DataByte */ | 1044 | {0x0010, 0x8802}, /* 93.75kHz SSI Clock Two DataByte */ |
1131 | 1045 | ||
1132 | /* READ { 0, 0x0001, 0x8803 } -> | 1046 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1133 | 0000: 00 */ | 1047 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1134 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1135 | 0000: 10 */ | ||
1136 | {0x0010, 0x8802}, /* Will write 2 bytes (DATA1+DATA2) */ | 1048 | {0x0010, 0x8802}, /* Will write 2 bytes (DATA1+DATA2) */ |
1137 | {0x0020, 0x8801}, /* Register address for SSI read/write */ | 1049 | {0x0020, 0x8801}, /* Register address for SSI read/write */ |
1138 | {0x0044, 0x8805}, /* DATA2 */ | 1050 | {0x0044, 0x8805}, /* DATA2 */ |
1139 | {0x0004, 0x8800}, /* DATA1 -> write triggered */ | 1051 | {0x0004, 0x8800}, /* DATA1 -> write triggered */ |
1140 | /* READ { 0, 0x0001, 0x8803 } -> | 1052 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1141 | 0000: 00 */ | ||
1142 | 1053 | ||
1143 | /* READ { 0, 0x0001, 0x8803 } -> | 1054 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1144 | 0000: 00 */ | 1055 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1145 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1146 | 0000: 10 */ | ||
1147 | {0x0010, 0x8802}, | 1056 | {0x0010, 0x8802}, |
1148 | {0x0009, 0x8801}, | 1057 | {0x0009, 0x8801}, |
1149 | {0x0042, 0x8805}, | 1058 | {0x0042, 0x8805}, |
1150 | {0x0001, 0x8800}, | 1059 | {0x0001, 0x8800}, |
1151 | /* READ { 0, 0x0001, 0x8803 } -> | 1060 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1152 | 0000: 00 */ | ||
1153 | 1061 | ||
1154 | /* READ { 0, 0x0001, 0x8803 } -> | 1062 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1155 | 0000: 00 */ | 1063 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1156 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1157 | 0000: 10 */ | ||
1158 | {0x0010, 0x8802}, | 1064 | {0x0010, 0x8802}, |
1159 | {0x003c, 0x8801}, | 1065 | {0x003c, 0x8801}, |
1160 | {0x0001, 0x8805}, | 1066 | {0x0001, 0x8805}, |
1161 | {0x0000, 0x8800}, | 1067 | {0x0000, 0x8800}, |
1162 | /* READ { 0, 0x0001, 0x8803 } -> | 1068 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1163 | 0000: 00 */ | ||
1164 | 1069 | ||
1165 | /* READ { 0, 0x0001, 0x8803 } -> | 1070 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1166 | 0000: 00 */ | 1071 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1167 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1168 | 0000: 10 */ | ||
1169 | {0x0010, 0x8802}, | 1072 | {0x0010, 0x8802}, |
1170 | {0x0001, 0x8801}, | 1073 | {0x0001, 0x8801}, |
1171 | {0x000a, 0x8805}, | 1074 | {0x000a, 0x8805}, |
1172 | {0x0000, 0x8800}, | 1075 | {0x0000, 0x8800}, |
1173 | /* READ { 0, 0x0001, 0x8803 } -> | 1076 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1174 | 0000: 00 */ | ||
1175 | 1077 | ||
1176 | /* READ { 0, 0x0001, 0x8803 } -> | 1078 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1177 | 0000: 00 */ | 1079 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1178 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1179 | 0000: 10 */ | ||
1180 | {0x0010, 0x8802}, | 1080 | {0x0010, 0x8802}, |
1181 | {0x0002, 0x8801}, | 1081 | {0x0002, 0x8801}, |
1182 | {0x0000, 0x8805}, | 1082 | {0x0000, 0x8805}, |
1183 | {0x0000, 0x8800}, | 1083 | {0x0000, 0x8800}, |
1184 | /* READ { 0, 0x0001, 0x8803 } -> | 1084 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1185 | 0000: 00 */ | ||
1186 | 1085 | ||
1187 | /* READ { 0, 0x0001, 0x8803 } -> | 1086 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1188 | 0000: 00 */ | 1087 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1189 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1190 | 0000: 10 */ | ||
1191 | {0x0010, 0x8802}, | 1088 | {0x0010, 0x8802}, |
1192 | {0x0003, 0x8801}, | 1089 | {0x0003, 0x8801}, |
1193 | {0x0027, 0x8805}, | 1090 | {0x0027, 0x8805}, |
1194 | {0x0001, 0x8800}, | 1091 | {0x0001, 0x8800}, |
1195 | /* READ { 0, 0x0001, 0x8803 } -> | 1092 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1196 | 0000: 00 */ | ||
1197 | 1093 | ||
1198 | /* READ { 0, 0x0001, 0x8803 } -> | 1094 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1199 | 0000: 00 */ | 1095 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1200 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1201 | 0000: 10 */ | ||
1202 | {0x0010, 0x8802}, | 1096 | {0x0010, 0x8802}, |
1203 | {0x0004, 0x8801}, | 1097 | {0x0004, 0x8801}, |
1204 | {0x0065, 0x8805}, | 1098 | {0x0065, 0x8805}, |
1205 | {0x0001, 0x8800}, | 1099 | {0x0001, 0x8800}, |
1206 | /* READ { 0, 0x0001, 0x8803 } -> | 1100 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1207 | 0000: 00 */ | ||
1208 | 1101 | ||
1209 | /* READ { 0, 0x0001, 0x8803 } -> | 1102 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1210 | 0000: 00 */ | 1103 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1211 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1212 | 0000: 10 */ | ||
1213 | {0x0010, 0x8802}, | 1104 | {0x0010, 0x8802}, |
1214 | {0x0005, 0x8801}, | 1105 | {0x0005, 0x8801}, |
1215 | {0x0003, 0x8805}, | 1106 | {0x0003, 0x8805}, |
1216 | {0x0000, 0x8800}, | 1107 | {0x0000, 0x8800}, |
1217 | /* READ { 0, 0x0001, 0x8803 } -> | 1108 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1218 | 0000: 00 */ | ||
1219 | 1109 | ||
1220 | /* READ { 0, 0x0001, 0x8803 } -> | 1110 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1221 | 0000: 00 */ | 1111 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1222 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1223 | 0000: 10 */ | ||
1224 | {0x0010, 0x8802}, | 1112 | {0x0010, 0x8802}, |
1225 | {0x0006, 0x8801}, | 1113 | {0x0006, 0x8801}, |
1226 | {0x001c, 0x8805}, | 1114 | {0x001c, 0x8805}, |
1227 | {0x0000, 0x8800}, | 1115 | {0x0000, 0x8800}, |
1228 | /* READ { 0, 0x0001, 0x8803 } -> | 1116 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1229 | 0000: 00 */ | ||
1230 | 1117 | ||
1231 | /* READ { 0, 0x0001, 0x8803 } -> | 1118 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1232 | 0000: 00 */ | 1119 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1233 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1234 | 0000: 10 */ | ||
1235 | {0x0010, 0x8802}, | 1120 | {0x0010, 0x8802}, |
1236 | {0x0007, 0x8801}, | 1121 | {0x0007, 0x8801}, |
1237 | {0x002a, 0x8805}, | 1122 | {0x002a, 0x8805}, |
1238 | {0x0000, 0x8800}, | 1123 | {0x0000, 0x8800}, |
1239 | /* READ { 0, 0x0001, 0x8803 } -> | 1124 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1240 | 0000: 00 */ | ||
1241 | 1125 | ||
1242 | /* READ { 0, 0x0001, 0x8803 } -> | 1126 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1243 | 0000: 00 */ | 1127 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1244 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1245 | 0000: 10 */ | ||
1246 | {0x0010, 0x8802}, | 1128 | {0x0010, 0x8802}, |
1247 | {0x000e, 0x8801}, | 1129 | {0x000e, 0x8801}, |
1248 | {0x0000, 0x8805}, | 1130 | {0x0000, 0x8805}, |
1249 | {0x0000, 0x8800}, | 1131 | {0x0000, 0x8800}, |
1250 | /* READ { 0, 0x0001, 0x8803 } -> | 1132 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1251 | 0000: 00 */ | ||
1252 | 1133 | ||
1253 | /* READ { 0, 0x0001, 0x8803 } -> | 1134 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1254 | 0000: 00 */ | 1135 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1255 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1256 | 0000: 10 */ | ||
1257 | {0x0010, 0x8802}, | 1136 | {0x0010, 0x8802}, |
1258 | {0x0028, 0x8801}, | 1137 | {0x0028, 0x8801}, |
1259 | {0x002e, 0x8805}, | 1138 | {0x002e, 0x8805}, |
1260 | {0x0000, 0x8800}, | 1139 | {0x0000, 0x8800}, |
1261 | /* READ { 0, 0x0001, 0x8803 } -> | 1140 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1262 | 0000: 00 */ | ||
1263 | 1141 | ||
1264 | /* READ { 0, 0x0001, 0x8803 } -> | 1142 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1265 | 0000: 00 */ | 1143 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1266 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1267 | 0000: 10 */ | ||
1268 | {0x0010, 0x8802}, | 1144 | {0x0010, 0x8802}, |
1269 | {0x0039, 0x8801}, | 1145 | {0x0039, 0x8801}, |
1270 | {0x0013, 0x8805}, | 1146 | {0x0013, 0x8805}, |
1271 | {0x0000, 0x8800}, | 1147 | {0x0000, 0x8800}, |
1272 | /* READ { 0, 0x0001, 0x8803 } -> | 1148 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1273 | 0000: 00 */ | ||
1274 | 1149 | ||
1275 | /* READ { 0, 0x0001, 0x8803 } -> | 1150 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1276 | 0000: 00 */ | 1151 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1277 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1278 | 0000: 10 */ | ||
1279 | {0x0010, 0x8802}, | 1152 | {0x0010, 0x8802}, |
1280 | {0x003b, 0x8801}, | 1153 | {0x003b, 0x8801}, |
1281 | {0x000c, 0x8805}, | 1154 | {0x000c, 0x8805}, |
1282 | {0x0000, 0x8800}, | 1155 | {0x0000, 0x8800}, |
1283 | /* READ { 0, 0x0001, 0x8803 } -> | 1156 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1284 | 0000: 00 */ | ||
1285 | 1157 | ||
1286 | /* READ { 0, 0x0001, 0x8803 } -> | 1158 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1287 | 0000: 00 */ | 1159 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1288 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1289 | 0000: 10 */ | ||
1290 | {0x0010, 0x8802}, | 1160 | {0x0010, 0x8802}, |
1291 | {0x0035, 0x8801}, | 1161 | {0x0035, 0x8801}, |
1292 | {0x0028, 0x8805}, | 1162 | {0x0028, 0x8805}, |
1293 | {0x0000, 0x8800}, | 1163 | {0x0000, 0x8800}, |
1294 | /* READ { 0, 0x0001, 0x8803 } -> | 1164 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1295 | 0000: 00 */ | ||
1296 | 1165 | ||
1297 | /* READ { 0, 0x0001, 0x8803 } -> | 1166 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1298 | 0000: 00 */ | 1167 | /* READ { 0x0001, 0x8802 } -> 0000: 10 */ |
1299 | /* READ { 0, 0x0001, 0x8802 } -> | ||
1300 | 0000: 10 */ | ||
1301 | {0x0010, 0x8802}, | 1168 | {0x0010, 0x8802}, |
1302 | {0x0009, 0x8801}, | 1169 | {0x0009, 0x8801}, |
1303 | {0x0042, 0x8805}, | 1170 | {0x0042, 0x8805}, |
1304 | {0x0001, 0x8800}, | 1171 | {0x0001, 0x8800}, |
1305 | /* READ { 0, 0x0001, 0x8803 } -> | 1172 | /* READ { 0x0001, 0x8803 } -> 0000: 00 */ |
1306 | 0000: 00 */ | ||
1307 | 1173 | ||
1308 | {0x0050, 0x8703}, | 1174 | {0x0050, 0x8703}, |
1309 | {0x0002, 0x8704}, /* External input CKIx1 */ | 1175 | {0x0002, 0x8704}, /* External input CKIx1 */ |
1310 | {0x0001, 0x870c}, /* Select CKOx2 output */ | 1176 | {0x0001, 0x870c}, /* Select CKOx2 output */ |
1311 | {0x009a, 0x8600}, /* Line memory Read Counter (L) */ | 1177 | {0x009a, 0x8600}, /* Line memory Read Counter (L) */ |
1312 | {0x0001, 0x8606}, /* 1 Line memory Read Counter (H) Result: (d)410 */ | 1178 | {0x0001, 0x8606}, /* 1 Line memory Read Counter (H) Result: (d)410 */ |
1313 | {0x0023, 0x8601}, | 1179 | {0x0023, 0x8601}, |
1314 | {0x0010, 0x8602}, | 1180 | {0x0010, 0x8602}, |
1315 | {0x000a, 0x8603}, | 1181 | {0x000a, 0x8603}, |
1316 | {0x009A, 0x8600}, | 1182 | {0x009a, 0x8600}, |
1317 | {0x0001, 0x865b}, /* 1 Horizontal Offset for Valid Pixel(L) */ | 1183 | {0x0001, 0x865b}, /* 1 Horizontal Offset for Valid Pixel(L) */ |
1318 | {0x0003, 0x865c}, /* Vertical offset for valid lines (L) */ | 1184 | {0x0003, 0x865c}, /* Vertical offset for valid lines (L) */ |
1319 | {0x0058, 0x865d}, /* Horizontal valid pixels window (L) */ | 1185 | {0x0058, 0x865d}, /* Horizontal valid pixels window (L) */ |
@@ -1329,7 +1195,7 @@ static const u16 spca508_vista_init_data[][2] = { | |||
1329 | {0x0005, 0x860a}, /* ... */ | 1195 | {0x0005, 0x860a}, /* ... */ |
1330 | {0x0025, 0x860b}, | 1196 | {0x0025, 0x860b}, |
1331 | {0x00e1, 0x860c}, | 1197 | {0x00e1, 0x860c}, |
1332 | {0x00fa, 0x860D}, | 1198 | {0x00fa, 0x860d}, |
1333 | {0x00f4, 0x860e}, | 1199 | {0x00f4, 0x860e}, |
1334 | {0x00e8, 0x860f}, | 1200 | {0x00e8, 0x860f}, |
1335 | {0x0025, 0x8610}, /* A33 Coef. */ | 1201 | {0x0025, 0x8610}, /* A33 Coef. */ |
@@ -1344,11 +1210,12 @@ static const u16 spca508_vista_init_data[][2] = { | |||
1344 | {0x0040, 0x8654}, /* Gb gain for white balance (L) */ | 1210 | {0x0040, 0x8654}, /* Gb gain for white balance (L) */ |
1345 | {0x0001, 0x863f}, /* Enable fixed gamma correction */ | 1211 | {0x0001, 0x863f}, /* Enable fixed gamma correction */ |
1346 | 1212 | ||
1347 | {0x00a1, 0x8656}, /* Size - Window1: 256x256, Window2: 128x128 */ | 1213 | {0x00a1, 0x8656}, /* Size - Window1: 256x256, Window2: 128x128, |
1348 | /* UV division: UV no change, Enable New edge enhancement */ | 1214 | * UV division: UV no change, |
1215 | * Enable New edge enhancement */ | ||
1349 | {0x0018, 0x8657}, /* Edge gain high threshold */ | 1216 | {0x0018, 0x8657}, /* Edge gain high threshold */ |
1350 | {0x0020, 0x8658}, /* Edge gain low threshold */ | 1217 | {0x0020, 0x8658}, /* Edge gain low threshold */ |
1351 | {0x000A, 0x8659}, /* Edge bandwidth high threshold */ | 1218 | {0x000a, 0x8659}, /* Edge bandwidth high threshold */ |
1352 | {0x0005, 0x865a}, /* Edge bandwidth low threshold */ | 1219 | {0x0005, 0x865a}, /* Edge bandwidth low threshold */ |
1353 | {0x0064, 0x8607}, /* UV filter enable */ | 1220 | {0x0064, 0x8607}, /* UV filter enable */ |
1354 | 1221 | ||
@@ -1384,29 +1251,20 @@ static const u16 spca508_vista_init_data[][2] = { | |||
1384 | {0x0000, 0x86b4}, | 1251 | {0x0000, 0x86b4}, |
1385 | {0x001e, 0x8660}, | 1252 | {0x001e, 0x8660}, |
1386 | 1253 | ||
1387 | /* READ { 0, 0x0000, 0x8608 } -> | 1254 | /* READ { 0x0000, 0x8608 } -> 0000: 13 */ |
1388 | 0000: 13 */ | 1255 | /* READ { 0x0000, 0x8609 } -> 0000: 28 */ |
1389 | /* READ { 0, 0x0000, 0x8609 } -> | 1256 | /* READ { 0x0000, 0x8610 } -> 0000: 05 */ |
1390 | 0000: 28 */ | 1257 | /* READ { 0x0000, 0x8611 } -> 0000: 25 */ |
1391 | /* READ { 0, 0x0000, 0x8610 } -> | 1258 | /* READ { 0x0000, 0x8612 } -> 0000: e1 */ |
1392 | 0000: 05 */ | 1259 | /* READ { 0x0000, 0x8613 } -> 0000: fa */ |
1393 | /* READ { 0, 0x0000, 0x8611 } -> | 1260 | /* READ { 0x0000, 0x8614 } -> 0000: f4 */ |
1394 | 0000: 25 */ | 1261 | /* READ { 0x0000, 0x8615 } -> 0000: e8 */ |
1395 | /* READ { 0, 0x0000, 0x8612 } -> | 1262 | /* READ { 0x0000, 0x8616 } -> 0000: 25 */ |
1396 | 0000: e1 */ | ||
1397 | /* READ { 0, 0x0000, 0x8613 } -> | ||
1398 | 0000: fa */ | ||
1399 | /* READ { 0, 0x0000, 0x8614 } -> | ||
1400 | 0000: f4 */ | ||
1401 | /* READ { 0, 0x0000, 0x8615 } -> | ||
1402 | 0000: e8 */ | ||
1403 | /* READ { 0, 0x0000, 0x8616 } -> | ||
1404 | 0000: 25 */ | ||
1405 | {} | 1263 | {} |
1406 | }; | 1264 | }; |
1407 | 1265 | ||
1408 | static int reg_write(struct usb_device *dev, | 1266 | static int reg_write(struct usb_device *dev, |
1409 | __u16 index, __u16 value) | 1267 | u16 index, u16 value) |
1410 | { | 1268 | { |
1411 | int ret; | 1269 | int ret; |
1412 | 1270 | ||
@@ -1425,7 +1283,7 @@ static int reg_write(struct usb_device *dev, | |||
1425 | /* read 1 byte */ | 1283 | /* read 1 byte */ |
1426 | /* returns: negative is error, pos or zero is data */ | 1284 | /* returns: negative is error, pos or zero is data */ |
1427 | static int reg_read(struct gspca_dev *gspca_dev, | 1285 | static int reg_read(struct gspca_dev *gspca_dev, |
1428 | __u16 index) /* wIndex */ | 1286 | u16 index) /* wIndex */ |
1429 | { | 1287 | { |
1430 | int ret; | 1288 | int ret; |
1431 | 1289 | ||
@@ -1447,16 +1305,16 @@ static int reg_read(struct gspca_dev *gspca_dev, | |||
1447 | } | 1305 | } |
1448 | 1306 | ||
1449 | static int write_vector(struct gspca_dev *gspca_dev, | 1307 | static int write_vector(struct gspca_dev *gspca_dev, |
1450 | const u16 data[][2]) | 1308 | const u16 (*data)[2]) |
1451 | { | 1309 | { |
1452 | struct usb_device *dev = gspca_dev->dev; | 1310 | struct usb_device *dev = gspca_dev->dev; |
1453 | int ret, i = 0; | 1311 | int ret; |
1454 | 1312 | ||
1455 | while (data[i][1] != 0) { | 1313 | while ((*data)[1] != 0) { |
1456 | ret = reg_write(dev, data[i][1], data[i][0]); | 1314 | ret = reg_write(dev, (*data)[1], (*data)[0]); |
1457 | if (ret < 0) | 1315 | if (ret < 0) |
1458 | return ret; | 1316 | return ret; |
1459 | i++; | 1317 | data++; |
1460 | } | 1318 | } |
1461 | return 0; | 1319 | return 0; |
1462 | } | 1320 | } |
@@ -1468,6 +1326,15 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
1468 | struct sd *sd = (struct sd *) gspca_dev; | 1326 | struct sd *sd = (struct sd *) gspca_dev; |
1469 | struct cam *cam; | 1327 | struct cam *cam; |
1470 | int data1, data2; | 1328 | int data1, data2; |
1329 | const u16 (*init_data)[2]; | ||
1330 | static const u16 (*(init_data_tb[]))[2] = { | ||
1331 | spca508_vista_init_data, /* CreativeVista 0 */ | ||
1332 | spca508_sightcam_init_data, /* HamaUSBSightcam 1 */ | ||
1333 | spca508_sightcam2_init_data, /* HamaUSBSightcam2 2 */ | ||
1334 | spca508cs110_init_data, /* IntelEasyPCCamera 3 */ | ||
1335 | spca508cs110_init_data, /* MicroInnovationIC200 4 */ | ||
1336 | spca508_init_data, /* ViewQuestVQ110 5 */ | ||
1337 | }; | ||
1471 | 1338 | ||
1472 | /* Read from global register the USB product and vendor IDs, just to | 1339 | /* Read from global register the USB product and vendor IDs, just to |
1473 | * prove that we can communicate with the device. This works, which | 1340 | * prove that we can communicate with the device. This works, which |
@@ -1491,37 +1358,13 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
1491 | sd->subtype = id->driver_info; | 1358 | sd->subtype = id->driver_info; |
1492 | sd->brightness = BRIGHTNESS_DEF; | 1359 | sd->brightness = BRIGHTNESS_DEF; |
1493 | 1360 | ||
1494 | switch (sd->subtype) { | 1361 | init_data = init_data_tb[sd->subtype]; |
1495 | case ViewQuestVQ110: | 1362 | return write_vector(gspca_dev, init_data); |
1496 | if (write_vector(gspca_dev, spca508_init_data)) | ||
1497 | return -1; | ||
1498 | break; | ||
1499 | default: | ||
1500 | /* case MicroInnovationIC200: */ | ||
1501 | /* case IntelEasyPCCamera: */ | ||
1502 | if (write_vector(gspca_dev, spca508cs110_init_data)) | ||
1503 | return -1; | ||
1504 | break; | ||
1505 | case HamaUSBSightcam: | ||
1506 | if (write_vector(gspca_dev, spca508_sightcam_init_data)) | ||
1507 | return -1; | ||
1508 | break; | ||
1509 | case HamaUSBSightcam2: | ||
1510 | if (write_vector(gspca_dev, spca508_sightcam2_init_data)) | ||
1511 | return -1; | ||
1512 | break; | ||
1513 | case CreativeVista: | ||
1514 | if (write_vector(gspca_dev, spca508_vista_init_data)) | ||
1515 | return -1; | ||
1516 | break; | ||
1517 | } | ||
1518 | return 0; /* success */ | ||
1519 | } | 1363 | } |
1520 | 1364 | ||
1521 | /* this function is called at probe and resume time */ | 1365 | /* this function is called at probe and resume time */ |
1522 | static int sd_init(struct gspca_dev *gspca_dev) | 1366 | static int sd_init(struct gspca_dev *gspca_dev) |
1523 | { | 1367 | { |
1524 | /* write_vector(gspca_dev, spca508_open_data); */ | ||
1525 | return 0; | 1368 | return 0; |
1526 | } | 1369 | } |
1527 | 1370 | ||
@@ -1529,7 +1372,7 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1529 | { | 1372 | { |
1530 | int mode; | 1373 | int mode; |
1531 | 1374 | ||
1532 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; | 1375 | mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; |
1533 | reg_write(gspca_dev->dev, 0x8500, mode); | 1376 | reg_write(gspca_dev->dev, 0x8500, mode); |
1534 | switch (mode) { | 1377 | switch (mode) { |
1535 | case 0: | 1378 | case 0: |
@@ -1554,7 +1397,7 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
1554 | 1397 | ||
1555 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 1398 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
1556 | struct gspca_frame *frame, /* target */ | 1399 | struct gspca_frame *frame, /* target */ |
1557 | __u8 *data, /* isoc packet */ | 1400 | u8 *data, /* isoc packet */ |
1558 | int len) /* iso packet length */ | 1401 | int len) /* iso packet length */ |
1559 | { | 1402 | { |
1560 | switch (data[0]) { | 1403 | switch (data[0]) { |
@@ -1567,7 +1410,6 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
1567 | data, len); | 1410 | data, len); |
1568 | break; | 1411 | break; |
1569 | case 0xff: /* drop */ | 1412 | case 0xff: /* drop */ |
1570 | /* gspca_dev->last_packet_type = DISCARD_PACKET; */ | ||
1571 | break; | 1413 | break; |
1572 | default: | 1414 | default: |
1573 | data += 1; | 1415 | data += 1; |
@@ -1581,7 +1423,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
1581 | static void setbrightness(struct gspca_dev *gspca_dev) | 1423 | static void setbrightness(struct gspca_dev *gspca_dev) |
1582 | { | 1424 | { |
1583 | struct sd *sd = (struct sd *) gspca_dev; | 1425 | struct sd *sd = (struct sd *) gspca_dev; |
1584 | __u8 brightness = sd->brightness; | 1426 | u8 brightness = sd->brightness; |
1585 | 1427 | ||
1586 | /* MX seem contrast */ | 1428 | /* MX seem contrast */ |
1587 | reg_write(gspca_dev->dev, 0x8651, brightness); | 1429 | reg_write(gspca_dev->dev, 0x8651, brightness); |