1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.audio
4 .. _AUDIO_SET_STREAMTYPE:
15 .. attention:: This ioctl is deprecated
20 .. c:macro:: AUDIO_SET_STREAMTYPE
22 ``int ioctl(fd, AUDIO_SET_STREAMTYPE, int type)``
35 - File descriptor returned by a previous call to open().
46 This ioctl tells the driver which kind of audio stream to expect. This
47 is useful if the stream offers several audio sub-streams like LPCM and
53 On success 0 is returned, on error -1 and the ``errno`` variable is set
54 appropriately. The generic error codes are described at the
55 :ref:`Generic Error Codes <gen-errors>` chapter.
66 - type is not a valid or supported stream type.