vidioc-enumaudio.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <refentry id="vidioc-enumaudio">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_ENUMAUDIO</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_ENUMAUDIO</refname>
  8. <refpurpose>Enumerate audio inputs</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_audio *<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_ENUMAUDIO</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 input applications
  46. initialize the <structfield>index</structfield> field and zero out the
  47. <structfield>reserved</structfield> array of a &v4l2-audio;
  48. and call the <constant>VIDIOC_ENUMAUDIO</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. inputs applications shall begin at index zero, incrementing by one
  52. until the driver returns <errorcode>EINVAL</errorcode>.</para>
  53. <para>See <xref linkend="vidioc-g-audio" /> for a description of
  54. &v4l2-audio;.</para>
  55. </refsect1>
  56. <refsect1>
  57. &return-value;
  58. <variablelist>
  59. <varlistentry>
  60. <term><errorcode>EINVAL</errorcode></term>
  61. <listitem>
  62. <para>The number of the audio input is out of bounds.</para>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </refsect1>
  67. </refentry>