mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
d4a6a9537b
commit
173f6eacc8
7 changed files with 127 additions and 39 deletions
|
|
@ -1268,25 +1268,28 @@ int v4l2_s_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
|
|||
* :ref:`VIDIOC_G_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl
|
||||
*
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @vdev: pointer to &struct video_device
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct video_device *vdev,
|
||||
struct media_device *mdev, struct v4l2_ext_controls *c);
|
||||
|
||||
/**
|
||||
* v4l2_try_ext_ctrls - Helper function to implement
|
||||
* :ref:`VIDIOC_TRY_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl
|
||||
*
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @vdev: pointer to &struct video_device
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_try_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
struct video_device *vdev,
|
||||
struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
|
||||
|
|
@ -1296,12 +1299,14 @@ int v4l2_try_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
|||
*
|
||||
* @fh: pointer to &struct v4l2_fh
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @vdev: pointer to &struct video_device
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_s_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
|
||||
struct video_device *vdev,
|
||||
struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
|
||||
|
|
|
|||
|
|
@ -602,6 +602,8 @@ struct v4l2_ioctl_ops {
|
|||
#define V4L2_DEV_DEBUG_STREAMING 0x08
|
||||
/* Log poll() */
|
||||
#define V4L2_DEV_DEBUG_POLL 0x10
|
||||
/* Log controls */
|
||||
#define V4L2_DEV_DEBUG_CTRL 0x20
|
||||
|
||||
/* Video standard functions */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue