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_ENUMAUDOUT</TITLE 6><META 7NAME="GENERATOR" 8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK 9REL="HOME" 10TITLE="Video for Linux Two API Specification" 11HREF="book1.htm"><LINK 12REL="UP" 13TITLE="Function Reference" 14HREF="r7624.htm"><LINK 15REL="PREVIOUS" 16TITLE="ioctl VIDIOC_ENUMAUDIO" 17HREF="r8242.htm"><LINK 18REL="NEXT" 19TITLE="ioctl VIDIOC_ENUM_FMT" 20HREF="r8367.htm"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFFFFF" 24TEXT="#000000" 25LINK="#0000FF" 26VLINK="#840084" 27ALINK="#0000FF" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>Video for Linux Two API Specification: Revision 0.24</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="r8242.htm" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="r8367.htm" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="VIDIOC-ENUMAUDIOOUT" 74></A 75>ioctl VIDIOC_ENUMAUDOUT</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN8308" 80></A 81><H2 82>Name</H2 83>VIDIOC_ENUMAUDOUT -- Enumerate audio outputs</DIV 84><DIV 85CLASS="REFSYNOPSISDIV" 86><A 87NAME="AEN8311" 88></A 89><H2 90>Synopsis</H2 91><DIV 92CLASS="FUNCSYNOPSIS" 93><P 94></P 95><A 96NAME="AEN8312" 97></A 98><P 99><CODE 100><CODE 101CLASS="FUNCDEF" 102>int ioctl</CODE 103>(int fd, int request, struct v4l2_audioout *argp);</CODE 104></P 105><P 106></P 107></DIV 108></DIV 109><DIV 110CLASS="REFSECT1" 111><A 112NAME="AEN8322" 113></A 114><H2 115>Arguments</H2 116><P 117></P 118><DIV 119CLASS="VARIABLELIST" 120><DL 121><DT 122><CODE 123CLASS="PARAMETER" 124>fd</CODE 125></DT 126><DD 127><P 128>File descriptor returned by <A 129HREF="r14090.htm" 130><CODE 131CLASS="FUNCTION" 132>open()</CODE 133></A 134>.</P 135></DD 136><DT 137><CODE 138CLASS="PARAMETER" 139>request</CODE 140></DT 141><DD 142><P 143>VIDIOC_ENUMAUDOUT</P 144></DD 145><DT 146><CODE 147CLASS="PARAMETER" 148>argp</CODE 149></DT 150><DD 151><P 152></P 153></DD 154></DL 155></DIV 156></DIV 157><DIV 158CLASS="REFSECT1" 159><A 160NAME="AEN8342" 161></A 162><H2 163>Description</H2 164><P 165>To query the attributes of an audio output applications 166initialize the <CODE 167CLASS="STRUCTFIELD" 168>index</CODE 169> field and zero out the 170<CODE 171CLASS="STRUCTFIELD" 172>reserved</CODE 173> array of a struct <A 174HREF="r9688.htm#V4L2-AUDIOOUT" 175>v4l2_audioout</A 176> and 177call the <CODE 178CLASS="CONSTANT" 179>VIDIOC_G_AUDOUT</CODE 180> ioctl with a pointer 181to this structure. Drivers fill the rest of the structure or return an 182<SPAN 183CLASS="ERRORCODE" 184>EINVAL</SPAN 185> error code when the index is out of bounds. To enumerate all audio 186outputs applications shall begin at index zero, incrementing by one 187until the driver returns <SPAN 188CLASS="ERRORCODE" 189>EINVAL</SPAN 190>.</P 191><P 192>Note connectors on a TV card to loop back the received audio 193signal to a sound card are not audio outputs in this sense.</P 194><P 195>See <A 196HREF="r9688.htm" 197>ioctl VIDIOC_G_AUDOUT, VIDIOC_S_AUDOUT(2)</A 198> for a description of 199struct <A 200HREF="r9688.htm#V4L2-AUDIOOUT" 201>v4l2_audioout</A 202>.</P 203></DIV 204><DIV 205CLASS="REFSECT1" 206><A 207NAME="AEN8355" 208></A 209><H2 210>Return Value</H2 211><P 212>On success <SPAN 213CLASS="RETURNVALUE" 214>0</SPAN 215> is returned, on error <SPAN 216CLASS="RETURNVALUE" 217>-1</SPAN 218> and the <CODE 219CLASS="VARNAME" 220>errno</CODE 221> variable is set appropriately:</P 222><P 223></P 224><DIV 225CLASS="VARIABLELIST" 226><DL 227><DT 228><SPAN 229CLASS="ERRORCODE" 230>EINVAL</SPAN 231></DT 232><DD 233><P 234>The number of the audio output is out of bounds, or 235there are no audio outputs at all and this ioctl is not 236supported.</P 237></DD 238></DL 239></DIV 240></DIV 241><DIV 242CLASS="NAVFOOTER" 243><HR 244ALIGN="LEFT" 245WIDTH="100%"><TABLE 246SUMMARY="Footer navigation table" 247WIDTH="100%" 248BORDER="0" 249CELLPADDING="0" 250CELLSPACING="0" 251><TR 252><TD 253WIDTH="33%" 254ALIGN="left" 255VALIGN="top" 256><A 257HREF="r8242.htm" 258ACCESSKEY="P" 259>Prev</A 260></TD 261><TD 262WIDTH="34%" 263ALIGN="center" 264VALIGN="top" 265><A 266HREF="book1.htm" 267ACCESSKEY="H" 268>Home</A 269></TD 270><TD 271WIDTH="33%" 272ALIGN="right" 273VALIGN="top" 274><A 275HREF="r8367.htm" 276ACCESSKEY="N" 277>Next</A 278></TD 279></TR 280><TR 281><TD 282WIDTH="33%" 283ALIGN="left" 284VALIGN="top" 285>ioctl VIDIOC_ENUMAUDIO</TD 286><TD 287WIDTH="34%" 288ALIGN="center" 289VALIGN="top" 290><A 291HREF="r7624.htm" 292ACCESSKEY="U" 293>Up</A 294></TD 295><TD 296WIDTH="33%" 297ALIGN="right" 298VALIGN="top" 299>ioctl VIDIOC_ENUM_FMT</TD 300></TR 301></TABLE 302></DIV 303></BODY 304></HTML 305> 306