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 >ioctl VIDIOC_LOG_STATUS</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="Function Reference" 14 HREF="r7624.htm"><LINK 15 REL="PREVIOUS" 16 TITLE="ioctl VIDIOC_G_TUNER, VIDIOC_S_TUNER" 17 HREF="r12342.htm"><LINK 18 REL="NEXT" 19 TITLE="ioctl VIDIOC_OVERLAY" 20 HREF="r12816.htm"></HEAD 21 ><BODY 22 CLASS="REFENTRY" 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="r12342.htm" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 ></TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="r12816.htm" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><H1 72 ><A 73 NAME="VIDIOC-LOG-STATUS" 74 ></A 75 >ioctl VIDIOC_LOG_STATUS</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN12788" 80 ></A 81 ><H2 82 >Name</H2 83 >VIDIOC_LOG_STATUS -- Log driver status information</DIV 84 ><DIV 85 CLASS="REFSYNOPSISDIV" 86 ><A 87 NAME="AEN12791" 88 ></A 89 ><H2 90 >Synopsis</H2 91 ><DIV 92 CLASS="FUNCSYNOPSIS" 93 ><P 94 ></P 95 ><A 96 NAME="AEN12792" 97 ></A 98 ><P 99 ><CODE 100 ><CODE 101 CLASS="FUNCDEF" 102 >int ioctl</CODE 103 >(int fd, int request);</CODE 104 ></P 105 ><P 106 ></P 107 ></DIV 108 ></DIV 109 ><DIV 110 CLASS="REFSECT1" 111 ><A 112 NAME="AEN12800" 113 ></A 114 ><H2 115 >Description</H2 116 ><P 117 >As the video/audio devices become more complicated it 118 becomes harder to debug problems. When this ioctl is called the driver 119 will output the current device status to the kernel log. This is 120 particular useful when dealing with problems like no sound, no video 121 and incorrectly tuned channels. Also many modern devices autodetect 122 video and audio standards and this ioctl will report what the device 123 thinks what the standard is. Mismatches may give an indication where 124 the problem is.</P 125 ><P 126 >This ioctl is optional and not all drivers support it. It 127 was introduced in Linux 2.6.15.</P 128 ></DIV 129 ><DIV 130 CLASS="REFSECT1" 131 ><A 132 NAME="AEN12804" 133 ></A 134 ><H2 135 >Return Value</H2 136 ><P 137 >On success <SPAN 138 CLASS="RETURNVALUE" 139 >0</SPAN 140 > is returned, on error <SPAN 141 CLASS="RETURNVALUE" 142 >-1</SPAN 143 > and the <CODE 144 CLASS="VARNAME" 145 >errno</CODE 146 > variable is set appropriately:</P 147 ><P 148 ></P 149 ><DIV 150 CLASS="VARIABLELIST" 151 ><DL 152 ><DT 153 ><SPAN 154 CLASS="ERRORCODE" 155 >EINVAL</SPAN 156 ></DT 157 ><DD 158 ><P 159 >The driver does not support this ioctl.</P 160 ></DD 161 ></DL 162 ></DIV 163 ></DIV 164 ><DIV 165 CLASS="NAVFOOTER" 166 ><HR 167 ALIGN="LEFT" 168 WIDTH="100%"><TABLE 169 SUMMARY="Footer navigation table" 170 WIDTH="100%" 171 BORDER="0" 172 CELLPADDING="0" 173 CELLSPACING="0" 174 ><TR 175 ><TD 176 WIDTH="33%" 177 ALIGN="left" 178 VALIGN="top" 179 ><A 180 HREF="r12342.htm" 181 ACCESSKEY="P" 182 >Prev</A 183 ></TD 184 ><TD 185 WIDTH="34%" 186 ALIGN="center" 187 VALIGN="top" 188 ><A 189 HREF="book1.htm" 190 ACCESSKEY="H" 191 >Home</A 192 ></TD 193 ><TD 194 WIDTH="33%" 195 ALIGN="right" 196 VALIGN="top" 197 ><A 198 HREF="r12816.htm" 199 ACCESSKEY="N" 200 >Next</A 201 ></TD 202 ></TR 203 ><TR 204 ><TD 205 WIDTH="33%" 206 ALIGN="left" 207 VALIGN="top" 208 >ioctl VIDIOC_G_TUNER, VIDIOC_S_TUNER</TD 209 ><TD 210 WIDTH="34%" 211 ALIGN="center" 212 VALIGN="top" 213 ><A 214 HREF="r7624.htm" 215 ACCESSKEY="U" 216 >Up</A 217 ></TD 218 ><TD 219 WIDTH="33%" 220 ALIGN="right" 221 VALIGN="top" 222 >ioctl VIDIOC_OVERLAY</TD 223 ></TR 224 ></TABLE 225 ></DIV 226 ></BODY 227 ></HTML 228 > 229