~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/userspace-api/media/v4l/vidioc-enum-freq-bands.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/userspace-api/media/v4l/vidioc-enum-freq-bands.rst (Architecture i386) and /Documentation/userspace-api/media/v4l/vidioc-enum-freq-bands.rst (Architecture sparc64)


  1 .. SPDX-License-Identifier: GFDL-1.1-no-invari      1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2 .. c:namespace:: V4L                                2 .. c:namespace:: V4L
  3                                                     3 
  4 .. _VIDIOC_ENUM_FREQ_BANDS:                         4 .. _VIDIOC_ENUM_FREQ_BANDS:
  5                                                     5 
  6 ****************************                        6 ****************************
  7 ioctl VIDIOC_ENUM_FREQ_BANDS                        7 ioctl VIDIOC_ENUM_FREQ_BANDS
  8 ****************************                        8 ****************************
  9                                                     9 
 10 Name                                               10 Name
 11 ====                                               11 ====
 12                                                    12 
 13 VIDIOC_ENUM_FREQ_BANDS - Enumerate supported f     13 VIDIOC_ENUM_FREQ_BANDS - Enumerate supported frequency bands
 14                                                    14 
 15 Synopsis                                           15 Synopsis
 16 ========                                           16 ========
 17                                                    17 
 18 .. c:macro:: VIDIOC_ENUM_FREQ_BANDS                18 .. c:macro:: VIDIOC_ENUM_FREQ_BANDS
 19                                                    19 
 20 ``int ioctl(int fd, VIDIOC_ENUM_FREQ_BANDS, st     20 ``int ioctl(int fd, VIDIOC_ENUM_FREQ_BANDS, struct v4l2_frequency_band *argp)``
 21                                                    21 
 22 Arguments                                          22 Arguments
 23 =========                                          23 =========
 24                                                    24 
 25 ``fd``                                             25 ``fd``
 26     File descriptor returned by :c:func:`open(     26     File descriptor returned by :c:func:`open()`.
 27                                                    27 
 28 ``argp``                                           28 ``argp``
 29     Pointer to struct :c:type:`v4l2_frequency_     29     Pointer to struct :c:type:`v4l2_frequency_band`.
 30                                                    30 
 31 Description                                        31 Description
 32 ===========                                        32 ===========
 33                                                    33 
 34 Enumerates the frequency bands that a tuner or     34 Enumerates the frequency bands that a tuner or modulator supports. To do
 35 this applications initialize the ``tuner``, ``     35 this applications initialize the ``tuner``, ``type`` and ``index``
 36 fields, and zero out the ``reserved`` array of     36 fields, and zero out the ``reserved`` array of a struct
 37 :c:type:`v4l2_frequency_band` and call the         37 :c:type:`v4l2_frequency_band` and call the
 38 :ref:`VIDIOC_ENUM_FREQ_BANDS` ioctl with a poi     38 :ref:`VIDIOC_ENUM_FREQ_BANDS` ioctl with a pointer to this structure.
 39                                                    39 
 40 This ioctl is supported if the ``V4L2_TUNER_CA     40 This ioctl is supported if the ``V4L2_TUNER_CAP_FREQ_BANDS`` capability
 41 of the corresponding tuner/modulator is set.       41 of the corresponding tuner/modulator is set.
 42                                                    42 
 43 .. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm     43 .. tabularcolumns:: |p{2.9cm}|p{2.9cm}|p{5.8cm}|p{2.9cm}|p{2.4cm}|
 44                                                    44 
 45 .. c:type:: v4l2_frequency_band                    45 .. c:type:: v4l2_frequency_band
 46                                                    46 
 47 .. flat-table:: struct v4l2_frequency_band         47 .. flat-table:: struct v4l2_frequency_band
 48     :header-rows:  0                               48     :header-rows:  0
 49     :stub-columns: 0                               49     :stub-columns: 0
 50     :widths:       1 1 2 1 1                       50     :widths:       1 1 2 1 1
 51                                                    51 
 52     * - __u32                                      52     * - __u32
 53       - ``tuner``                                  53       - ``tuner``
 54       - The tuner or modulator index number. T     54       - The tuner or modulator index number. This is the same value as in
 55         the struct :c:type:`v4l2_input` ``tune     55         the struct :c:type:`v4l2_input` ``tuner`` field and
 56         the struct :c:type:`v4l2_tuner` ``inde     56         the struct :c:type:`v4l2_tuner` ``index`` field, or
 57         the struct :c:type:`v4l2_output` ``mod     57         the struct :c:type:`v4l2_output` ``modulator`` field
 58         and the struct :c:type:`v4l2_modulator     58         and the struct :c:type:`v4l2_modulator` ``index``
 59         field.                                     59         field.
 60     * - __u32                                      60     * - __u32
 61       - ``type``                                   61       - ``type``
 62       - The tuner type. This is the same value     62       - The tuner type. This is the same value as in the struct
 63         :c:type:`v4l2_tuner` ``type`` field. T     63         :c:type:`v4l2_tuner` ``type`` field. The type must be
 64         set to ``V4L2_TUNER_RADIO`` for ``/dev     64         set to ``V4L2_TUNER_RADIO`` for ``/dev/radioX`` device nodes, and
 65         to ``V4L2_TUNER_ANALOG_TV`` for all ot     65         to ``V4L2_TUNER_ANALOG_TV`` for all others. Set this field to
 66         ``V4L2_TUNER_RADIO`` for modulators (c     66         ``V4L2_TUNER_RADIO`` for modulators (currently only radio
 67         modulators are supported). See :c:type     67         modulators are supported). See :c:type:`v4l2_tuner_type`
 68     * - __u32                                      68     * - __u32
 69       - ``index``                                  69       - ``index``
 70       - Identifies the frequency band, set by      70       - Identifies the frequency band, set by the application.
 71     * - __u32                                      71     * - __u32
 72       - ``capability``                             72       - ``capability``
 73       - :cspan:`2` The tuner/modulator capabil     73       - :cspan:`2` The tuner/modulator capability flags for this
 74         frequency band, see :ref:`tuner-capabi     74         frequency band, see :ref:`tuner-capability`. The
 75         ``V4L2_TUNER_CAP_LOW`` or ``V4L2_TUNER     75         ``V4L2_TUNER_CAP_LOW`` or ``V4L2_TUNER_CAP_1HZ`` capability must
 76         be the same for all frequency bands of     76         be the same for all frequency bands of the selected
 77         tuner/modulator. So either all bands h     77         tuner/modulator. So either all bands have that capability set, or
 78         none of them have that capability.         78         none of them have that capability.
 79     * - __u32                                      79     * - __u32
 80       - ``rangelow``                               80       - ``rangelow``
 81       - :cspan:`2` The lowest tunable frequenc     81       - :cspan:`2` The lowest tunable frequency in units of 62.5 kHz, or
 82         if the ``capability`` flag ``V4L2_TUNE     82         if the ``capability`` flag ``V4L2_TUNER_CAP_LOW`` is set, in units
 83         of 62.5 Hz, for this frequency band. A     83         of 62.5 Hz, for this frequency band. A 1 Hz unit is used when the
 84         ``capability`` flag ``V4L2_TUNER_CAP_1     84         ``capability`` flag ``V4L2_TUNER_CAP_1HZ`` is set.
 85     * - __u32                                      85     * - __u32
 86       - ``rangehigh``                              86       - ``rangehigh``
 87       - :cspan:`2` The highest tunable frequen     87       - :cspan:`2` The highest tunable frequency in units of 62.5 kHz,
 88         or if the ``capability`` flag ``V4L2_T     88         or if the ``capability`` flag ``V4L2_TUNER_CAP_LOW`` is set, in
 89         units of 62.5 Hz, for this frequency b     89         units of 62.5 Hz, for this frequency band. A 1 Hz unit is used
 90         when the ``capability`` flag ``V4L2_TU     90         when the ``capability`` flag ``V4L2_TUNER_CAP_1HZ`` is set.
 91     * - __u32                                      91     * - __u32
 92       - ``modulation``                             92       - ``modulation``
 93       - :cspan:`2` The supported modulation sy     93       - :cspan:`2` The supported modulation systems of this frequency
 94         band. See :ref:`band-modulation`.          94         band. See :ref:`band-modulation`.
 95                                                    95 
 96         .. note::                                  96         .. note::
 97                                                    97 
 98            Currently only one modulation syste     98            Currently only one modulation system per frequency band
 99            is supported. More work will need t     99            is supported. More work will need to be done if multiple
100            modulation systems are possible. Co    100            modulation systems are possible. Contact the linux-media
101            mailing list                           101            mailing list
102            (`https://linuxtv.org/lists.php <ht    102            (`https://linuxtv.org/lists.php <https://linuxtv.org/lists.php>`__)
103            if you need such functionality.        103            if you need such functionality.
104     * - __u32                                     104     * - __u32
105       - ``reserved``\ [9]                         105       - ``reserved``\ [9]
106       - Reserved for future extensions.           106       - Reserved for future extensions.
107                                                   107 
108         Applications and drivers must set the     108         Applications and drivers must set the array to zero.
109                                                   109 
110                                                   110 
111 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.5cm    111 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.5cm}|
112                                                   112 
113 .. _band-modulation:                              113 .. _band-modulation:
114                                                   114 
115 .. flat-table:: Band Modulation Systems           115 .. flat-table:: Band Modulation Systems
116     :header-rows:  0                              116     :header-rows:  0
117     :stub-columns: 0                              117     :stub-columns: 0
118     :widths:       3 1 4                          118     :widths:       3 1 4
119                                                   119 
120     * - ``V4L2_BAND_MODULATION_VSB``              120     * - ``V4L2_BAND_MODULATION_VSB``
121       - 0x02                                      121       - 0x02
122       - Vestigial Sideband modulation, used fo    122       - Vestigial Sideband modulation, used for analog TV.
123     * - ``V4L2_BAND_MODULATION_FM``               123     * - ``V4L2_BAND_MODULATION_FM``
124       - 0x04                                      124       - 0x04
125       - Frequency Modulation, commonly used fo    125       - Frequency Modulation, commonly used for analog radio.
126     * - ``V4L2_BAND_MODULATION_AM``               126     * - ``V4L2_BAND_MODULATION_AM``
127       - 0x08                                      127       - 0x08
128       - Amplitude Modulation, commonly used fo    128       - Amplitude Modulation, commonly used for analog radio.
129                                                   129 
130 Return Value                                      130 Return Value
131 ============                                      131 ============
132                                                   132 
133 On success 0 is returned, on error -1 and the     133 On success 0 is returned, on error -1 and the ``errno`` variable is set
134 appropriately. The generic error codes are des    134 appropriately. The generic error codes are described at the
135 :ref:`Generic Error Codes <gen-errors>` chapte    135 :ref:`Generic Error Codes <gen-errors>` chapter.
136                                                   136 
137 EINVAL                                            137 EINVAL
138     The ``tuner`` or ``index`` is out of bound    138     The ``tuner`` or ``index`` is out of bounds or the ``type`` field is
139     wrong.                                        139     wrong.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php