1 <refentry id="vidioc-enumaudioout">
3 <refentrytitle>ioctl VIDIOC_ENUMAUDOUT</refentrytitle>
8 <refname>VIDIOC_ENUMAUDOUT</refname>
9 <refpurpose>Enumerate audio outputs</refpurpose>
15 <funcdef>int <function>ioctl</function></funcdef>
16 <paramdef>int <parameter>fd</parameter></paramdef>
17 <paramdef>int <parameter>request</parameter></paramdef>
18 <paramdef>struct v4l2_audioout *<parameter>argp</parameter></paramdef>
24 <title>Arguments</title>
28 <term><parameter>fd</parameter></term>
34 <term><parameter>request</parameter></term>
36 <para>VIDIOC_ENUMAUDOUT</para>
40 <term><parameter>argp</parameter></term>
49 <title>Description</title>
51 <para>To query the attributes of an audio output applications
52 initialize the <structfield>index</structfield> field and zero out the
53 <structfield>reserved</structfield> array of a &v4l2-audioout; and
54 call the <constant>VIDIOC_G_AUDOUT</constant> ioctl with a pointer
55 to this structure. Drivers fill the rest of the structure or return an
56 &EINVAL; when the index is out of bounds. To enumerate all audio
57 outputs applications shall begin at index zero, incrementing by one
58 until the driver returns <errorcode>EINVAL</errorcode>.</para>
60 <para>Note connectors on a TV card to loop back the received audio
61 signal to a sound card are not audio outputs in this sense.</para>
63 <para>See <xref linkend="vidioc-g-audioout" /> for a description of
64 &v4l2-audioout;.</para>
72 <term><errorcode>EINVAL</errorcode></term>
74 <para>The number of the audio output is out of bounds, or
75 there are no audio outputs at all and this ioctl is not
86 sgml-parent-document: "v4l2.sgml"