projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[media] v4l: vsp1: Support runtime modification of controls
[deliverable/linux.git]
/
drivers
/
media
/
platform
/
vsp1
/
vsp1_hsit.c
diff --git
a/drivers/media/platform/vsp1/vsp1_hsit.c
b/drivers/media/platform/vsp1/vsp1_hsit.c
index 68b8567b374d8aed0f66b26b8d3ff7499fc461e4..6e5077beb38cf9a2f2d64e9436819bc691abfcd3 100644
(file)
--- a/
drivers/media/platform/vsp1/vsp1_hsit.c
+++ b/
drivers/media/platform/vsp1/vsp1_hsit.c
@@
-107,7
+107,7
@@
static int hsit_set_format(struct v4l2_subdev *subdev,
return 0;
}
return 0;
}
-static struct v4l2_subdev_pad_ops hsit_pad_ops = {
+static
const
struct v4l2_subdev_pad_ops hsit_pad_ops = {
.init_cfg = vsp1_entity_init_cfg,
.enum_mbus_code = hsit_enum_mbus_code,
.enum_frame_size = hsit_enum_frame_size,
.init_cfg = vsp1_entity_init_cfg,
.enum_mbus_code = hsit_enum_mbus_code,
.enum_frame_size = hsit_enum_frame_size,
@@
-115,7
+115,7
@@
static struct v4l2_subdev_pad_ops hsit_pad_ops = {
.set_fmt = hsit_set_format,
};
.set_fmt = hsit_set_format,
};
-static struct v4l2_subdev_ops hsit_ops = {
+static
const
struct v4l2_subdev_ops hsit_ops = {
.pad = &hsit_pad_ops,
};
.pad = &hsit_pad_ops,
};
@@
-125,10
+125,13
@@
static struct v4l2_subdev_ops hsit_ops = {
static void hsit_configure(struct vsp1_entity *entity,
struct vsp1_pipeline *pipe,
static void hsit_configure(struct vsp1_entity *entity,
struct vsp1_pipeline *pipe,
- struct vsp1_dl_list *dl)
+ struct vsp1_dl_list *dl
, bool full
)
{
struct vsp1_hsit *hsit = to_hsit(&entity->subdev);
{
struct vsp1_hsit *hsit = to_hsit(&entity->subdev);
+ if (!full)
+ return;
+
if (hsit->inverse)
vsp1_hsit_write(hsit, dl, VI6_HSI_CTRL, VI6_HSI_CTRL_EN);
else
if (hsit->inverse)
vsp1_hsit_write(hsit, dl, VI6_HSI_CTRL, VI6_HSI_CTRL_EN);
else
@@
-161,8
+164,9
@@
struct vsp1_hsit *vsp1_hsit_create(struct vsp1_device *vsp1, bool inverse)
else
hsit->entity.type = VSP1_ENTITY_HST;
else
hsit->entity.type = VSP1_ENTITY_HST;
- ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst", 2,
- &hsit_ops);
+ ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst",
+ 2, &hsit_ops,
+ MEDIA_ENT_F_PROC_VIDEO_PIXEL_ENC_CONV);
if (ret < 0)
return ERR_PTR(ret);
if (ret < 0)
return ERR_PTR(ret);
This page took
0.026059 seconds
and
5
git commands to generate.