mirror of https://gitee.com/openkylin/linux.git
V4L/DVB (11469): gspca - m5602-mt9m111: More redundant init cleanup
Signed-off-by: Erik Andr?n <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
60b1d3e3de
commit
320aaab872
|
@ -84,7 +84,6 @@ const static struct ctrl mt9m111_ctrls[] = {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
static void mt9m111_dump_registers(struct sd *sd);
|
||||
|
||||
int mt9m111_probe(struct sd *sd)
|
||||
|
|
|
@ -74,6 +74,8 @@
|
|||
#define MT9M111_COLORPIPE 0x01
|
||||
#define MT9M111_CAMERA_CONTROL 0x02
|
||||
|
||||
#define MT9M111_COLOR_MATRIX_BYPASS (1 << 4)
|
||||
|
||||
#define INITIAL_MAX_GAIN 64
|
||||
#define DEFAULT_GAIN 283
|
||||
|
||||
|
@ -186,7 +188,6 @@ static const unsigned char init_mt9m111[][4] =
|
|||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00, 0x10},
|
||||
{SENSOR, MT9M111_CP_LENS_CORRECTION_1, 0x04, 0x2a},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_A, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_B, 0x00, 0x01},
|
||||
|
@ -298,7 +299,6 @@ static const unsigned char init_mt9m111[][4] =
|
|||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00, 0x10},
|
||||
{SENSOR, MT9M111_CP_LENS_CORRECTION_1, 0x04, 0x2a},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_A, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_B, 0x00, 0x01},
|
||||
|
@ -411,7 +411,6 @@ static const unsigned char init_mt9m111[][4] =
|
|||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00, 0x10},
|
||||
{SENSOR, MT9M111_CP_LENS_CORRECTION_1, 0x04, 0x2a},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_A, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_B, 0x00, 0x01},
|
||||
|
@ -550,7 +549,6 @@ static const unsigned char init_mt9m111[][4] =
|
|||
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00, 0x10},
|
||||
{SENSOR, MT9M111_CP_LENS_CORRECTION_1, 0x04, 0x2a},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_A, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_B, 0x00, 0x01},
|
||||
|
@ -700,7 +698,8 @@ static const unsigned char init_mt9m111[][4] =
|
|||
{BRIDGE, M5602_XB_I2C_CTRL, 0x1a, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00, 0x10},
|
||||
{SENSOR, MT9M111_CP_OPERATING_MODE_CTL, 0x00,
|
||||
MT9M111_CP_OPERATING_MODE_CTL},
|
||||
{SENSOR, MT9M111_CP_LENS_CORRECTION_1, 0x04, 0x2a},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_A, 0x00, 0x01},
|
||||
{SENSOR, MT9M111_CP_DEFECT_CORR_CONTEXT_B, 0x00, 0x01},
|
||||
|
@ -796,7 +795,7 @@ static const unsigned char init_mt9m111[][4] =
|
|||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x01, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0xe0, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0xe0, 0x00}, /* 480 */
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00, 0x00},
|
||||
|
|
Loading…
Reference in New Issue