ext-ctrls-fm-tx.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: V4L
  3. .. _fm-tx-controls:
  4. ********************************
  5. FM Transmitter Control Reference
  6. ********************************
  7. The FM Transmitter (FM_TX) class includes controls for common features
  8. of FM transmissions capable devices. Currently this class includes
  9. parameters for audio compression, pilot tone generation, audio deviation
  10. limiter, RDS transmission and tuning power features.
  11. .. _fm-tx-control-id:
  12. FM_TX Control IDs
  13. =================
  14. ``V4L2_CID_FM_TX_CLASS (class)``
  15. The FM_TX class descriptor. Calling
  16. :ref:`VIDIOC_QUERYCTRL` for this control will
  17. return a description of this control class.
  18. ``V4L2_CID_RDS_TX_DEVIATION (integer)``
  19. Configures RDS signal frequency deviation level in Hz. The range and
  20. step are driver-specific.
  21. ``V4L2_CID_RDS_TX_PI (integer)``
  22. Sets the RDS Programme Identification field for transmission.
  23. ``V4L2_CID_RDS_TX_PTY (integer)``
  24. Sets the RDS Programme Type field for transmission. This encodes up
  25. to 31 pre-defined programme types.
  26. ``V4L2_CID_RDS_TX_PS_NAME (string)``
  27. Sets the Programme Service name (PS_NAME) for transmission. It is
  28. intended for static display on a receiver. It is the primary aid to
  29. listeners in programme service identification and selection. In
  30. Annex E of :ref:`iec62106`, the RDS specification, there is a full
  31. description of the correct character encoding for Programme Service
  32. name strings. Also from RDS specification, PS is usually a single
  33. eight character text. However, it is also possible to find receivers
  34. which can scroll strings sized as 8 x N characters. So, this control
  35. must be configured with steps of 8 characters. The result is it must
  36. always contain a string with size multiple of 8.
  37. ``V4L2_CID_RDS_TX_RADIO_TEXT (string)``
  38. Sets the Radio Text info for transmission. It is a textual
  39. description of what is being broadcasted. RDS Radio Text can be
  40. applied when broadcaster wishes to transmit longer PS names,
  41. programme-related information or any other text. In these cases,
  42. RadioText should be used in addition to ``V4L2_CID_RDS_TX_PS_NAME``.
  43. The encoding for Radio Text strings is also fully described in Annex
  44. E of :ref:`iec62106`. The length of Radio Text strings depends on
  45. which RDS Block is being used to transmit it, either 32 (2A block)
  46. or 64 (2B block). However, it is also possible to find receivers
  47. which can scroll strings sized as 32 x N or 64 x N characters. So,
  48. this control must be configured with steps of 32 or 64 characters.
  49. The result is it must always contain a string with size multiple of
  50. 32 or 64.
  51. ``V4L2_CID_RDS_TX_MONO_STEREO (boolean)``
  52. Sets the Mono/Stereo bit of the Decoder Identification code. If set,
  53. then the audio was recorded as stereo.
  54. ``V4L2_CID_RDS_TX_ARTIFICIAL_HEAD (boolean)``
  55. Sets the
  56. `Artificial Head <http://en.wikipedia.org/wiki/Artificial_head>`__
  57. bit of the Decoder Identification code. If set, then the audio was
  58. recorded using an artificial head.
  59. ``V4L2_CID_RDS_TX_COMPRESSED (boolean)``
  60. Sets the Compressed bit of the Decoder Identification code. If set,
  61. then the audio is compressed.
  62. ``V4L2_CID_RDS_TX_DYNAMIC_PTY (boolean)``
  63. Sets the Dynamic PTY bit of the Decoder Identification code. If set,
  64. then the PTY code is dynamically switched.
  65. ``V4L2_CID_RDS_TX_TRAFFIC_ANNOUNCEMENT (boolean)``
  66. If set, then a traffic announcement is in progress.
  67. ``V4L2_CID_RDS_TX_TRAFFIC_PROGRAM (boolean)``
  68. If set, then the tuned programme carries traffic announcements.
  69. ``V4L2_CID_RDS_TX_MUSIC_SPEECH (boolean)``
  70. If set, then this channel broadcasts music. If cleared, then it
  71. broadcasts speech. If the transmitter doesn't make this distinction,
  72. then it should be set.
  73. ``V4L2_CID_RDS_TX_ALT_FREQS_ENABLE (boolean)``
  74. If set, then transmit alternate frequencies.
  75. ``V4L2_CID_RDS_TX_ALT_FREQS (__u32 array)``
  76. The alternate frequencies in kHz units. The RDS standard allows for
  77. up to 25 frequencies to be defined. Drivers may support fewer
  78. frequencies so check the array size.
  79. ``V4L2_CID_AUDIO_LIMITER_ENABLED (boolean)``
  80. Enables or disables the audio deviation limiter feature. The limiter
  81. is useful when trying to maximize the audio volume, minimize
  82. receiver-generated distortion and prevent overmodulation.
  83. ``V4L2_CID_AUDIO_LIMITER_RELEASE_TIME (integer)``
  84. Sets the audio deviation limiter feature release time. Unit is in
  85. microseconds. Step and range are driver-specific.
  86. ``V4L2_CID_AUDIO_LIMITER_DEVIATION (integer)``
  87. Configures audio frequency deviation level in Hz. The range and step
  88. are driver-specific.
  89. ``V4L2_CID_AUDIO_COMPRESSION_ENABLED (boolean)``
  90. Enables or disables the audio compression feature. This feature
  91. amplifies signals below the threshold by a fixed gain and compresses
  92. audio signals above the threshold by the ratio of Threshold/(Gain +
  93. Threshold).
  94. ``V4L2_CID_AUDIO_COMPRESSION_GAIN (integer)``
  95. Sets the gain for audio compression feature. It is a dB value. The
  96. range and step are driver-specific.
  97. ``V4L2_CID_AUDIO_COMPRESSION_THRESHOLD (integer)``
  98. Sets the threshold level for audio compression feature. It is a dB
  99. value. The range and step are driver-specific.
  100. ``V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME (integer)``
  101. Sets the attack time for audio compression feature. It is a microseconds
  102. value. The range and step are driver-specific.
  103. ``V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME (integer)``
  104. Sets the release time for audio compression feature. It is a
  105. microseconds value. The range and step are driver-specific.
  106. ``V4L2_CID_PILOT_TONE_ENABLED (boolean)``
  107. Enables or disables the pilot tone generation feature.
  108. ``V4L2_CID_PILOT_TONE_DEVIATION (integer)``
  109. Configures pilot tone frequency deviation level. Unit is in Hz. The
  110. range and step are driver-specific.
  111. ``V4L2_CID_PILOT_TONE_FREQUENCY (integer)``
  112. Configures pilot tone frequency value. Unit is in Hz. The range and
  113. step are driver-specific.
  114. ``V4L2_CID_TUNE_PREEMPHASIS (enum)``
  115. Configures the pre-emphasis value for broadcasting. A pre-emphasis
  116. filter is applied to the broadcast to accentuate the high audio
  117. frequencies. Depending on the region, a time constant of either 50
  118. or 75 microseconds is used. The enum v4l2_preemphasis defines possible
  119. values for pre-emphasis. They are:
  120. .. flat-table::
  121. :header-rows: 0
  122. :stub-columns: 0
  123. * - ``V4L2_PREEMPHASIS_DISABLED``
  124. - No pre-emphasis is applied.
  125. * - ``V4L2_PREEMPHASIS_50_uS``
  126. - A pre-emphasis of 50 uS is used.
  127. * - ``V4L2_PREEMPHASIS_75_uS``
  128. - A pre-emphasis of 75 uS is used.
  129. ``V4L2_CID_TUNE_POWER_LEVEL (integer)``
  130. Sets the output power level for signal transmission. Unit is in
  131. dBuV. Range and step are driver-specific.
  132. ``V4L2_CID_TUNE_ANTENNA_CAPACITOR (integer)``
  133. This selects the value of antenna tuning capacitor manually or
  134. automatically if set to zero. Unit, range and step are
  135. driver-specific.
  136. For more details about RDS specification, refer to :ref:`iec62106`
  137. document, from CENELEC.