.. | .. |
---|
574 | 574 | break; |
---|
575 | 575 | case V4L2_CID_VBLANK: |
---|
576 | 576 | vts = ctrl->val + gc2053->cur_mode->height; |
---|
577 | | - ret = gc2053_write_reg(gc2053->client, GC2053_REG_VTS_H, (vts >> 8) & 0x3f); |
---|
578 | | - ret |= gc2053_write_reg(gc2053->client, GC2053_REG_VTS_L, vts & 0xff); |
---|
579 | 577 | /* Note: In master-slave mode, Galaxycore request slave sensor frame rate bigger than master. */ |
---|
580 | 578 | if (gc2053->sync_mode == INTERNAL_MASTER_MODE) |
---|
581 | | - gc2053_write_reg(gc2053->client, GC2053_REG_VTS_L, (vts & 0xff) + 10); |
---|
| 579 | + vts += 10; |
---|
| 580 | + ret = gc2053_write_reg(gc2053->client, GC2053_REG_VTS_H, (vts >> 8) & 0x3f); |
---|
| 581 | + ret |= gc2053_write_reg(gc2053->client, GC2053_REG_VTS_L, vts & 0xff); |
---|
| 582 | + /* TBD: master and slave not sync to streaming, but except sleep 20ms below */ |
---|
| 583 | + usleep_range(20000, 50000); |
---|
582 | 584 | break; |
---|
583 | 585 | case V4L2_CID_HFLIP: |
---|
584 | 586 | if (ctrl->val) |
---|