18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci.. _rf-tuner-controls:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci**************************
68c2ecf20Sopenharmony_ciRF Tuner Control Reference
78c2ecf20Sopenharmony_ci**************************
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciThe RF Tuner (RF_TUNER) class includes controls for common features of
108c2ecf20Sopenharmony_cidevices having RF tuner.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciIn this context, RF tuner is radio receiver circuit between antenna and
138c2ecf20Sopenharmony_cidemodulator. It receives radio frequency (RF) from the antenna and
148c2ecf20Sopenharmony_ciconverts that received signal to lower intermediate frequency (IF) or
158c2ecf20Sopenharmony_cibaseband frequency (BB). Tuners that could do baseband output are often
168c2ecf20Sopenharmony_cicalled Zero-IF tuners. Older tuners were typically simple PLL tuners
178c2ecf20Sopenharmony_ciinside a metal box, while newer ones are highly integrated chips
188c2ecf20Sopenharmony_ciwithout a metal box "silicon tuners". These controls are mostly
198c2ecf20Sopenharmony_ciapplicable for new feature rich silicon tuners, just because older
208c2ecf20Sopenharmony_cituners does not have much adjustable features.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciFor more information about RF tuners see
238c2ecf20Sopenharmony_ci`Tuner (radio) <http://en.wikipedia.org/wiki/Tuner_%28radio%29>`__
248c2ecf20Sopenharmony_ciand `RF front end <http://en.wikipedia.org/wiki/RF_front_end>`__
258c2ecf20Sopenharmony_cifrom Wikipedia.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci.. _rf-tuner-control-id:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciRF_TUNER Control IDs
318c2ecf20Sopenharmony_ci====================
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_CLASS (class)``
348c2ecf20Sopenharmony_ci    The RF_TUNER class descriptor. Calling
358c2ecf20Sopenharmony_ci    :ref:`VIDIOC_QUERYCTRL` for this control will
368c2ecf20Sopenharmony_ci    return a description of this control class.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_BANDWIDTH_AUTO (boolean)``
398c2ecf20Sopenharmony_ci    Enables/disables tuner radio channel bandwidth configuration. In
408c2ecf20Sopenharmony_ci    automatic mode bandwidth configuration is performed by the driver.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_BANDWIDTH (integer)``
438c2ecf20Sopenharmony_ci    Filter(s) on tuner signal path are used to filter signal according
448c2ecf20Sopenharmony_ci    to receiving party needs. Driver configures filters to fulfill
458c2ecf20Sopenharmony_ci    desired bandwidth requirement. Used when
468c2ecf20Sopenharmony_ci    V4L2_CID_RF_TUNER_BANDWIDTH_AUTO is not set. Unit is in Hz. The
478c2ecf20Sopenharmony_ci    range and step are driver-specific.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_LNA_GAIN_AUTO (boolean)``
508c2ecf20Sopenharmony_ci    Enables/disables LNA automatic gain control (AGC)
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO (boolean)``
538c2ecf20Sopenharmony_ci    Enables/disables mixer automatic gain control (AGC)
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_IF_GAIN_AUTO (boolean)``
568c2ecf20Sopenharmony_ci    Enables/disables IF automatic gain control (AGC)
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_RF_GAIN (integer)``
598c2ecf20Sopenharmony_ci    The RF amplifier is the very first amplifier on the receiver signal
608c2ecf20Sopenharmony_ci    path, just right after the antenna input. The difference between the
618c2ecf20Sopenharmony_ci    LNA gain and the RF gain in this document is that the LNA gain is
628c2ecf20Sopenharmony_ci    integrated in the tuner chip while the RF gain is a separate chip.
638c2ecf20Sopenharmony_ci    There may be both RF and LNA gain controls in the same device. The
648c2ecf20Sopenharmony_ci    range and step are driver-specific.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_LNA_GAIN (integer)``
678c2ecf20Sopenharmony_ci    LNA (low noise amplifier) gain is first gain stage on the RF tuner
688c2ecf20Sopenharmony_ci    signal path. It is located very close to tuner antenna input. Used
698c2ecf20Sopenharmony_ci    when ``V4L2_CID_RF_TUNER_LNA_GAIN_AUTO`` is not set. See
708c2ecf20Sopenharmony_ci    ``V4L2_CID_RF_TUNER_RF_GAIN`` to understand how RF gain and LNA gain
718c2ecf20Sopenharmony_ci    differs from the each others. The range and step are
728c2ecf20Sopenharmony_ci    driver-specific.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_MIXER_GAIN (integer)``
758c2ecf20Sopenharmony_ci    Mixer gain is second gain stage on the RF tuner signal path. It is
768c2ecf20Sopenharmony_ci    located inside mixer block, where RF signal is down-converted by the
778c2ecf20Sopenharmony_ci    mixer. Used when ``V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO`` is not set.
788c2ecf20Sopenharmony_ci    The range and step are driver-specific.
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_IF_GAIN (integer)``
818c2ecf20Sopenharmony_ci    IF gain is last gain stage on the RF tuner signal path. It is
828c2ecf20Sopenharmony_ci    located on output of RF tuner. It controls signal level of
838c2ecf20Sopenharmony_ci    intermediate frequency output or baseband output. Used when
848c2ecf20Sopenharmony_ci    ``V4L2_CID_RF_TUNER_IF_GAIN_AUTO`` is not set. The range and step
858c2ecf20Sopenharmony_ci    are driver-specific.
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci``V4L2_CID_RF_TUNER_PLL_LOCK (boolean)``
888c2ecf20Sopenharmony_ci    Is synthesizer PLL locked? RF tuner is receiving given frequency
898c2ecf20Sopenharmony_ci    when that control is set. This is a read-only control.
90