Name

VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET — Query or select the DV preset of the current input or output

Synopsis

int ioctl(int fd,
 int request,
 struct v4l2_dv_preset *argp);
 

Arguments

fd

File descriptor returned by open().

request

VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET

argp

Description

These ioctls are deprecated. New drivers and applications should use VIDIOC_G_DV_TIMINGS and VIDIOC_S_DV_TIMINGS instead.

To query and select the current DV preset, applications use the VIDIOC_G_DV_PRESET and VIDIOC_S_DV_PRESET ioctls which take a pointer to a struct v4l2_dv_preset type as argument. Applications must zero the reserved array in struct v4l2_dv_preset. VIDIOC_G_DV_PRESET returns a dv preset in the field preset of struct v4l2_dv_preset.

VIDIOC_S_DV_PRESET accepts a pointer to a struct v4l2_dv_preset that has the preset value to be set. Applications must zero the reserved array in struct v4l2_dv_preset. If the preset is not supported, it returns an EINVAL error code

Return Value

On success 0 is returned, on error -1 and the errno variable is set appropriately. The generic error codes are described at the Generic Error Codes chapter.

EINVAL

This ioctl is not supported, or the VIDIOC_S_DV_PRESET,VIDIOC_S_DV_PRESET parameter was unsuitable.

ENODATA

Digital video presets are not supported for this input or output.

EBUSY

The device is busy and therefore can not change the preset.

Table A.56. struct v4l2_dv_preset

__u32presetPreset value to represent the digital video timings
__u32reserved[4]Reserved fields for future use