提交 5b79da06 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

media: v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE

Drop the deprecated _ACTIVE part.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 fbe57dde
......@@ -2214,9 +2214,9 @@ static int v4l_g_crop(const struct v4l2_ioctl_ops *ops,
/* crop means compose for output devices */
if (V4L2_TYPE_IS_OUTPUT(p->type))
s.target = V4L2_SEL_TGT_COMPOSE_ACTIVE;
s.target = V4L2_SEL_TGT_COMPOSE;
else
s.target = V4L2_SEL_TGT_CROP_ACTIVE;
s.target = V4L2_SEL_TGT_CROP;
ret = v4l_g_selection(ops, file, fh, &s);
......@@ -2241,9 +2241,9 @@ static int v4l_s_crop(const struct v4l2_ioctl_ops *ops,
/* crop means compose for output devices */
if (V4L2_TYPE_IS_OUTPUT(p->type))
s.target = V4L2_SEL_TGT_COMPOSE_ACTIVE;
s.target = V4L2_SEL_TGT_COMPOSE;
else
s.target = V4L2_SEL_TGT_CROP_ACTIVE;
s.target = V4L2_SEL_TGT_CROP;
return v4l_s_selection(ops, file, fh, &s);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册