media: v4l: ctrls: Add debug messages
Currently, the v4l2 control code is a bit silent on errors. Add debug messages on (hopefully) most of the error paths. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
d4a6a9537b
commit
173f6eacc8
@@ -372,19 +372,19 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
|
||||
if (!vfh->ctrl_handler)
|
||||
return -ENOTTY;
|
||||
return v4l2_g_ext_ctrls(vfh->ctrl_handler,
|
||||
sd->v4l2_dev->mdev, arg);
|
||||
vdev, sd->v4l2_dev->mdev, arg);
|
||||
|
||||
case VIDIOC_S_EXT_CTRLS:
|
||||
if (!vfh->ctrl_handler)
|
||||
return -ENOTTY;
|
||||
return v4l2_s_ext_ctrls(vfh, vfh->ctrl_handler,
|
||||
sd->v4l2_dev->mdev, arg);
|
||||
vdev, sd->v4l2_dev->mdev, arg);
|
||||
|
||||
case VIDIOC_TRY_EXT_CTRLS:
|
||||
if (!vfh->ctrl_handler)
|
||||
return -ENOTTY;
|
||||
return v4l2_try_ext_ctrls(vfh->ctrl_handler,
|
||||
sd->v4l2_dev->mdev, arg);
|
||||
vdev, sd->v4l2_dev->mdev, arg);
|
||||
|
||||
case VIDIOC_DQEVENT:
|
||||
if (!(sd->flags & V4L2_SUBDEV_FL_HAS_EVENTS))
|
||||
|
||||
Reference in New Issue
Block a user