mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 13:41:55 +00:00
media: v4l2-ctrls: add support for area type logging
A 'case V4L2_CTRL_TYPE_AREA' was missing in v4l2_ctrl_type_op_log, which led to an 'unknown type' message in the kernel log. Add support for controls of this type. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
9bb1fd7edd
commit
f4a1155c62
@ -295,6 +295,9 @@ void v4l2_ctrl_type_op_log(const struct v4l2_ctrl *ctrl)
|
||||
case V4L2_CTRL_TYPE_U32:
|
||||
pr_cont("%u", (unsigned)*ptr.p_u32);
|
||||
break;
|
||||
case V4L2_CTRL_TYPE_AREA:
|
||||
pr_cont("%ux%u", ptr.p_area->width, ptr.p_area->height);
|
||||
break;
|
||||
case V4L2_CTRL_TYPE_H264_SPS:
|
||||
pr_cont("H264_SPS");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user