diff --git a/drivers/media/spi/rk1608.c b/drivers/media/spi/rk1608.c index d436f2a2c8c8..8460549c565d 100644 --- a/drivers/media/spi/rk1608.c +++ b/drivers/media/spi/rk1608.c @@ -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 */