msm: sde: disable support for v4l2 event subscription
V4l2 event subscription is not used by rotator, and default implementation on 4.9 is causing failure during file release. Disable v4l2 event subscription for rotator to avoid invalid file release. Change-Id: I486f2eba7112852a1c818efeeb86033f17139b33 Signed-off-by: Alan Kwong <akwong@codeaurora.org>
This commit is contained in:
parent
ce488494ce
commit
e3f7d2ac8a
1 changed files with 14 additions and 2 deletions
|
@ -2009,6 +2009,18 @@ ioctl32_error:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static int sde_rotator_ctrl_subscribe_event(struct v4l2_fh *fh,
|
||||||
|
const struct v4l2_event_subscription *sub)
|
||||||
|
{
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int sde_rotator_event_unsubscribe(struct v4l2_fh *fh,
|
||||||
|
const struct v4l2_event_subscription *sub)
|
||||||
|
{
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* V4l2 ioctl handlers */
|
/* V4l2 ioctl handlers */
|
||||||
static const struct v4l2_ioctl_ops sde_rotator_ioctl_ops = {
|
static const struct v4l2_ioctl_ops sde_rotator_ioctl_ops = {
|
||||||
.vidioc_querycap = sde_rotator_querycap,
|
.vidioc_querycap = sde_rotator_querycap,
|
||||||
|
@ -2033,8 +2045,8 @@ static const struct v4l2_ioctl_ops sde_rotator_ioctl_ops = {
|
||||||
.vidioc_s_parm = sde_rotator_s_parm,
|
.vidioc_s_parm = sde_rotator_s_parm,
|
||||||
.vidioc_default = sde_rotator_private_ioctl,
|
.vidioc_default = sde_rotator_private_ioctl,
|
||||||
.vidioc_log_status = v4l2_ctrl_log_status,
|
.vidioc_log_status = v4l2_ctrl_log_status,
|
||||||
.vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
|
.vidioc_subscribe_event = sde_rotator_ctrl_subscribe_event,
|
||||||
.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
|
.vidioc_unsubscribe_event = sde_rotator_event_unsubscribe,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue