dev-radio.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _radio:
  3. ***************
  4. Radio Interface
  5. ***************
  6. This interface is intended for AM and FM (analog) radio receivers and
  7. transmitters.
  8. Conventionally V4L2 radio devices are accessed through character device
  9. special files named ``/dev/radio`` and ``/dev/radio0`` to
  10. ``/dev/radio63`` with major number 81 and minor numbers 64 to 127.
  11. Querying Capabilities
  12. =====================
  13. Devices supporting the radio interface set the ``V4L2_CAP_RADIO`` and
  14. ``V4L2_CAP_TUNER`` or ``V4L2_CAP_MODULATOR`` flag in the
  15. ``capabilities`` field of struct
  16. :c:type:`v4l2_capability` returned by the
  17. :ref:`VIDIOC_QUERYCAP` ioctl. Other combinations of
  18. capability flags are reserved for future extensions.
  19. Supplemental Functions
  20. ======================
  21. Radio devices can support :ref:`controls <control>`, and must support
  22. the :ref:`tuner or modulator <tuner>` ioctls.
  23. They do not support the video input or output, audio input or output,
  24. video standard, cropping and scaling, compression and streaming
  25. parameter, or overlay ioctls. All other ioctls and I/O methods are
  26. reserved for future extensions.
  27. Programming
  28. ===========
  29. Radio devices may have a couple audio controls (as discussed in
  30. :ref:`control`) such as a volume control, possibly custom controls.
  31. Further all radio devices have one tuner or modulator (these are
  32. discussed in :ref:`tuner`) with index number zero to select the radio
  33. frequency and to determine if a monaural or FM stereo program is
  34. received/emitted. Drivers switch automatically between AM and FM
  35. depending on the selected frequency. The
  36. :ref:`VIDIOC_G_TUNER <VIDIOC_G_TUNER>` or
  37. :ref:`VIDIOC_G_MODULATOR <VIDIOC_G_MODULATOR>` ioctl reports the
  38. supported frequency range.