1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
12 =======================
13 Digital TV audio open()
14 =======================
19 Digital TV audio open()
21 .. attention:: This ioctl is deprecated
26 .. c:function:: int open(const char *deviceName, int flags)
40 - const char \*deviceName
42 - Name of specific audio device.
48 - A bit-wise OR of the following flags:
53 - O_RDONLY read-only access
58 - O_RDWR read/write access
63 - O_NONBLOCK open in non-blocking mode
68 - (blocking mode is the default)
74 This system call opens a named audio device (e.g.
75 /dev/dvb/adapter0/audio0) for subsequent use. When an open() call has
76 succeeded, the device will be ready for use. The significance of
77 blocking or non-blocking mode is described in the documentation for
78 functions where there is a difference. It does not affect the semantics
79 of the open() call itself. A device opened in blocking mode can later be
80 put into non-blocking mode (and vice versa) using the F_SETFL command
81 of the fcntl system call. This is a standard system call, documented in
82 the Linux manual page for fcntl. Only one user can open the Audio Device
83 in O_RDWR mode. All other attempts to open the device in this mode will
84 fail, and an error code will be returned. If the Audio Device is opened
85 in O_RDONLY mode, the only ioctl call that can be used is
86 AUDIO_GET_STATUS. All other call will return with an error code.
92 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
103 - Device driver not loaded/available.
109 - Device or resource busy.