vivid: move video loopback control to the capture device
Subsystems (2)
PATCH 1/1 vivid: move video loopback control to the capture device
This has been on my TODO list for some time now: the control that enables the video loopback was part of the controls of the video output device instead of the video capture device. In practice this was quite annoying since you expect it at the capture side since that's where you want to make the decision whether to use the TPG or looped video.
This patch moves the control from the output to the capture side.
Signed-off-by Hans Verkuil <[email protected]>
Documentation/video4linux/vivid.txt +1 -1
@@ -888,7 +888,7 @@ Section 10.1: Video and Sliced VBI looping The way to enable video/VBI looping is currently fairly crude. A 'Loop Video' control is available in the "Vivid" control class of the video -output and VBI output devices. When checked the video looping will be enabled. +capture and VBI capture devices. When checked the video looping will be enabled. Once enabled any video S-Video or HDMI input will show a static test pattern until the video output has started. At that time the video output will be looped to the video input provided that:
drivers/media/platform/vivid/vivid-core.h +1 -1
@@ -139,7 +139,7 @@ struct vivid_dev {struct v4l2_ctrl_handler ctrl_hdl_user_aud;struct v4l2_ctrl_handler ctrl_hdl_streaming;struct v4l2_ctrl_handler ctrl_hdl_sdtv_cap; -struct v4l2_ctrl_handler ctrl_hdl_loop_out; +struct v4l2_ctrl_handler ctrl_hdl_loop_cap;struct video_device vid_cap_dev;struct v4l2_ctrl_handler ctrl_hdl_vid_cap;struct video_device vid_out_dev;
drivers/media/platform/vivid/vivid-ctrls.c +40 -41
145 lines not on this page · raw message