ext-ctrls-fm-rx.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: V4L
  3. .. _fm-rx-controls:
  4. *****************************
  5. FM Receiver Control Reference
  6. *****************************
  7. The FM Receiver (FM_RX) class includes controls for common features of
  8. FM Reception capable devices.
  9. .. _fm-rx-control-id:
  10. FM_RX Control IDs
  11. =================
  12. ``V4L2_CID_FM_RX_CLASS (class)``
  13. The FM_RX class descriptor. Calling
  14. :ref:`VIDIOC_QUERYCTRL` for this control will
  15. return a description of this control class.
  16. ``V4L2_CID_RDS_RECEPTION (boolean)``
  17. Enables/disables RDS reception by the radio tuner
  18. ``V4L2_CID_RDS_RX_PTY (integer)``
  19. Gets RDS Programme Type field. This encodes up to 31 pre-defined
  20. programme types.
  21. ``V4L2_CID_RDS_RX_PS_NAME (string)``
  22. Gets the Programme Service name (PS_NAME). It is intended for
  23. static display on a receiver. It is the primary aid to listeners in
  24. programme service identification and selection. In Annex E of
  25. :ref:`iec62106`, the RDS specification, there is a full
  26. description of the correct character encoding for Programme Service
  27. name strings. Also from RDS specification, PS is usually a single
  28. eight character text. However, it is also possible to find receivers
  29. which can scroll strings sized as 8 x N characters. So, this control
  30. must be configured with steps of 8 characters. The result is it must
  31. always contain a string with size multiple of 8.
  32. ``V4L2_CID_RDS_RX_RADIO_TEXT (string)``
  33. Gets the Radio Text info. It is a textual description of what is
  34. being broadcasted. RDS Radio Text can be applied when broadcaster
  35. wishes to transmit longer PS names, programme-related information or
  36. any other text. In these cases, RadioText can be used in addition to
  37. ``V4L2_CID_RDS_RX_PS_NAME``. The encoding for Radio Text strings is
  38. also fully described in Annex E of :ref:`iec62106`. The length of
  39. Radio Text strings depends on which RDS Block is being used to
  40. transmit it, either 32 (2A block) or 64 (2B block). However, it is
  41. also possible to find receivers which can scroll strings sized as 32
  42. x N or 64 x N characters. So, this control must be configured with
  43. steps of 32 or 64 characters. The result is it must always contain a
  44. string with size multiple of 32 or 64.
  45. ``V4L2_CID_RDS_RX_TRAFFIC_ANNOUNCEMENT (boolean)``
  46. If set, then a traffic announcement is in progress.
  47. ``V4L2_CID_RDS_RX_TRAFFIC_PROGRAM (boolean)``
  48. If set, then the tuned programme carries traffic announcements.
  49. ``V4L2_CID_RDS_RX_MUSIC_SPEECH (boolean)``
  50. If set, then this channel broadcasts music. If cleared, then it
  51. broadcasts speech. If the transmitter doesn't make this distinction,
  52. then it will be set.
  53. ``V4L2_CID_TUNE_DEEMPHASIS (enum)``
  54. Configures the de-emphasis value for reception. A de-emphasis filter
  55. is applied to the broadcast to accentuate the high audio
  56. frequencies. Depending on the region, a time constant of either 50
  57. or 75 microseconds is used. The enum v4l2_deemphasis defines possible
  58. values for de-emphasis. They are:
  59. .. flat-table::
  60. :header-rows: 0
  61. :stub-columns: 0
  62. * - ``V4L2_DEEMPHASIS_DISABLED``
  63. - No de-emphasis is applied.
  64. * - ``V4L2_DEEMPHASIS_50_uS``
  65. - A de-emphasis of 50 uS is used.
  66. * - ``V4L2_DEEMPHASIS_75_uS``
  67. - A de-emphasis of 75 uS is used.