18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _fm-rx-controls: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci***************************** 68c2ecf20Sopenharmony_ciFM Receiver Control Reference 78c2ecf20Sopenharmony_ci***************************** 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciThe FM Receiver (FM_RX) class includes controls for common features of 108c2ecf20Sopenharmony_ciFM Reception capable devices. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci.. _fm-rx-control-id: 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciFM_RX Control IDs 168c2ecf20Sopenharmony_ci================= 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci``V4L2_CID_FM_RX_CLASS (class)`` 198c2ecf20Sopenharmony_ci The FM_RX class descriptor. Calling 208c2ecf20Sopenharmony_ci :ref:`VIDIOC_QUERYCTRL` for this control will 218c2ecf20Sopenharmony_ci return a description of this control class. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RECEPTION (boolean)`` 248c2ecf20Sopenharmony_ci Enables/disables RDS reception by the radio tuner 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_PTY (integer)`` 278c2ecf20Sopenharmony_ci Gets RDS Programme Type field. This encodes up to 31 pre-defined 288c2ecf20Sopenharmony_ci programme types. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_PS_NAME (string)`` 318c2ecf20Sopenharmony_ci Gets the Programme Service name (PS_NAME). It is intended for 328c2ecf20Sopenharmony_ci static display on a receiver. It is the primary aid to listeners in 338c2ecf20Sopenharmony_ci programme service identification and selection. In Annex E of 348c2ecf20Sopenharmony_ci :ref:`iec62106`, the RDS specification, there is a full 358c2ecf20Sopenharmony_ci description of the correct character encoding for Programme Service 368c2ecf20Sopenharmony_ci name strings. Also from RDS specification, PS is usually a single 378c2ecf20Sopenharmony_ci eight character text. However, it is also possible to find receivers 388c2ecf20Sopenharmony_ci which can scroll strings sized as 8 x N characters. So, this control 398c2ecf20Sopenharmony_ci must be configured with steps of 8 characters. The result is it must 408c2ecf20Sopenharmony_ci always contain a string with size multiple of 8. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_RADIO_TEXT (string)`` 438c2ecf20Sopenharmony_ci Gets the Radio Text info. It is a textual description of what is 448c2ecf20Sopenharmony_ci being broadcasted. RDS Radio Text can be applied when broadcaster 458c2ecf20Sopenharmony_ci wishes to transmit longer PS names, programme-related information or 468c2ecf20Sopenharmony_ci any other text. In these cases, RadioText can be used in addition to 478c2ecf20Sopenharmony_ci ``V4L2_CID_RDS_RX_PS_NAME``. The encoding for Radio Text strings is 488c2ecf20Sopenharmony_ci also fully described in Annex E of :ref:`iec62106`. The length of 498c2ecf20Sopenharmony_ci Radio Text strings depends on which RDS Block is being used to 508c2ecf20Sopenharmony_ci transmit it, either 32 (2A block) or 64 (2B block). However, it is 518c2ecf20Sopenharmony_ci also possible to find receivers which can scroll strings sized as 32 528c2ecf20Sopenharmony_ci x N or 64 x N characters. So, this control must be configured with 538c2ecf20Sopenharmony_ci steps of 32 or 64 characters. The result is it must always contain a 548c2ecf20Sopenharmony_ci string with size multiple of 32 or 64. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_TRAFFIC_ANNOUNCEMENT (boolean)`` 578c2ecf20Sopenharmony_ci If set, then a traffic announcement is in progress. 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_TRAFFIC_PROGRAM (boolean)`` 608c2ecf20Sopenharmony_ci If set, then the tuned programme carries traffic announcements. 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci``V4L2_CID_RDS_RX_MUSIC_SPEECH (boolean)`` 638c2ecf20Sopenharmony_ci If set, then this channel broadcasts music. If cleared, then it 648c2ecf20Sopenharmony_ci broadcasts speech. If the transmitter doesn't make this distinction, 658c2ecf20Sopenharmony_ci then it will be set. 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci``V4L2_CID_TUNE_DEEMPHASIS`` 688c2ecf20Sopenharmony_ci (enum) 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_cienum v4l2_deemphasis - 718c2ecf20Sopenharmony_ci Configures the de-emphasis value for reception. A de-emphasis filter 728c2ecf20Sopenharmony_ci is applied to the broadcast to accentuate the high audio 738c2ecf20Sopenharmony_ci frequencies. Depending on the region, a time constant of either 50 748c2ecf20Sopenharmony_ci or 75 useconds is used. The enum v4l2_deemphasis defines possible 758c2ecf20Sopenharmony_ci values for de-emphasis. Here they are: 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci.. flat-table:: 808c2ecf20Sopenharmony_ci :header-rows: 0 818c2ecf20Sopenharmony_ci :stub-columns: 0 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci * - ``V4L2_DEEMPHASIS_DISABLED`` 848c2ecf20Sopenharmony_ci - No de-emphasis is applied. 858c2ecf20Sopenharmony_ci * - ``V4L2_DEEMPHASIS_50_uS`` 868c2ecf20Sopenharmony_ci - A de-emphasis of 50 uS is used. 878c2ecf20Sopenharmony_ci * - ``V4L2_DEEMPHASIS_75_uS`` 888c2ecf20Sopenharmony_ci - A de-emphasis of 75 uS is used. 89