Lines Matching +full:input +full:- +full:mode
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_G_AUDIO - VIDIOC_S_AUDIO - Query or select the current audio input and its attributes
38 To query the current audio input applications zero out the ``reserved``
42 has no audio inputs, or none which combine with the current video input.
44 Audio inputs have one writable property, the audio mode. To select the
45 current audio input *and* change the audio mode, applications initialize
46 the ``index`` and ``mode`` fields, and the ``reserved`` array of a
48 ioctl. Drivers may switch to a different audio mode if the request
49 cannot be satisfied. However, this is a write-only ioctl, it does not
50 return the actual new audio mode.
56 .. flat-table:: struct v4l2_audio
57 :header-rows: 0
58 :stub-columns: 0
61 * - __u32
62 - ``index``
63 - Identifies the audio input, set by the driver or application.
64 * - __u8
65 - ``name``\ [32]
66 - Name of the audio input, a NUL-terminated ASCII string, for
69 * - __u32
70 - ``capability``
71 - Audio capability flags, see :ref:`audio-capability`.
72 * - __u32
73 - ``mode``
74 - Audio mode flags set by drivers and applications (on
75 :ref:`VIDIOC_S_AUDIO <VIDIOC_G_AUDIO>` ioctl), see :ref:`audio-mode`.
76 * - __u32
77 - ``reserved``\ [2]
78 - Reserved for future extensions. Drivers and applications must set
84 .. _audio-capability:
86 .. flat-table:: Audio Capability Flags
87 :header-rows: 0
88 :stub-columns: 0
91 * - ``V4L2_AUDCAP_STEREO``
92 - 0x00001
93 - This is a stereo input. The flag is intended to automatically
96 unless the audio input belongs to a tuner.
97 * - ``V4L2_AUDCAP_AVL``
98 - 0x00002
99 - Automatic Volume Level mode is supported.
104 .. _audio-mode:
106 .. flat-table:: Audio Mode Flags
107 :header-rows: 0
108 :stub-columns: 0
111 * - ``V4L2_AUDMODE_AVL``
112 - 0x00001
113 - AVL mode is on.
118 On success 0 is returned, on error -1 and the ``errno`` variable is set
120 :ref:`Generic Error Codes <gen-errors>` chapter.
123 No audio inputs combine with the current video input, or the number
124 of the selected audio input is out of bounds or it does not combine.