aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/media/zc0301_pas202bcb.c
diff options
context:
space:
mode:
authorLuca Risolia <luca.risolia@studio.unibo.it>2006-02-25 01:57:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 17:50:00 -0500
commita847423905c6a8ccd6671d05f5877d893d10cd9f (patch)
treeca7a67a3f37889bf7c612d246fa5173dfbef320a /drivers/usb/media/zc0301_pas202bcb.c
parentccad7789d5e557644d1c866b018394872af0ec5b (diff)
[PATCH] USB: ZC0301 driver updates
ZC0301 driver updates. Changes: + new, - removed, * cleanup, @ bugfix @ Need usb_get|put_dev() when disconnecting, if the device is open * Cleanups and updates in the documentation + Use per-device sensor structures + Add frame_timeout module parameter Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/zc0301_pas202bcb.c')
-rw-r--r--drivers/usb/media/zc0301_pas202bcb.c38
1 files changed, 23 insertions, 15 deletions
diff --git a/drivers/usb/media/zc0301_pas202bcb.c b/drivers/usb/media/zc0301_pas202bcb.c
index 32b9b9329cbf..9d282a22c15f 100644
--- a/drivers/usb/media/zc0301_pas202bcb.c
+++ b/drivers/usb/media/zc0301_pas202bcb.c
@@ -22,6 +22,14 @@
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
23 ***************************************************************************/ 23 ***************************************************************************/
24 24
25/*
26 NOTE: Sensor controls are disabled for now, becouse changing them while
27 streaming sometimes results in out-of-sync video frames. We'll use
28 the default initialization, until we know how to stop and start video
29 in the chip. However, the image quality still looks good under various
30 light conditions.
31*/
32
25#include <linux/delay.h> 33#include <linux/delay.h>
26#include "zc0301_sensor.h" 34#include "zc0301_sensor.h"
27 35
@@ -245,7 +253,7 @@ static struct zc0301_sensor pas202bcb = {
245 .maximum = 0x3fff, 253 .maximum = 0x3fff,
246 .step = 0x0001, 254 .step = 0x0001,
247 .default_value = 0x01e5, 255 .default_value = 0x01e5,
248 .flags = 0, 256 .flags = V4L2_CTRL_FLAG_DISABLED,
249 }, 257 },
250 { 258 {
251 .id = V4L2_CID_GAIN, 259 .id = V4L2_CID_GAIN,
@@ -255,7 +263,17 @@ static struct zc0301_sensor pas202bcb = {
255 .maximum = 0x1f, 263 .maximum = 0x1f,
256 .step = 0x01, 264 .step = 0x01,
257 .default_value = 0x0c, 265 .default_value = 0x0c,
258 .flags = 0, 266 .flags = V4L2_CTRL_FLAG_DISABLED,
267 },
268 {
269 .id = ZC0301_V4L2_CID_DAC_MAGNITUDE,
270 .type = V4L2_CTRL_TYPE_INTEGER,
271 .name = "DAC magnitude",
272 .minimum = 0x00,
273 .maximum = 0xff,
274 .step = 0x01,
275 .default_value = 0x00,
276 .flags = V4L2_CTRL_FLAG_DISABLED,
259 }, 277 },
260 { 278 {
261 .id = V4L2_CID_RED_BALANCE, 279 .id = V4L2_CID_RED_BALANCE,
@@ -265,7 +283,7 @@ static struct zc0301_sensor pas202bcb = {
265 .maximum = 0x0f, 283 .maximum = 0x0f,
266 .step = 0x01, 284 .step = 0x01,
267 .default_value = 0x01, 285 .default_value = 0x01,
268 .flags = 0, 286 .flags = V4L2_CTRL_FLAG_DISABLED,
269 }, 287 },
270 { 288 {
271 .id = V4L2_CID_BLUE_BALANCE, 289 .id = V4L2_CID_BLUE_BALANCE,
@@ -275,7 +293,7 @@ static struct zc0301_sensor pas202bcb = {
275 .maximum = 0x0f, 293 .maximum = 0x0f,
276 .step = 0x01, 294 .step = 0x01,
277 .default_value = 0x05, 295 .default_value = 0x05,
278 .flags = 0, 296 .flags = V4L2_CTRL_FLAG_DISABLED,
279 }, 297 },
280 { 298 {
281 .id = ZC0301_V4L2_CID_GREEN_BALANCE, 299 .id = ZC0301_V4L2_CID_GREEN_BALANCE,
@@ -285,17 +303,7 @@ static struct zc0301_sensor pas202bcb = {
285 .maximum = 0x0f, 303 .maximum = 0x0f,
286 .step = 0x01, 304 .step = 0x01,
287 .default_value = 0x00, 305 .default_value = 0x00,
288 .flags = 0, 306 .flags = V4L2_CTRL_FLAG_DISABLED,
289 },
290 {
291 .id = ZC0301_V4L2_CID_DAC_MAGNITUDE,
292 .type = V4L2_CTRL_TYPE_INTEGER,
293 .name = "DAC magnitude",
294 .minimum = 0x00,
295 .maximum = 0xff,
296 .step = 0x01,
297 .default_value = 0x04,
298 .flags = 0,
299 }, 307 },
300 }, 308 },
301 .get_ctrl = &pas202bcb_get_ctrl, 309 .get_ctrl = &pas202bcb_get_ctrl,