dev-radio.xml 1.9 KB

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