162306a36Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci.. _rf-tuner-controls:
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci**************************
662306a36Sopenharmony_ciRF Tuner Control Reference
762306a36Sopenharmony_ci**************************
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciThe RF Tuner (RF_TUNER) class includes controls for common features of
1062306a36Sopenharmony_cidevices having RF tuner.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciIn this context, RF tuner is radio receiver circuit between antenna and
1362306a36Sopenharmony_cidemodulator. It receives radio frequency (RF) from the antenna and
1462306a36Sopenharmony_ciconverts that received signal to lower intermediate frequency (IF) or
1562306a36Sopenharmony_cibaseband frequency (BB). Tuners that could do baseband output are often
1662306a36Sopenharmony_cicalled Zero-IF tuners. Older tuners were typically simple PLL tuners
1762306a36Sopenharmony_ciinside a metal box, while newer ones are highly integrated chips
1862306a36Sopenharmony_ciwithout a metal box "silicon tuners". These controls are mostly
1962306a36Sopenharmony_ciapplicable for new feature rich silicon tuners, just because older
2062306a36Sopenharmony_cituners does not have much adjustable features.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciFor more information about RF tuners see
2362306a36Sopenharmony_ci`Tuner (radio) <http://en.wikipedia.org/wiki/Tuner_%28radio%29>`__
2462306a36Sopenharmony_ciand `RF front end <http://en.wikipedia.org/wiki/RF_front_end>`__
2562306a36Sopenharmony_cifrom Wikipedia.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci.. _rf-tuner-control-id:
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciRF_TUNER Control IDs
3162306a36Sopenharmony_ci====================
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_CLASS (class)``
3462306a36Sopenharmony_ci    The RF_TUNER class descriptor. Calling
3562306a36Sopenharmony_ci    :ref:`VIDIOC_QUERYCTRL` for this control will
3662306a36Sopenharmony_ci    return a description of this control class.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_BANDWIDTH_AUTO (boolean)``
3962306a36Sopenharmony_ci    Enables/disables tuner radio channel bandwidth configuration. In
4062306a36Sopenharmony_ci    automatic mode bandwidth configuration is performed by the driver.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_BANDWIDTH (integer)``
4362306a36Sopenharmony_ci    Filter(s) on tuner signal path are used to filter signal according
4462306a36Sopenharmony_ci    to receiving party needs. Driver configures filters to fulfill
4562306a36Sopenharmony_ci    desired bandwidth requirement. Used when
4662306a36Sopenharmony_ci    V4L2_CID_RF_TUNER_BANDWIDTH_AUTO is not set. Unit is in Hz. The
4762306a36Sopenharmony_ci    range and step are driver-specific.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_LNA_GAIN_AUTO (boolean)``
5062306a36Sopenharmony_ci    Enables/disables LNA automatic gain control (AGC)
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO (boolean)``
5362306a36Sopenharmony_ci    Enables/disables mixer automatic gain control (AGC)
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_IF_GAIN_AUTO (boolean)``
5662306a36Sopenharmony_ci    Enables/disables IF automatic gain control (AGC)
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_RF_GAIN (integer)``
5962306a36Sopenharmony_ci    The RF amplifier is the very first amplifier on the receiver signal
6062306a36Sopenharmony_ci    path, just right after the antenna input. The difference between the
6162306a36Sopenharmony_ci    LNA gain and the RF gain in this document is that the LNA gain is
6262306a36Sopenharmony_ci    integrated in the tuner chip while the RF gain is a separate chip.
6362306a36Sopenharmony_ci    There may be both RF and LNA gain controls in the same device. The
6462306a36Sopenharmony_ci    range and step are driver-specific.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_LNA_GAIN (integer)``
6762306a36Sopenharmony_ci    LNA (low noise amplifier) gain is first gain stage on the RF tuner
6862306a36Sopenharmony_ci    signal path. It is located very close to tuner antenna input. Used
6962306a36Sopenharmony_ci    when ``V4L2_CID_RF_TUNER_LNA_GAIN_AUTO`` is not set. See
7062306a36Sopenharmony_ci    ``V4L2_CID_RF_TUNER_RF_GAIN`` to understand how RF gain and LNA gain
7162306a36Sopenharmony_ci    differs from the each others. The range and step are
7262306a36Sopenharmony_ci    driver-specific.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_MIXER_GAIN (integer)``
7562306a36Sopenharmony_ci    Mixer gain is second gain stage on the RF tuner signal path. It is
7662306a36Sopenharmony_ci    located inside mixer block, where RF signal is down-converted by the
7762306a36Sopenharmony_ci    mixer. Used when ``V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO`` is not set.
7862306a36Sopenharmony_ci    The range and step are driver-specific.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_IF_GAIN (integer)``
8162306a36Sopenharmony_ci    IF gain is last gain stage on the RF tuner signal path. It is
8262306a36Sopenharmony_ci    located on output of RF tuner. It controls signal level of
8362306a36Sopenharmony_ci    intermediate frequency output or baseband output. Used when
8462306a36Sopenharmony_ci    ``V4L2_CID_RF_TUNER_IF_GAIN_AUTO`` is not set. The range and step
8562306a36Sopenharmony_ci    are driver-specific.
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci``V4L2_CID_RF_TUNER_PLL_LOCK (boolean)``
8862306a36Sopenharmony_ci    Is synthesizer PLL locked? RF tuner is receiving given frequency
8962306a36Sopenharmony_ci    when that control is set. This is a read-only control.
90