mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
V4L/DVB (11471): gspca - m5602-mt9m111: Remove more redundant init
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
b154044a02
commit
d9cb33bd97
@ -181,22 +181,6 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_CLK_DIV, 0x0a, 0x00},
|
||||
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x05},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x29},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{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},
|
||||
{SENSOR, MT9M111_CP_LUMA_OFFSET, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_CP_LUMA_CLIP, 0xff, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_A, 0x14, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_B, 0x14, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xcd, 0x00},
|
||||
|
||||
{SENSOR, 0xcd, 0x00, 0x0e},
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xd0, 0x00},
|
||||
{SENSOR, 0xd0, 0x00, 0x40},
|
||||
@ -292,21 +276,6 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_CLK_DIV, 0x0a, 0x00},
|
||||
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x05},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x29},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{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},
|
||||
{SENSOR, MT9M111_CP_LUMA_OFFSET, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_CP_LUMA_CLIP, 0xff, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_A, 0x14, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_B, 0x14, 0x00},
|
||||
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xcd, 0x00},
|
||||
{SENSOR, 0xcd, 0x00, 0x0e},
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xd0, 0x00},
|
||||
@ -410,14 +379,6 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x29},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{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},
|
||||
{SENSOR, MT9M111_CP_LUMA_OFFSET, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_CP_LUMA_CLIP, 0xff, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_A, 0x14, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_B, 0x14, 0x00},
|
||||
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xcd, 0x00},
|
||||
{SENSOR, 0xcd, 0x00, 0x0e},
|
||||
@ -547,16 +508,6 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0x0d, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_CTRL, 0x1a, 0x00},
|
||||
|
||||
{SENSOR, MT9M111_SC_RESET, 0x00, 0x08},
|
||||
{SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01},
|
||||
{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},
|
||||
{SENSOR, MT9M111_CP_LUMA_OFFSET, 0x00, 0x00},
|
||||
{SENSOR, MT9M111_CP_LUMA_CLIP, 0xff, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_A, 0x14, 0x00},
|
||||
{SENSOR, MT9M111_CP_OUTPUT_FORMAT_CTL2_CONTEXT_B, 0x14, 0x00},
|
||||
|
||||
{BRIDGE, M5602_XB_I2C_DEV_ADDR, 0xba, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0xcd, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_CTRL, 0x1a, 0x00},
|
||||
@ -696,6 +647,7 @@ static const unsigned char init_mt9m111[][4] =
|
||||
{BRIDGE, M5602_XB_I2C_DEV_ADDR, 0xba, 0x00},
|
||||
{BRIDGE, M5602_XB_I2C_REG_ADDR, 0x0d, 0x00},
|
||||
{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,
|
||||
|
Loading…
Reference in New Issue
Block a user