ioctl VIDIOC_ENUM_FREQ_BANDS
Name #
VIDIOC_ENUM_FREQ_BANDS - Enumerate supported frequency bands
Synopsis #
int ioctl(int fd, VIDIOC_ENUM_FREQ_BANDS, struct v4l2_frequency_band *argp)
Arguments #
-
fdFile descriptor returned by
open(). -
argpPointer to struct
v4l2_frequency_band.
Description #
Enumerates the frequency bands that a tuner or modulator supports. To do this applications initialize the tuner, type and index fields, and zero out the reserved array of a struct v4l2_frequency_band and call the ioctl VIDIOC_ENUM_FREQ_BANDS ioctl with a pointer to this structure.
This ioctl is supported if the V4L2_TUNER_CAP_FREQ_BANDS capability of the corresponding tuner/modulator is set.
v4l2_frequency_band
|
__u32 |
|
The tuner or modulator index number. This is the same value as in the struct |
||
|
__u32 |
|
The tuner type. This is the same value as in the struct |
||
|
__u32 |
|
Identifies the frequency band, set by the application. |
||
|
__u32 |
|
The tuner/modulator capability flags for this frequency band, see tuner-capability. The |
||
|
__u32 |
|
The lowest tunable frequency in units of 62.5 kHz, or if the |
||
|
__u32 |
|
The highest tunable frequency in units of 62.5 kHz, or if the |
||
|
__u32 |
|
The supported modulation systems of this frequency band. See band-modulation. |
||
|
__u32 |
|
Reserved for future extensions. Applications and drivers must set the array to zero. |
||
|
|
0x02 |
Vestigial Sideband modulation, used for analog TV. |
|
|
0x04 |
Frequency Modulation, commonly used for analog radio. |
|
|
0x08 |
Amplitude Modulation, commonly used for analog radio. |
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
The
tunerorindexis out of bounds or thetypefield is wrong.