2016-06-30 21:18:56 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
2016-07-07 22:05:38 +08:00
|
|
|
.. _VIDIOC_ENUMAUDOUT:
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
***********************
|
|
|
|
ioctl VIDIOC_ENUMAUDOUT
|
|
|
|
***********************
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Name
|
2016-07-05 18:58:48 +08:00
|
|
|
====
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
VIDIOC_ENUMAUDOUT - Enumerate audio outputs
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
Synopsis
|
2016-06-30 21:18:56 +08:00
|
|
|
========
|
|
|
|
|
2016-07-02 20:49:16 +08:00
|
|
|
.. cpp:function:: int ioctl( int fd, int request, struct v4l2_audioout *argp )
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Arguments
|
2016-06-30 21:18:56 +08:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by :ref:`open() <func-open>`.
|
|
|
|
|
|
|
|
``request``
|
|
|
|
VIDIOC_ENUMAUDOUT
|
|
|
|
|
|
|
|
``argp``
|
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Description
|
2016-06-30 21:18:56 +08:00
|
|
|
===========
|
|
|
|
|
|
|
|
To query the attributes of an audio output applications initialize the
|
|
|
|
``index`` field and zero out the ``reserved`` array of a struct
|
|
|
|
:ref:`v4l2_audioout <v4l2-audioout>` and call the ``VIDIOC_G_AUDOUT``
|
|
|
|
ioctl with a pointer to this structure. Drivers fill the rest of the
|
2016-07-03 22:53:09 +08:00
|
|
|
structure or return an ``EINVAL`` error code when the index is out of
|
2016-06-30 21:18:56 +08:00
|
|
|
bounds. To enumerate all audio outputs applications shall begin at index
|
2016-07-03 22:53:09 +08:00
|
|
|
zero, incrementing by one until the driver returns ``EINVAL``.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-08-16 04:49:50 +08:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
Connectors on a TV card to loop back the received audio signal
|
2016-07-10 22:57:43 +08:00
|
|
|
to a sound card are not audio outputs in this sense.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-07 22:05:38 +08:00
|
|
|
See :ref:`VIDIOC_G_AUDIOout <VIDIOC_G_AUDOUT>` for a description of struct
|
2016-06-30 21:18:56 +08:00
|
|
|
:ref:`v4l2_audioout <v4l2-audioout>`.
|
|
|
|
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Return Value
|
2016-06-30 21:18:56 +08:00
|
|
|
============
|
|
|
|
|
|
|
|
On success 0 is returned, on error -1 and the ``errno`` variable is set
|
|
|
|
appropriately. The generic error codes are described at the
|
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|
|
|
|
|
|
|
|
EINVAL
|
|
|
|
The number of the audio output is out of bounds.
|