summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-20 07:49:00 +0100
committerErik Andr?n <erik.andren@gmail.com>2009-01-20 07:49:00 +0100
commit312924eff02687357bebf77fb8c9e6d6e8b168a4 (patch)
tree563e553fa4d6e6c16ec548ea84d6ff3324339ade /linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h
parentf7e4d336384ca30f8c58afe8286fae922c9a9eac (diff)
downloadmediapointer-dvb-s2-312924eff02687357bebf77fb8c9e6d6e8b168a4.tar.gz
mediapointer-dvb-s2-312924eff02687357bebf77fb8c9e6d6e8b168a4.tar.bz2
gspca - m5602-mt9m111: Replace magic constants with defines
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h
index 217728a24..7bb8ebb86 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h
+++ b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.h
@@ -80,8 +80,12 @@
#define MT9M111_RESTART_BAD_FRAMES (1 << 1)
#define MT9M111_SYNCHRONIZE_CHANGES (1 << 7)
+#define MT9M111_RMB_OVER_SIZED (1 << 0)
#define MT9M111_RMB_MIRROR_ROWS (1 << 0)
#define MT9M111_RMB_MIRROR_COLS (1 << 1)
+#define MT9M111_RMB_ROW_SKIP_2X (1 << 2)
+#define MT9M111_RMB_COLUMN_SKIP_2X (1 << 3)
+
#define MT9M111_COLOR_MATRIX_BYPASS (1 << 4)
#define MT9M111_SEL_CONTEXT_B (1 << 3)
@@ -244,7 +248,12 @@ static const unsigned char init_mt9m111[][4] =
{SENSOR, MT9M111_SC_VBLANK_CONTEXT_B, 0x00, 0x11}, /* 17 */
{SENSOR, MT9M111_SC_HBLANK_CONTEXT_A, 0x01, 0x60}, /* 352 */
{SENSOR, MT9M111_SC_VBLANK_CONTEXT_A, 0x00, 0x11}, /* 17 */
- {SENSOR, MT9M111_SC_R_MODE_CONTEXT_B, 0x01, 0x0f}, /* 271 */
+ {SENSOR, MT9M111_SC_R_MODE_CONTEXT_B,
+ MT9M111_RMB_OVER_SIZED,
+ MT9M111_RMB_MIRROR_ROWS |
+ MT9M111_RMB_MIRROR_COLS |
+ MT9M111_RMB_ROW_SKIP_2X |
+ MT9M111_RMB_COLUMN_SKIP_2X},
{SENSOR, MT9M111_SC_R_MODE_CONTEXT_A, 0x01, 0x0f}, /* 271 */
{SENSOR, 0x30, 0x04, 0x00},
/* Set number of blank rows chosen to 400 */