|
|
@@ -159,10 +159,10 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
|
|
|
#define REG_GFIX 0x69 /* Fix gain control */
|
|
|
|
|
|
#define REG_DBLV 0x6b /* PLL control an debugging */
|
|
|
-#define DBLV_BYPASS 0x00 /* Bypass PLL */
|
|
|
-#define DBLV_X4 0x01 /* clock x4 */
|
|
|
-#define DBLV_X6 0x10 /* clock x6 */
|
|
|
-#define DBLV_X8 0x11 /* clock x8 */
|
|
|
+#define DBLV_BYPASS 0x0a /* Bypass PLL */
|
|
|
+#define DBLV_X4 0x4a /* clock x4 */
|
|
|
+#define DBLV_X6 0x8a /* clock x6 */
|
|
|
+#define DBLV_X8 0xca /* clock x8 */
|
|
|
|
|
|
#define REG_SCALING_XSC 0x70 /* Test pattern and horizontal scale factor */
|
|
|
#define TEST_PATTTERN_0 0x80
|
|
|
@@ -862,7 +862,7 @@ static int ov7675_set_framerate(struct v4l2_subdev *sd,
|
|
|
if (ret < 0)
|
|
|
return ret;
|
|
|
|
|
|
- return ov7670_write(sd, REG_DBLV, DBLV_X4);
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
static void ov7670_get_framerate_legacy(struct v4l2_subdev *sd,
|
|
|
@@ -1797,11 +1797,7 @@ static int ov7670_probe(struct i2c_client *client,
|
|
|
if (config->clock_speed)
|
|
|
info->clock_speed = config->clock_speed;
|
|
|
|
|
|
- /*
|
|
|
- * It should be allowed for ov7670 too when it is migrated to
|
|
|
- * the new frame rate formula.
|
|
|
- */
|
|
|
- if (config->pll_bypass && id->driver_data != MODEL_OV7670)
|
|
|
+ if (config->pll_bypass)
|
|
|
info->pll_bypass = true;
|
|
|
|
|
|
if (config->pclk_hb_disable)
|