1.20. FM Transmitter Control Reference¶
The FM Transmitter (FM_TX) class includes controls for common features of FM transmissions capable devices. Currently this class includes parameters for audio compression, pilot tone generation, audio deviation limiter, RDS transmission and tuning power features.
1.20.1. FM_TX Control IDs¶
The FM_TX class descriptor. Calling ioctls VIDIOC_QUERYCTRL, VIDIOC_QUERY_EXT_CTRL and VIDIOC_QUERYMENU for this control will return a description of this control class.
Configures RDS signal frequency deviation level in Hz. The range and step are driver-specific.
Sets the RDS Programme Identification field for transmission.
Sets the RDS Programme Type field for transmission. This encodes up to 31 pre-defined programme types.
Sets the Programme Service name (PS_NAME) for transmission. It is intended for static display on a receiver. It is the primary aid to listeners in programme service identification and selection. In Annex E of IEC 62106, the RDS specification, there is a full description of the correct character encoding for Programme Service name strings. Also from RDS specification, PS is usually a single eight character text. However, it is also possible to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured with steps of 8 characters. The result is it must always contain a string with size multiple of 8.
Sets the Radio Text info for transmission. It is a textual description of what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names, programme-related information or any other text. In these cases, RadioText should be used in addition to
V4L2_CID_RDS_TX_PS_NAME. The encoding for Radio Text strings is also fully described in Annex E of IEC 62106. The length of Radio Text strings depends on which RDS Block is being used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64.
Sets the Mono/Stereo bit of the Decoder Identification code. If set, then the audio was recorded as stereo.
Sets the Artificial Head bit of the Decoder Identification code. If set, then the audio was recorded using an artificial head.
Sets the Compressed bit of the Decoder Identification code. If set, then the audio is compressed.
Sets the Dynamic PTY bit of the Decoder Identification code. If set, then the PTY code is dynamically switched.
If set, then a traffic announcement is in progress.
If set, then the tuned programme carries traffic announcements.
If set, then this channel broadcasts music. If cleared, then it broadcasts speech. If the transmitter doesn't make this distinction, then it should be set.
If set, then transmit alternate frequencies.
V4L2_CID_RDS_TX_ALT_FREQS (__u32 array)
The alternate frequencies in kHz units. The RDS standard allows for up to 25 frequencies to be defined. Drivers may support fewer frequencies so check the array size.
Enables or disables the audio deviation limiter feature. The limiter is useful when trying to maximize the audio volume, minimize receiver-generated distortion and prevent overmodulation.
Sets the audio deviation limiter feature release time. Unit is in useconds. Step and range are driver-specific.
Configures audio frequency deviation level in Hz. The range and step are driver-specific.
Enables or disables the audio compression feature. This feature amplifies signals below the threshold by a fixed gain and compresses audio signals above the threshold by the ratio of Threshold/(Gain + Threshold).
Sets the gain for audio compression feature. It is a dB value. The range and step are driver-specific.
Sets the threshold level for audio compression freature. It is a dB value. The range and step are driver-specific.
Sets the attack time for audio compression feature. It is a useconds value. The range and step are driver-specific.
Sets the release time for audio compression feature. It is a useconds value. The range and step are driver-specific.
Enables or disables the pilot tone generation feature.
Configures pilot tone frequency deviation level. Unit is in Hz. The range and step are driver-specific.
Configures pilot tone frequency value. Unit is in Hz. The range and step are driver-specific.
- enum v4l2_preemphasis -
Configures the pre-emphasis value for broadcasting. A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies. Depending on the region, a time constant of either 50 or 75 useconds is used. The enum v4l2_preemphasis defines possible values for pre-emphasis. Here they are:
No pre-emphasis is applied.
A pre-emphasis of 50 uS is used.
A pre-emphasis of 75 uS is used.
Sets the output power level for signal transmission. Unit is in dBuV. Range and step are driver-specific.
This selects the value of antenna tuning capacitor manually or automatically if set to zero. Unit, range and step are driver-specific.
For more details about RDS specification, refer to IEC 62106 document, from CENELEC.