media: spi: rk1608: skip write aec ioctl before stream on

Change-Id: I421369296f766446ddbeb87f3d43d3bcb5a0087d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
Hu Kejun
2019-04-28 15:51:38 +08:00
committed by Tao Huang
parent 27dccde04d
commit ec14720445

View File

@@ -1015,6 +1015,11 @@ static long rk1608_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
pdata->hdrae_exp.short_gain_reg == hdrae_exp->short_gain_reg)
break;
if (!pdata->sensor_cnt) {
dev_info(pdata->dev, "set Aec before stream on");
break;
}
pdata->hdrae_exp = *hdrae_exp;
/* hdr exposure start */