Home | History | Annotate | Download | only in spec
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
      2 <HTML
      3 ><HEAD
      4 ><TITLE
      5 >Radio Interface</TITLE
      6 ><META
      7 NAME="GENERATOR"
      8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
      9 REL="HOME"
     10 TITLE="Video for Linux Two API Specification"
     11 HREF="book1.htm"><LINK
     12 REL="UP"
     13 TITLE="Interfaces"
     14 HREF="c6488.htm"><LINK
     15 REL="PREVIOUS"
     16 TITLE="Teletext Interface"
     17 HREF="x7561.htm"><LINK
     18 REL="NEXT"
     19 TITLE="RDS Interface"
     20 HREF="x7607.htm"></HEAD
     21 ><BODY
     22 CLASS="SECTION"
     23 BGCOLOR="#FFFFFF"
     24 TEXT="#000000"
     25 LINK="#0000FF"
     26 VLINK="#840084"
     27 ALINK="#0000FF"
     28 ><DIV
     29 CLASS="NAVHEADER"
     30 ><TABLE
     31 SUMMARY="Header navigation table"
     32 WIDTH="100%"
     33 BORDER="0"
     34 CELLPADDING="0"
     35 CELLSPACING="0"
     36 ><TR
     37 ><TH
     38 COLSPAN="3"
     39 ALIGN="center"
     40 >Video for Linux Two API Specification: Revision 0.24</TH
     41 ></TR
     42 ><TR
     43 ><TD
     44 WIDTH="10%"
     45 ALIGN="left"
     46 VALIGN="bottom"
     47 ><A
     48 HREF="x7561.htm"
     49 ACCESSKEY="P"
     50 >Prev</A
     51 ></TD
     52 ><TD
     53 WIDTH="80%"
     54 ALIGN="center"
     55 VALIGN="bottom"
     56 >Chapter 4. Interfaces</TD
     57 ><TD
     58 WIDTH="10%"
     59 ALIGN="right"
     60 VALIGN="bottom"
     61 ><A
     62 HREF="x7607.htm"
     63 ACCESSKEY="N"
     64 >Next</A
     65 ></TD
     66 ></TR
     67 ></TABLE
     68 ><HR
     69 ALIGN="LEFT"
     70 WIDTH="100%"></DIV
     71 ><DIV
     72 CLASS="SECTION"
     73 ><H1
     74 CLASS="SECTION"
     75 ><A
     76 NAME="RADIO"
     77 >4.10. Radio Interface</A
     78 ></H1
     79 ><P
     80 >This interface is intended for AM and FM (analog) radio
     81 receivers.</P
     82 ><P
     83 >Conventionally V4L2 radio devices are accessed through
     84 character device special files named <TT
     85 CLASS="FILENAME"
     86 >/dev/radio</TT
     87 >
     88 and <TT
     89 CLASS="FILENAME"
     90 >/dev/radio0</TT
     91 > to
     92 <TT
     93 CLASS="FILENAME"
     94 >/dev/radio63</TT
     95 > with major number 81 and minor
     96 numbers 64 to 127.</P
     97 ><DIV
     98 CLASS="SECTION"
     99 ><H2
    100 CLASS="SECTION"
    101 ><A
    102 NAME="AEN7585"
    103 >4.10.1. Querying Capabilities</A
    104 ></H2
    105 ><P
    106 >Devices supporting the radio interface set the
    107 <CODE
    108 CLASS="CONSTANT"
    109 >V4L2_CAP_RADIO</CODE
    110 > and
    111 <CODE
    112 CLASS="CONSTANT"
    113 >V4L2_CAP_TUNER</CODE
    114 > flag in the
    115 <CODE
    116 CLASS="STRUCTFIELD"
    117 >capabilities</CODE
    118 > field of struct&nbsp;<A
    119 HREF="r13105.htm#V4L2-CAPABILITY"
    120 >v4l2_capability</A
    121 >
    122 returned by the <A
    123 HREF="r13105.htm"
    124 ><CODE
    125 CLASS="CONSTANT"
    126 >VIDIOC_QUERYCAP</CODE
    127 ></A
    128 > ioctl. Other combinations of
    129 capability flags are reserved for future extensions.</P
    130 ></DIV
    131 ><DIV
    132 CLASS="SECTION"
    133 ><H2
    134 CLASS="SECTION"
    135 ><A
    136 NAME="AEN7594"
    137 >4.10.2. Supplemental Functions</A
    138 ></H2
    139 ><P
    140 >Radio devices can support <A
    141 HREF="x542.htm"
    142 >controls</A
    143 >, and must support the <A
    144 HREF="x394.htm"
    145 >tuner</A
    146 > ioctls.</P
    147 ><P
    148 >They do not support the video input or output, audio input
    149 or output, video standard, cropping and scaling, compression and
    150 streaming parameter, or overlay ioctls. All other ioctls and I/O
    151 methods are reserved for future extensions.</P
    152 ></DIV
    153 ><DIV
    154 CLASS="SECTION"
    155 ><H2
    156 CLASS="SECTION"
    157 ><A
    158 NAME="AEN7600"
    159 >4.10.3. Programming</A
    160 ></H2
    161 ><P
    162 >Radio devices may have a couple audio controls (as discussed
    163 in <A
    164 HREF="x542.htm"
    165 >Section 1.8</A
    166 >) such as a volume control, possibly custom
    167 controls. Further all radio devices have one tuner (these are
    168 discussed in <A
    169 HREF="x394.htm"
    170 >Section 1.6</A
    171 >) with index number zero to select
    172 the radio frequency and to determine if a monaural or FM stereo
    173 program is received. Drivers switch automatically between AM and FM
    174 depending on the selected frequency. The <A
    175 HREF="r12342.htm"
    176 ><CODE
    177 CLASS="CONSTANT"
    178 >VIDIOC_G_TUNER</CODE
    179 ></A
    180 > ioctl
    181 reports the supported frequency range.</P
    182 ></DIV
    183 ></DIV
    184 ><DIV
    185 CLASS="NAVFOOTER"
    186 ><HR
    187 ALIGN="LEFT"
    188 WIDTH="100%"><TABLE
    189 SUMMARY="Footer navigation table"
    190 WIDTH="100%"
    191 BORDER="0"
    192 CELLPADDING="0"
    193 CELLSPACING="0"
    194 ><TR
    195 ><TD
    196 WIDTH="33%"
    197 ALIGN="left"
    198 VALIGN="top"
    199 ><A
    200 HREF="x7561.htm"
    201 ACCESSKEY="P"
    202 >Prev</A
    203 ></TD
    204 ><TD
    205 WIDTH="34%"
    206 ALIGN="center"
    207 VALIGN="top"
    208 ><A
    209 HREF="book1.htm"
    210 ACCESSKEY="H"
    211 >Home</A
    212 ></TD
    213 ><TD
    214 WIDTH="33%"
    215 ALIGN="right"
    216 VALIGN="top"
    217 ><A
    218 HREF="x7607.htm"
    219 ACCESSKEY="N"
    220 >Next</A
    221 ></TD
    222 ></TR
    223 ><TR
    224 ><TD
    225 WIDTH="33%"
    226 ALIGN="left"
    227 VALIGN="top"
    228 >Teletext Interface</TD
    229 ><TD
    230 WIDTH="34%"
    231 ALIGN="center"
    232 VALIGN="top"
    233 ><A
    234 HREF="c6488.htm"
    235 ACCESSKEY="U"
    236 >Up</A
    237 ></TD
    238 ><TD
    239 WIDTH="33%"
    240 ALIGN="right"
    241 VALIGN="top"
    242 >RDS Interface</TD
    243 ></TR
    244 ></TABLE
    245 ></DIV
    246 ></BODY
    247 ></HTML
    248 >
    249