Path: blob/master/Documentation/DocBook/v4l/dev-radio.xml
10823 views
<title>Radio Interface</title>12<para>This interface is intended for AM and FM (analog) radio3receivers and transmitters.</para>45<para>Conventionally V4L2 radio devices are accessed through6character device special files named <filename>/dev/radio</filename>7and <filename>/dev/radio0</filename> to8<filename>/dev/radio63</filename> with major number 81 and minor9numbers 64 to 127.</para>1011<section>12<title>Querying Capabilities</title>1314<para>Devices supporting the radio interface set the15<constant>V4L2_CAP_RADIO</constant> and16<constant>V4L2_CAP_TUNER</constant> or17<constant>V4L2_CAP_MODULATOR</constant> flag in the18<structfield>capabilities</structfield> field of &v4l2-capability;19returned by the &VIDIOC-QUERYCAP; ioctl. Other combinations of20capability flags are reserved for future extensions.</para>21</section>2223<section>24<title>Supplemental Functions</title>2526<para>Radio devices can support <link27linkend="control">controls</link>, and must support the <link28linkend="tuner">tuner or modulator</link> ioctls.</para>2930<para>They do not support the video input or output, audio input31or output, video standard, cropping and scaling, compression and32streaming parameter, or overlay ioctls. All other ioctls and I/O33methods are reserved for future extensions.</para>34</section>3536<section>37<title>Programming</title>3839<para>Radio devices may have a couple audio controls (as discussed40in <xref linkend="control" />) such as a volume control, possibly custom41controls. Further all radio devices have one tuner or modulator (these are42discussed in <xref linkend="tuner" />) with index number zero to select43the radio frequency and to determine if a monaural or FM stereo44program is received/emitted. Drivers switch automatically between AM and FM45depending on the selected frequency. The &VIDIOC-G-TUNER; or46&VIDIOC-G-MODULATOR; ioctl47reports the supported frequency range.</para>48</section>4950<!--51Local Variables:52mode: sgml53sgml-parent-document: "v4l2.sgml"54indent-tabs-mode: nil55End:56-->575859