diff options
author | Erik Andrén <erik.andren@gmail.com> | 2008-12-23 15:15:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:04 -0500 |
commit | 1f614f40b5ab302596374356f7a2065602e80e25 (patch) | |
tree | 84a13e0b1d23d41f27cdb494316987c69f771187 /drivers/media/video/gspca | |
parent | 03f46de925b87b26fcdf611b8fda182002627bd1 (diff) |
V4L/DVB (10040): m5602 - ov9650: Activate variopixel
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_ov9650.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.h b/drivers/media/video/gspca/m5602/m5602_ov9650.h index 9e955691aa6..9d01bc2596a 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov9650.h +++ b/drivers/media/video/gspca/m5602/m5602_ov9650.h | |||
@@ -35,6 +35,7 @@ | |||
35 | #define OV9650_PID 0x0a | 35 | #define OV9650_PID 0x0a |
36 | #define OV9650_VER 0x0b | 36 | #define OV9650_VER 0x0b |
37 | #define OV9650_COM3 0x0c | 37 | #define OV9650_COM3 0x0c |
38 | #define OV9650_COM4 0x0d | ||
38 | #define OV9650_COM5 0x0e | 39 | #define OV9650_COM5 0x0e |
39 | #define OV9650_COM6 0x0f | 40 | #define OV9650_COM6 0x0f |
40 | #define OV9650_AECH 0x10 | 41 | #define OV9650_AECH 0x10 |
@@ -109,6 +110,8 @@ | |||
109 | #define OV9650_SYSTEM_CLK_SEL (1 << 7) | 110 | #define OV9650_SYSTEM_CLK_SEL (1 << 7) |
110 | #define OV9650_SLAM_MODE (1 << 4) | 111 | #define OV9650_SLAM_MODE (1 << 4) |
111 | 112 | ||
113 | #define OV9650_QVGA_VARIOPIXEL (1 << 7) | ||
114 | |||
112 | #define OV9650_VFLIP (1 << 4) | 115 | #define OV9650_VFLIP (1 << 4) |
113 | #define OV9650_HFLIP (1 << 5) | 116 | #define OV9650_HFLIP (1 << 5) |
114 | 117 | ||
@@ -427,6 +430,10 @@ static const unsigned char init_ov9650[][3] = | |||
427 | /* Set the high bits of the exposure value */ | 430 | /* Set the high bits of the exposure value */ |
428 | {SENSOR, OV9650_AECH, ((EXPOSURE_DEFAULT & 0xff00) >> 8)}, | 431 | {SENSOR, OV9650_AECH, ((EXPOSURE_DEFAULT & 0xff00) >> 8)}, |
429 | 432 | ||
433 | /* Enable VARIOPIXEL */ | ||
434 | {SENSOR, OV9650_COM3, OV9650_VARIOPIXEL}, | ||
435 | {SENSOR, OV9650_COM4, OV9650_QVGA_VARIOPIXEL}, | ||
436 | |||
430 | /* Set the low bits of the exposure value */ | 437 | /* Set the low bits of the exposure value */ |
431 | {SENSOR, OV9650_COM1, (EXPOSURE_DEFAULT & 0xff)}, | 438 | {SENSOR, OV9650_COM1, (EXPOSURE_DEFAULT & 0xff)}, |
432 | {SENSOR, OV9650_GAIN, GAIN_DEFAULT}, | 439 | {SENSOR, OV9650_GAIN, GAIN_DEFAULT}, |