|
@@ -1249,7 +1249,8 @@ static int s5p_jpeg_controls_create(struct s5p_jpeg_ctx *ctx)
|
|
|
v4l2_ctrl_new_std(&ctx->ctrl_handler, &s5p_jpeg_ctrl_ops,
|
|
|
V4L2_CID_JPEG_RESTART_INTERVAL,
|
|
|
0, 3, 0xffff, 0);
|
|
|
- mask = ~0x06; /* 422, 420 */
|
|
|
+ if (ctx->jpeg->variant->version == SJPEG_S5P)
|
|
|
+ mask = ~0x06; /* 422, 420 */
|
|
|
}
|
|
|
|
|
|
ctrl = v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &s5p_jpeg_ctrl_ops,
|