2020-08-26 09:03:09 +02:00
|
|
|
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
|
2020-09-24 16:56:00 +02:00
|
|
|
.. c:namespace:: DTV.audio
|
2018-08-30 10:15:26 -04:00
|
|
|
|
2016-07-05 10:37:31 -03:00
|
|
|
.. _AUDIO_SELECT_SOURCE:
|
|
|
|
|
|
2016-07-05 07:58:48 -03:00
|
|
|
===================
|
2016-07-05 10:37:31 -03:00
|
|
|
AUDIO_SELECT_SOURCE
|
|
|
|
|
===================
|
|
|
|
|
|
2016-07-05 15:14:35 -03:00
|
|
|
Name
|
2016-07-05 07:58:48 -03:00
|
|
|
----
|
2016-07-05 10:37:31 -03:00
|
|
|
|
2016-07-05 07:58:48 -03:00
|
|
|
AUDIO_SELECT_SOURCE
|
2016-07-05 10:37:31 -03:00
|
|
|
|
2016-08-19 16:56:15 -03:00
|
|
|
.. attention:: This ioctl is deprecated
|
2016-07-05 15:14:35 -03:00
|
|
|
|
|
|
|
|
Synopsis
|
2016-07-05 10:37:31 -03:00
|
|
|
--------
|
|
|
|
|
|
2020-09-24 16:56:00 +02:00
|
|
|
.. c:macro:: AUDIO_SELECT_SOURCE
|
2016-07-05 10:37:31 -03:00
|
|
|
|
2020-09-24 16:56:00 +02:00
|
|
|
``int ioctl(int fd, AUDIO_SELECT_SOURCE, struct audio_stream_source *source)``
|
2016-07-05 10:37:31 -03:00
|
|
|
|
2016-07-05 15:14:35 -03:00
|
|
|
Arguments
|
2016-07-05 07:58:48 -03:00
|
|
|
---------
|
2016-07-05 10:37:31 -03:00
|
|
|
|
|
|
|
|
.. flat-table::
|
|
|
|
|
:header-rows: 0
|
|
|
|
|
:stub-columns: 0
|
|
|
|
|
|
2016-08-19 16:56:15 -03:00
|
|
|
-
|
2016-07-05 10:37:31 -03:00
|
|
|
|
|
|
|
|
- int fd
|
|
|
|
|
|
|
|
|
|
- File descriptor returned by a previous call to open().
|
|
|
|
|
|
2016-08-19 16:56:15 -03:00
|
|
|
-
|
2016-07-05 10:37:31 -03:00
|
|
|
|
|
|
|
|
- audio_stream_source_t source
|
|
|
|
|
|
|
|
|
|
- Indicates the source that shall be used for the Audio stream.
|
|
|
|
|
|
2016-07-05 15:14:35 -03:00
|
|
|
Description
|
2016-07-05 07:58:48 -03:00
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
This ioctl call informs the audio device which source shall be used for
|
|
|
|
|
the input data. The possible sources are demux or memory. If
|
|
|
|
|
AUDIO_SOURCE_MEMORY is selected, the data is fed to the Audio Device
|
|
|
|
|
through the write command.
|
|
|
|
|
|
2016-07-05 15:14:35 -03:00
|
|
|
Return Value
|
2016-07-05 10:37:31 -03: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.
|