ioctl VIDIOC_QUERY_DV_TIMINGS
&manvol;
VIDIOC_QUERY_DV_TIMINGSSense the DV preset received by the current
inputint ioctlint fdint requeststruct v4l2_dv_timings *argpArgumentsfd&fd;requestVIDIOC_QUERY_DV_TIMINGSargpDescriptionExperimentalThis is an experimental
interface and may change in the future.The hardware may be able to detect the current DV timings
automatically, similar to sensing the video standard. To do so, applications
call VIDIOC_QUERY_DV_TIMINGS with a pointer to a
&v4l2-dv-timings;. Once the hardware detects the timings, it will fill in the
timings structure.
If the timings could not be detected because there was no signal, then
ENOLINK is returned. If a signal was detected, but
it was unstable and the receiver could not lock to the signal, then
ENOLCK is returned. If the receiver could lock to the signal,
but the format is unsupported (e.g. because the pixelclock is out of range
of the hardware capabilities), then the driver fills in whatever timings it
could find and returns ERANGE. In that case the application
can call &VIDIOC-DV-TIMINGS-CAP; to compare the found timings with the hardware's
capabilities in order to give more precise feedback to the user.
&return-value;
ENODATADigital video timings are not supported for this input or output.ENOLINKNo timings could be detected because no signal was found.
ENOLCKThe signal was unstable and the hardware could not lock on to it.
ERANGETimings were found, but they are out of range of the hardware
capabilities.