vidioc-enumaudioout.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <refentry id="vidioc-enumaudioout">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_ENUMAUDOUT</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_ENUMAUDOUT</refname>
  8. <refpurpose>Enumerate audio outputs</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcprototype>
  13. <funcdef>int <function>ioctl</function></funcdef>
  14. <paramdef>int <parameter>fd</parameter></paramdef>
  15. <paramdef>int <parameter>request</parameter></paramdef>
  16. <paramdef>struct v4l2_audioout *<parameter>argp</parameter></paramdef>
  17. </funcprototype>
  18. </funcsynopsis>
  19. </refsynopsisdiv>
  20. <refsect1>
  21. <title>Arguments</title>
  22. <variablelist>
  23. <varlistentry>
  24. <term><parameter>fd</parameter></term>
  25. <listitem>
  26. <para>&fd;</para>
  27. </listitem>
  28. </varlistentry>
  29. <varlistentry>
  30. <term><parameter>request</parameter></term>
  31. <listitem>
  32. <para>VIDIOC_ENUMAUDOUT</para>
  33. </listitem>
  34. </varlistentry>
  35. <varlistentry>
  36. <term><parameter>argp</parameter></term>
  37. <listitem>
  38. <para></para>
  39. </listitem>
  40. </varlistentry>
  41. </variablelist>
  42. </refsect1>
  43. <refsect1>
  44. <title>Description</title>
  45. <para>To query the attributes of an audio output applications
  46. initialize the <structfield>index</structfield> field and zero out the
  47. <structfield>reserved</structfield> array of a &v4l2-audioout; and
  48. call the <constant>VIDIOC_G_AUDOUT</constant> ioctl with a pointer
  49. to this structure. Drivers fill the rest of the structure or return an
  50. &EINVAL; when the index is out of bounds. To enumerate all audio
  51. outputs applications shall begin at index zero, incrementing by one
  52. until the driver returns <errorcode>EINVAL</errorcode>.</para>
  53. <para>Note connectors on a TV card to loop back the received audio
  54. signal to a sound card are not audio outputs in this sense.</para>
  55. <para>See <xref linkend="vidioc-g-audioout" /> for a description of
  56. &v4l2-audioout;.</para>
  57. </refsect1>
  58. <refsect1>
  59. &return-value;
  60. <variablelist>
  61. <varlistentry>
  62. <term><errorcode>EINVAL</errorcode></term>
  63. <listitem>
  64. <para>The number of the audio output is out of bounds.</para>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. </refsect1>
  69. </refentry>