Lines Matching refs:shutter
937 static unsigned int cap = 0, shutter = 0x04e2; in gc2155_aec_ctrl() local
960 shutter = (value << 8); in gc2155_aec_ctrl()
963 shutter |= (value & 0xff); in gc2155_aec_ctrl()
965 __func__, __LINE__, shutter); in gc2155_aec_ctrl()
966 shutter = shutter * capture_lines / preview_lines; in gc2155_aec_ctrl()
967 shutter = shutter * capture_fps / preview_fps; in gc2155_aec_ctrl()
969 if (shutter > lines_10ms) { in gc2155_aec_ctrl()
970 shutter = shutter + lines_10ms / 2; in gc2155_aec_ctrl()
971 shutter /= lines_10ms; in gc2155_aec_ctrl()
972 shutter *= lines_10ms; in gc2155_aec_ctrl()
974 if (shutter < 1) in gc2155_aec_ctrl()
975 shutter = 0x276; in gc2155_aec_ctrl()
977 __func__, __LINE__, lines_10ms, shutter); in gc2155_aec_ctrl()
979 ret |= gc2155_write_reg(client, 0x03, ((shutter >> 8) & 0x1f)); in gc2155_aec_ctrl()
980 ret |= gc2155_write_reg(client, 0x04, (shutter & 0xff)); in gc2155_aec_ctrl()