diff options
Diffstat (limited to 'Documentation/usb')
-rw-r--r-- | Documentation/usb/et61x251.txt | 306 | ||||
-rw-r--r-- | Documentation/usb/sn9c102.txt | 95 | ||||
-rw-r--r-- | Documentation/usb/w9968cf.txt | 30 |
3 files changed, 370 insertions, 61 deletions
diff --git a/Documentation/usb/et61x251.txt b/Documentation/usb/et61x251.txt new file mode 100644 index 000000000000..b44dda407ce2 --- /dev/null +++ b/Documentation/usb/et61x251.txt | |||
@@ -0,0 +1,306 @@ | |||
1 | |||
2 | ET61X[12]51 PC Camera Controllers | ||
3 | Driver for Linux | ||
4 | ================================= | ||
5 | |||
6 | - Documentation - | ||
7 | |||
8 | |||
9 | Index | ||
10 | ===== | ||
11 | 1. Copyright | ||
12 | 2. Disclaimer | ||
13 | 3. License | ||
14 | 4. Overview and features | ||
15 | 5. Module dependencies | ||
16 | 6. Module loading | ||
17 | 7. Module parameters | ||
18 | 8. Optional device control through "sysfs" | ||
19 | 9. Supported devices | ||
20 | 10. Notes for V4L2 application developers | ||
21 | 11. Contact information | ||
22 | |||
23 | |||
24 | 1. Copyright | ||
25 | ============ | ||
26 | Copyright (C) 2006 by Luca Risolia <luca.risolia@studio.unibo.it> | ||
27 | |||
28 | |||
29 | 2. Disclaimer | ||
30 | ============= | ||
31 | Etoms is a trademark of Etoms Electronics Corp. | ||
32 | This software is not developed or sponsored by Etoms Electronics. | ||
33 | |||
34 | |||
35 | 3. License | ||
36 | ========== | ||
37 | This program is free software; you can redistribute it and/or modify | ||
38 | it under the terms of the GNU General Public License as published by | ||
39 | the Free Software Foundation; either version 2 of the License, or | ||
40 | (at your option) any later version. | ||
41 | |||
42 | This program is distributed in the hope that it will be useful, | ||
43 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
44 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
45 | GNU General Public License for more details. | ||
46 | |||
47 | You should have received a copy of the GNU General Public License | ||
48 | along with this program; if not, write to the Free Software | ||
49 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
50 | |||
51 | |||
52 | 4. Overview and features | ||
53 | ======================== | ||
54 | This driver supports the video interface of the devices mounting the ET61X151 | ||
55 | or ET61X251 PC Camera Controllers. | ||
56 | |||
57 | It's worth to note that Etoms Electronics has never collaborated with the | ||
58 | author during the development of this project; despite several requests, | ||
59 | Etoms Electronics also refused to release enough detailed specifications of | ||
60 | the video compression engine. | ||
61 | |||
62 | The driver relies on the Video4Linux2 and USB core modules. It has been | ||
63 | designed to run properly on SMP systems as well. | ||
64 | |||
65 | The latest version of the ET61X[12]51 driver can be found at the following URL: | ||
66 | http://www.linux-projects.org/ | ||
67 | |||
68 | Some of the features of the driver are: | ||
69 | |||
70 | - full compliance with the Video4Linux2 API (see also "Notes for V4L2 | ||
71 | application developers" paragraph); | ||
72 | - available mmap or read/poll methods for video streaming through isochronous | ||
73 | data transfers; | ||
74 | - automatic detection of image sensor; | ||
75 | - support for any window resolutions and optional panning within the maximum | ||
76 | pixel area of image sensor; | ||
77 | - image downscaling with arbitrary scaling factors from 1 and 2 in both | ||
78 | directions (see "Notes for V4L2 application developers" paragraph); | ||
79 | - two different video formats for uncompressed or compressed data in low or | ||
80 | high compression quality (see also "Notes for V4L2 application developers" | ||
81 | paragraph); | ||
82 | - full support for the capabilities of every possible image sensors that can | ||
83 | be connected to the ET61X[12]51 bridges, including, for istance, red, green, | ||
84 | blue and global gain adjustments and exposure control (see "Supported | ||
85 | devices" paragraph for details); | ||
86 | - use of default color settings for sunlight conditions; | ||
87 | - dynamic I/O interface for both ET61X[12]51 and image sensor control (see | ||
88 | "Optional device control through 'sysfs'" paragraph); | ||
89 | - dynamic driver control thanks to various module parameters (see "Module | ||
90 | parameters" paragraph); | ||
91 | - up to 64 cameras can be handled at the same time; they can be connected and | ||
92 | disconnected from the host many times without turning off the computer, if | ||
93 | the system supports hotplugging; | ||
94 | - no known bugs. | ||
95 | |||
96 | |||
97 | 5. Module dependencies | ||
98 | ====================== | ||
99 | For it to work properly, the driver needs kernel support for Video4Linux and | ||
100 | USB. | ||
101 | |||
102 | The following options of the kernel configuration file must be enabled and | ||
103 | corresponding modules must be compiled: | ||
104 | |||
105 | # Multimedia devices | ||
106 | # | ||
107 | CONFIG_VIDEO_DEV=m | ||
108 | |||
109 | To enable advanced debugging functionality on the device through /sysfs: | ||
110 | |||
111 | # Multimedia devices | ||
112 | # | ||
113 | CONFIG_VIDEO_ADV_DEBUG=y | ||
114 | |||
115 | # USB support | ||
116 | # | ||
117 | CONFIG_USB=m | ||
118 | |||
119 | In addition, depending on the hardware being used, the modules below are | ||
120 | necessary: | ||
121 | |||
122 | # USB Host Controller Drivers | ||
123 | # | ||
124 | CONFIG_USB_EHCI_HCD=m | ||
125 | CONFIG_USB_UHCI_HCD=m | ||
126 | CONFIG_USB_OHCI_HCD=m | ||
127 | |||
128 | And finally: | ||
129 | |||
130 | # USB Multimedia devices | ||
131 | # | ||
132 | CONFIG_USB_ET61X251=m | ||
133 | |||
134 | |||
135 | 6. Module loading | ||
136 | ================= | ||
137 | To use the driver, it is necessary to load the "et61x251" module into memory | ||
138 | after every other module required: "videodev", "usbcore" and, depending on | ||
139 | the USB host controller you have, "ehci-hcd", "uhci-hcd" or "ohci-hcd". | ||
140 | |||
141 | Loading can be done as shown below: | ||
142 | |||
143 | [root@localhost home]# modprobe et61x251 | ||
144 | |||
145 | At this point the devices should be recognized. You can invoke "dmesg" to | ||
146 | analyze kernel messages and verify that the loading process has gone well: | ||
147 | |||
148 | [user@localhost home]$ dmesg | ||
149 | |||
150 | |||
151 | 7. Module parameters | ||
152 | ==================== | ||
153 | Module parameters are listed below: | ||
154 | ------------------------------------------------------------------------------- | ||
155 | Name: video_nr | ||
156 | Type: short array (min = 0, max = 64) | ||
157 | Syntax: <-1|n[,...]> | ||
158 | Description: Specify V4L2 minor mode number: | ||
159 | -1 = use next available | ||
160 | n = use minor number n | ||
161 | You can specify up to 64 cameras this way. | ||
162 | For example: | ||
163 | video_nr=-1,2,-1 would assign minor number 2 to the second | ||
164 | registered camera and use auto for the first one and for every | ||
165 | other camera. | ||
166 | Default: -1 | ||
167 | ------------------------------------------------------------------------------- | ||
168 | Name: force_munmap | ||
169 | Type: bool array (min = 0, max = 64) | ||
170 | Syntax: <0|1[,...]> | ||
171 | Description: Force the application to unmap previously mapped buffer memory | ||
172 | before calling any VIDIOC_S_CROP or VIDIOC_S_FMT ioctl's. Not | ||
173 | all the applications support this feature. This parameter is | ||
174 | specific for each detected camera. | ||
175 | 0 = do not force memory unmapping | ||
176 | 1 = force memory unmapping (save memory) | ||
177 | Default: 0 | ||
178 | ------------------------------------------------------------------------------- | ||
179 | Name: debug | ||
180 | Type: ushort | ||
181 | Syntax: <n> | ||
182 | Description: Debugging information level, from 0 to 3: | ||
183 | 0 = none (use carefully) | ||
184 | 1 = critical errors | ||
185 | 2 = significant informations | ||
186 | 3 = more verbose messages | ||
187 | Level 3 is useful for testing only, when only one device | ||
188 | is used at the same time. It also shows some more informations | ||
189 | about the hardware being detected. This module parameter can be | ||
190 | changed at runtime thanks to the /sys filesystem interface. | ||
191 | Default: 2 | ||
192 | ------------------------------------------------------------------------------- | ||
193 | |||
194 | |||
195 | 8. Optional device control through "sysfs" | ||
196 | ========================================== | ||
197 | If the kernel has been compiled with the CONFIG_VIDEO_ADV_DEBUG option enabled, | ||
198 | it is possible to read and write both the ET61X[12]51 and the image sensor | ||
199 | registers by using the "sysfs" filesystem interface. | ||
200 | |||
201 | There are four files in the /sys/class/video4linux/videoX directory for each | ||
202 | registered camera: "reg", "val", "i2c_reg" and "i2c_val". The first two files | ||
203 | control the ET61X[12]51 bridge, while the other two control the sensor chip. | ||
204 | "reg" and "i2c_reg" hold the values of the current register index where the | ||
205 | following reading/writing operations are addressed at through "val" and | ||
206 | "i2c_val". Their use is not intended for end-users, unless you know what you | ||
207 | are doing. Remember that you must be logged in as root before writing to them. | ||
208 | |||
209 | As an example, suppose we were to want to read the value contained in the | ||
210 | register number 1 of the sensor register table - which is usually the product | ||
211 | identifier - of the camera registered as "/dev/video0": | ||
212 | |||
213 | [root@localhost #] cd /sys/class/video4linux/video0 | ||
214 | [root@localhost #] echo 1 > i2c_reg | ||
215 | [root@localhost #] cat i2c_val | ||
216 | |||
217 | Note that if the sensor registers can not be read, "cat" will fail. | ||
218 | To avoid race conditions, all the I/O accesses to the files are serialized. | ||
219 | |||
220 | |||
221 | 9. Supported devices | ||
222 | ==================== | ||
223 | None of the names of the companies as well as their products will be mentioned | ||
224 | here. They have never collaborated with the author, so no advertising. | ||
225 | |||
226 | From the point of view of a driver, what unambiguously identify a device are | ||
227 | its vendor and product USB identifiers. Below is a list of known identifiers of | ||
228 | devices mounting the ET61X[12]51 PC camera controllers: | ||
229 | |||
230 | Vendor ID Product ID | ||
231 | --------- ---------- | ||
232 | 0x102c 0x6151 | ||
233 | 0x102c 0x6251 | ||
234 | 0x102c 0x6253 | ||
235 | 0x102c 0x6254 | ||
236 | 0x102c 0x6255 | ||
237 | 0x102c 0x6256 | ||
238 | 0x102c 0x6257 | ||
239 | 0x102c 0x6258 | ||
240 | 0x102c 0x6259 | ||
241 | 0x102c 0x625a | ||
242 | 0x102c 0x625b | ||
243 | 0x102c 0x625c | ||
244 | 0x102c 0x625d | ||
245 | 0x102c 0x625e | ||
246 | 0x102c 0x625f | ||
247 | 0x102c 0x6260 | ||
248 | 0x102c 0x6261 | ||
249 | 0x102c 0x6262 | ||
250 | 0x102c 0x6263 | ||
251 | 0x102c 0x6264 | ||
252 | 0x102c 0x6265 | ||
253 | 0x102c 0x6266 | ||
254 | 0x102c 0x6267 | ||
255 | 0x102c 0x6268 | ||
256 | 0x102c 0x6269 | ||
257 | |||
258 | The following image sensors are supported: | ||
259 | |||
260 | Model Manufacturer | ||
261 | ----- ------------ | ||
262 | TAS5130D1B Taiwan Advanced Sensor Corporation | ||
263 | |||
264 | All the available control settings of each image sensor are supported through | ||
265 | the V4L2 interface. | ||
266 | |||
267 | |||
268 | 10. Notes for V4L2 application developers | ||
269 | ======================================== | ||
270 | This driver follows the V4L2 API specifications. In particular, it enforces two | ||
271 | rules: | ||
272 | |||
273 | - exactly one I/O method, either "mmap" or "read", is associated with each | ||
274 | file descriptor. Once it is selected, the application must close and reopen the | ||
275 | device to switch to the other I/O method; | ||
276 | |||
277 | - although it is not mandatory, previously mapped buffer memory should always | ||
278 | be unmapped before calling any "VIDIOC_S_CROP" or "VIDIOC_S_FMT" ioctl's. | ||
279 | The same number of buffers as before will be allocated again to match the size | ||
280 | of the new video frames, so you have to map the buffers again before any I/O | ||
281 | attempts on them. | ||
282 | |||
283 | Consistently with the hardware limits, this driver also supports image | ||
284 | downscaling with arbitrary scaling factors from 1 and 2 in both directions. | ||
285 | However, the V4L2 API specifications don't correctly define how the scaling | ||
286 | factor can be chosen arbitrarily by the "negotiation" of the "source" and | ||
287 | "target" rectangles. To work around this flaw, we have added the convention | ||
288 | that, during the negotiation, whenever the "VIDIOC_S_CROP" ioctl is issued, the | ||
289 | scaling factor is restored to 1. | ||
290 | |||
291 | This driver supports two different video formats: the first one is the "8-bit | ||
292 | Sequential Bayer" format and can be used to obtain uncompressed video data | ||
293 | from the device through the current I/O method, while the second one provides | ||
294 | "raw" compressed video data (without frame headers not related to the | ||
295 | compressed data). The current compression quality may vary from 0 to 1 and can | ||
296 | be selected or queried thanks to the VIDIOC_S_JPEGCOMP and VIDIOC_G_JPEGCOMP | ||
297 | V4L2 ioctl's. | ||
298 | |||
299 | |||
300 | 11. Contact information | ||
301 | ======================= | ||
302 | The author may be contacted by e-mail at <luca.risolia@studio.unibo.it>. | ||
303 | |||
304 | GPG/PGP encrypted e-mail's are accepted. The GPG key ID of the author is | ||
305 | 'FCE635A4'; the public 1024-bit key should be available at any keyserver; | ||
306 | the fingerprint is: '88E8 F32F 7244 68BA 3958 5D40 99DA 5D2A FCE6 35A4'. | ||
diff --git a/Documentation/usb/sn9c102.txt b/Documentation/usb/sn9c102.txt index 3f8a119db31b..c6b76414172c 100644 --- a/Documentation/usb/sn9c102.txt +++ b/Documentation/usb/sn9c102.txt | |||
@@ -17,16 +17,15 @@ Index | |||
17 | 7. Module parameters | 17 | 7. Module parameters |
18 | 8. Optional device control through "sysfs" | 18 | 8. Optional device control through "sysfs" |
19 | 9. Supported devices | 19 | 9. Supported devices |
20 | 10. How to add plug-in's for new image sensors | 20 | 10. Notes for V4L2 application developers |
21 | 11. Notes for V4L2 application developers | 21 | 11. Video frame formats |
22 | 12. Video frame formats | 22 | 12. Contact information |
23 | 13. Contact information | 23 | 13. Credits |
24 | 14. Credits | ||
25 | 24 | ||
26 | 25 | ||
27 | 1. Copyright | 26 | 1. Copyright |
28 | ============ | 27 | ============ |
29 | Copyright (C) 2004-2005 by Luca Risolia <luca.risolia@studio.unibo.it> | 28 | Copyright (C) 2004-2006 by Luca Risolia <luca.risolia@studio.unibo.it> |
30 | 29 | ||
31 | 30 | ||
32 | 2. Disclaimer | 31 | 2. Disclaimer |
@@ -54,9 +53,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |||
54 | 53 | ||
55 | 4. Overview and features | 54 | 4. Overview and features |
56 | ======================== | 55 | ======================== |
57 | This driver attempts to support the video and audio streaming capabilities of | 56 | This driver attempts to support the video interface of the devices mounting the |
58 | the devices mounting the SONiX SN9C101, SN9C102 and SN9C103 PC Camera | 57 | SONiX SN9C101, SN9C102 and SN9C103 PC Camera Controllers. |
59 | Controllers. | ||
60 | 58 | ||
61 | It's worth to note that SONiX has never collaborated with the author during the | 59 | It's worth to note that SONiX has never collaborated with the author during the |
62 | development of this project, despite several requests for enough detailed | 60 | development of this project, despite several requests for enough detailed |
@@ -78,6 +76,7 @@ Some of the features of the driver are: | |||
78 | - available mmap or read/poll methods for video streaming through isochronous | 76 | - available mmap or read/poll methods for video streaming through isochronous |
79 | data transfers; | 77 | data transfers; |
80 | - automatic detection of image sensor; | 78 | - automatic detection of image sensor; |
79 | - support for built-in microphone interface; | ||
81 | - support for any window resolutions and optional panning within the maximum | 80 | - support for any window resolutions and optional panning within the maximum |
82 | pixel area of image sensor; | 81 | pixel area of image sensor; |
83 | - image downscaling with arbitrary scaling factors from 1, 2 and 4 in both | 82 | - image downscaling with arbitrary scaling factors from 1, 2 and 4 in both |
@@ -96,7 +95,7 @@ Some of the features of the driver are: | |||
96 | parameters" paragraph); | 95 | parameters" paragraph); |
97 | - up to 64 cameras can be handled at the same time; they can be connected and | 96 | - up to 64 cameras can be handled at the same time; they can be connected and |
98 | disconnected from the host many times without turning off the computer, if | 97 | disconnected from the host many times without turning off the computer, if |
99 | your system supports hotplugging; | 98 | the system supports hotplugging; |
100 | - no known bugs. | 99 | - no known bugs. |
101 | 100 | ||
102 | 101 | ||
@@ -112,6 +111,12 @@ corresponding modules must be compiled: | |||
112 | # | 111 | # |
113 | CONFIG_VIDEO_DEV=m | 112 | CONFIG_VIDEO_DEV=m |
114 | 113 | ||
114 | To enable advanced debugging functionality on the device through /sysfs: | ||
115 | |||
116 | # Multimedia devices | ||
117 | # | ||
118 | CONFIG_VIDEO_ADV_DEBUG=y | ||
119 | |||
115 | # USB support | 120 | # USB support |
116 | # | 121 | # |
117 | CONFIG_USB=m | 122 | CONFIG_USB=m |
@@ -125,6 +130,21 @@ necessary: | |||
125 | CONFIG_USB_UHCI_HCD=m | 130 | CONFIG_USB_UHCI_HCD=m |
126 | CONFIG_USB_OHCI_HCD=m | 131 | CONFIG_USB_OHCI_HCD=m |
127 | 132 | ||
133 | The SN9C103 controller also provides a built-in microphone interface. It is | ||
134 | supported by the USB Audio driver thanks to the ALSA API: | ||
135 | |||
136 | # Sound | ||
137 | # | ||
138 | CONFIG_SOUND=y | ||
139 | |||
140 | # Advanced Linux Sound Architecture | ||
141 | # | ||
142 | CONFIG_SND=m | ||
143 | |||
144 | # USB devices | ||
145 | # | ||
146 | CONFIG_SND_USB_AUDIO=m | ||
147 | |||
128 | And finally: | 148 | And finally: |
129 | 149 | ||
130 | # USB Multimedia devices | 150 | # USB Multimedia devices |
@@ -153,7 +173,7 @@ analyze kernel messages and verify that the loading process has gone well: | |||
153 | Module parameters are listed below: | 173 | Module parameters are listed below: |
154 | ------------------------------------------------------------------------------- | 174 | ------------------------------------------------------------------------------- |
155 | Name: video_nr | 175 | Name: video_nr |
156 | Type: int array (min = 0, max = 64) | 176 | Type: short array (min = 0, max = 64) |
157 | Syntax: <-1|n[,...]> | 177 | Syntax: <-1|n[,...]> |
158 | Description: Specify V4L2 minor mode number: | 178 | Description: Specify V4L2 minor mode number: |
159 | -1 = use next available | 179 | -1 = use next available |
@@ -165,19 +185,19 @@ Description: Specify V4L2 minor mode number: | |||
165 | other camera. | 185 | other camera. |
166 | Default: -1 | 186 | Default: -1 |
167 | ------------------------------------------------------------------------------- | 187 | ------------------------------------------------------------------------------- |
168 | Name: force_munmap; | 188 | Name: force_munmap |
169 | Type: bool array (min = 0, max = 64) | 189 | Type: bool array (min = 0, max = 64) |
170 | Syntax: <0|1[,...]> | 190 | Syntax: <0|1[,...]> |
171 | Description: Force the application to unmap previously mapped buffer memory | 191 | Description: Force the application to unmap previously mapped buffer memory |
172 | before calling any VIDIOC_S_CROP or VIDIOC_S_FMT ioctl's. Not | 192 | before calling any VIDIOC_S_CROP or VIDIOC_S_FMT ioctl's. Not |
173 | all the applications support this feature. This parameter is | 193 | all the applications support this feature. This parameter is |
174 | specific for each detected camera. | 194 | specific for each detected camera. |
175 | 0 = do not force memory unmapping" | 195 | 0 = do not force memory unmapping |
176 | 1 = force memory unmapping (save memory)" | 196 | 1 = force memory unmapping (save memory) |
177 | Default: 0 | 197 | Default: 0 |
178 | ------------------------------------------------------------------------------- | 198 | ------------------------------------------------------------------------------- |
179 | Name: debug | 199 | Name: debug |
180 | Type: int | 200 | Type: ushort |
181 | Syntax: <n> | 201 | Syntax: <n> |
182 | Description: Debugging information level, from 0 to 3: | 202 | Description: Debugging information level, from 0 to 3: |
183 | 0 = none (use carefully) | 203 | 0 = none (use carefully) |
@@ -187,14 +207,15 @@ Description: Debugging information level, from 0 to 3: | |||
187 | Level 3 is useful for testing only, when only one device | 207 | Level 3 is useful for testing only, when only one device |
188 | is used. It also shows some more informations about the | 208 | is used. It also shows some more informations about the |
189 | hardware being detected. This parameter can be changed at | 209 | hardware being detected. This parameter can be changed at |
190 | runtime thanks to the /sys filesystem. | 210 | runtime thanks to the /sys filesystem interface. |
191 | Default: 2 | 211 | Default: 2 |
192 | ------------------------------------------------------------------------------- | 212 | ------------------------------------------------------------------------------- |
193 | 213 | ||
194 | 214 | ||
195 | 8. Optional device control through "sysfs" [1] | 215 | 8. Optional device control through "sysfs" [1] |
196 | ========================================== | 216 | ========================================== |
197 | It is possible to read and write both the SN9C10x and the image sensor | 217 | If the kernel has been compiled with the CONFIG_VIDEO_ADV_DEBUG option enabled, |
218 | it is possible to read and write both the SN9C10x and the image sensor | ||
198 | registers by using the "sysfs" filesystem interface. | 219 | registers by using the "sysfs" filesystem interface. |
199 | 220 | ||
200 | Every time a supported device is recognized, a write-only file named "green" is | 221 | Every time a supported device is recognized, a write-only file named "green" is |
@@ -236,7 +257,7 @@ serialized. | |||
236 | 257 | ||
237 | The sysfs interface also provides the "frame_header" entry, which exports the | 258 | The sysfs interface also provides the "frame_header" entry, which exports the |
238 | frame header of the most recent requested and captured video frame. The header | 259 | frame header of the most recent requested and captured video frame. The header |
239 | is 12-bytes long and is appended to every video frame by the SN9C10x | 260 | is always 18-bytes long and is appended to every video frame by the SN9C10x |
240 | controllers. As an example, this additional information can be used by the user | 261 | controllers. As an example, this additional information can be used by the user |
241 | application for implementing auto-exposure features via software. | 262 | application for implementing auto-exposure features via software. |
242 | 263 | ||
@@ -250,7 +271,8 @@ Byte # Value Description | |||
250 | 0x03 0xC4 Frame synchronisation pattern. | 271 | 0x03 0xC4 Frame synchronisation pattern. |
251 | 0x04 0xC4 Frame synchronisation pattern. | 272 | 0x04 0xC4 Frame synchronisation pattern. |
252 | 0x05 0x96 Frame synchronisation pattern. | 273 | 0x05 0x96 Frame synchronisation pattern. |
253 | 0x06 0x00 or 0x01 Unknown meaning. The exact value depends on the chip. | 274 | 0x06 0xXX Unknown meaning. The exact value depends on the chip; |
275 | possible values are 0x00, 0x01 and 0x20. | ||
254 | 0x07 0xXX Variable value, whose bits are ff00uzzc, where ff is a | 276 | 0x07 0xXX Variable value, whose bits are ff00uzzc, where ff is a |
255 | frame counter, u is unknown, zz is a size indicator | 277 | frame counter, u is unknown, zz is a size indicator |
256 | (00 = VGA, 01 = SIF, 10 = QSIF) and c stands for | 278 | (00 = VGA, 01 = SIF, 10 = QSIF) and c stands for |
@@ -267,12 +289,23 @@ Byte # Value Description | |||
267 | times the area outside of the specified AE area. For | 289 | times the area outside of the specified AE area. For |
268 | images that are not pure white, the value scales down | 290 | images that are not pure white, the value scales down |
269 | according to relative whiteness. | 291 | according to relative whiteness. |
292 | according to relative whiteness. | ||
293 | |||
294 | The following bytes are used by the SN9C103 bridge only: | ||
295 | |||
296 | 0x0C 0xXX Unknown meaning | ||
297 | 0x0D 0xXX Unknown meaning | ||
298 | 0x0E 0xXX Unknown meaning | ||
299 | 0x0F 0xXX Unknown meaning | ||
300 | 0x10 0xXX Unknown meaning | ||
301 | 0x11 0xXX Unknown meaning | ||
270 | 302 | ||
271 | The AE area (sx, sy, ex, ey) in the active window can be set by programming the | 303 | The AE area (sx, sy, ex, ey) in the active window can be set by programming the |
272 | registers 0x1c, 0x1d, 0x1e and 0x1f of the SN9C10x controllers, where one unit | 304 | registers 0x1c, 0x1d, 0x1e and 0x1f of the SN9C10x controllers, where one unit |
273 | corresponds to 32 pixels. | 305 | corresponds to 32 pixels. |
274 | 306 | ||
275 | [1] The frame header has been documented by Bertrik Sikken. | 307 | [1] Part of the meaning of the frame header has been documented by Bertrik |
308 | Sikken. | ||
276 | 309 | ||
277 | 310 | ||
278 | 9. Supported devices | 311 | 9. Supported devices |
@@ -298,6 +331,7 @@ Vendor ID Product ID | |||
298 | 0x0c45 0x602b | 331 | 0x0c45 0x602b |
299 | 0x0c45 0x602c | 332 | 0x0c45 0x602c |
300 | 0x0c45 0x602d | 333 | 0x0c45 0x602d |
334 | 0x0c45 0x602e | ||
301 | 0x0c45 0x6030 | 335 | 0x0c45 0x6030 |
302 | 0x0c45 0x6080 | 336 | 0x0c45 0x6080 |
303 | 0x0c45 0x6082 | 337 | 0x0c45 0x6082 |
@@ -348,18 +382,7 @@ appreciated. Non-available hardware will not be supported by the author of this | |||
348 | driver. | 382 | driver. |
349 | 383 | ||
350 | 384 | ||
351 | 10. How to add plug-in's for new image sensors | 385 | 10. Notes for V4L2 application developers |
352 | ============================================== | ||
353 | It should be easy to write plug-in's for new sensors by using the small API | ||
354 | that has been created for this purpose, which is present in "sn9c102_sensor.h" | ||
355 | (documentation is included there). As an example, have a look at the code in | ||
356 | "sn9c102_pas106b.c", which uses the mentioned interface. | ||
357 | |||
358 | At the moment, possible unsupported image sensors are: CIS-VF10 (VGA), | ||
359 | OV7620 (VGA), OV7630 (VGA). | ||
360 | |||
361 | |||
362 | 11. Notes for V4L2 application developers | ||
363 | ========================================= | 386 | ========================================= |
364 | This driver follows the V4L2 API specifications. In particular, it enforces two | 387 | This driver follows the V4L2 API specifications. In particular, it enforces two |
365 | rules: | 388 | rules: |
@@ -394,7 +417,7 @@ initialized (as described in the documentation of the API for the image sensors | |||
394 | supplied by this driver). | 417 | supplied by this driver). |
395 | 418 | ||
396 | 419 | ||
397 | 12. Video frame formats [1] | 420 | 11. Video frame formats [1] |
398 | ======================= | 421 | ======================= |
399 | The SN9C10x PC Camera Controllers can send images in two possible video | 422 | The SN9C10x PC Camera Controllers can send images in two possible video |
400 | formats over the USB: either native "Sequential RGB Bayer" or Huffman | 423 | formats over the USB: either native "Sequential RGB Bayer" or Huffman |
@@ -455,7 +478,7 @@ The following Huffman codes have been found: | |||
455 | documented by Bertrik Sikken. | 478 | documented by Bertrik Sikken. |
456 | 479 | ||
457 | 480 | ||
458 | 13. Contact information | 481 | 12. Contact information |
459 | ======================= | 482 | ======================= |
460 | The author may be contacted by e-mail at <luca.risolia@studio.unibo.it>. | 483 | The author may be contacted by e-mail at <luca.risolia@studio.unibo.it>. |
461 | 484 | ||
@@ -464,7 +487,7 @@ GPG/PGP encrypted e-mail's are accepted. The GPG key ID of the author is | |||
464 | the fingerprint is: '88E8 F32F 7244 68BA 3958 5D40 99DA 5D2A FCE6 35A4'. | 487 | the fingerprint is: '88E8 F32F 7244 68BA 3958 5D40 99DA 5D2A FCE6 35A4'. |
465 | 488 | ||
466 | 489 | ||
467 | 14. Credits | 490 | 13. Credits |
468 | =========== | 491 | =========== |
469 | Many thanks to following persons for their contribute (listed in alphabetical | 492 | Many thanks to following persons for their contribute (listed in alphabetical |
470 | order): | 493 | order): |
@@ -480,5 +503,5 @@ order): | |||
480 | - Bertrik Sikken, who reverse-engineered and documented the Huffman compression | 503 | - Bertrik Sikken, who reverse-engineered and documented the Huffman compression |
481 | algorithm used in the SN9C10x controllers and implemented the first decoder; | 504 | algorithm used in the SN9C10x controllers and implemented the first decoder; |
482 | - Mizuno Takafumi for the donation of a webcam; | 505 | - Mizuno Takafumi for the donation of a webcam; |
483 | - An "anonymous" donator (who didn't want his name to be revealed) for the | 506 | - an "anonymous" donator (who didn't want his name to be revealed) for the |
484 | donation of a webcam. | 507 | donation of a webcam. |
diff --git a/Documentation/usb/w9968cf.txt b/Documentation/usb/w9968cf.txt index 18a47738d56c..9d46cd0b19e3 100644 --- a/Documentation/usb/w9968cf.txt +++ b/Documentation/usb/w9968cf.txt | |||
@@ -57,16 +57,12 @@ based cameras should be supported as well. | |||
57 | The driver is divided into two modules: the basic one, "w9968cf", is needed for | 57 | The driver is divided into two modules: the basic one, "w9968cf", is needed for |
58 | the supported devices to work; the second one, "w9968cf-vpp", is an optional | 58 | the supported devices to work; the second one, "w9968cf-vpp", is an optional |
59 | module, which provides some useful video post-processing functions like video | 59 | module, which provides some useful video post-processing functions like video |
60 | decoding, up-scaling and colour conversions. Once the driver is installed, | 60 | decoding, up-scaling and colour conversions. |
61 | every time an application tries to open a recognized device, "w9968cf" checks | ||
62 | the presence of the "w9968cf-vpp" module and loads it automatically by default. | ||
63 | 61 | ||
64 | Please keep in mind that official kernels do not include the second module for | 62 | Note that the official kernels do neither include nor support the second |
65 | performance purposes. However it is always recommended to download and install | 63 | module for performance purposes. Therefore, it is always recommended to |
66 | the latest and complete release of the driver, replacing the existing one, if | 64 | download and install the latest and complete release of the driver, |
67 | present: it will be still even possible not to load the "w9968cf-vpp" module at | 65 | replacing the existing one, if present. |
68 | all, if you ever want to. Another important missing feature of the version in | ||
69 | the official Linux 2.4 kernels is the writeable /proc filesystem interface. | ||
70 | 66 | ||
71 | The latest and full-featured version of the W996[87]CF driver can be found at: | 67 | The latest and full-featured version of the W996[87]CF driver can be found at: |
72 | http://www.linux-projects.org. Please refer to the documentation included in | 68 | http://www.linux-projects.org. Please refer to the documentation included in |
@@ -201,22 +197,6 @@ Note: The kernel must be compiled with the CONFIG_KMOD option | |||
201 | enabled for the 'ovcamchip' module to be loaded and for | 197 | enabled for the 'ovcamchip' module to be loaded and for |
202 | this parameter to be present. | 198 | this parameter to be present. |
203 | ------------------------------------------------------------------------------- | 199 | ------------------------------------------------------------------------------- |
204 | Name: vppmod_load | ||
205 | Type: bool | ||
206 | Syntax: <0|1> | ||
207 | Description: Automatic 'w9968cf-vpp' module loading: 0 disabled, 1 enabled. | ||
208 | If enabled, every time an application attempts to open a | ||
209 | camera, 'insmod' searches for the video post-processing module | ||
210 | in the system and loads it automatically (if present). | ||
211 | The optional 'w9968cf-vpp' module adds extra image manipulation | ||
212 | capabilities to the 'w9968cf' module,like software up-scaling, | ||
213 | colour conversions and video decompression for very high frame | ||
214 | rates. | ||
215 | Default: 1 | ||
216 | Note: The kernel must be compiled with the CONFIG_KMOD option | ||
217 | enabled for the 'w9968cf-vpp' module to be loaded and for | ||
218 | this parameter to be present. | ||
219 | ------------------------------------------------------------------------------- | ||
220 | Name: simcams | 200 | Name: simcams |
221 | Type: int | 201 | Type: int |
222 | Syntax: <n> | 202 | Syntax: <n> |