Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / dvb / audio-get-status.rst
blobcbd822773d8589a0f3a9d3f2d545970a7162a71c
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _AUDIO_GET_STATUS:
5 ================
6 AUDIO_GET_STATUS
7 ================
9 Name
10 ----
12 AUDIO_GET_STATUS
15 Synopsis
16 --------
18 .. cpp:function:: int ioctl(int fd, int request = AUDIO_GET_STATUS, struct audio_status *status)
21 Arguments
22 ---------
24 .. flat-table::
25     :header-rows:  0
26     :stub-columns: 0
29     -  .. row 1
31        -  int fd
33        -  File descriptor returned by a previous call to open().
35     -  .. row 2
37        -  int request
39        -  Equals AUDIO_GET_STATUS for this command.
41     -  .. row 3
43        -  struct audio_status \*status
45        -  Returns the current state of Audio Device.
48 Description
49 -----------
51 This ioctl call asks the Audio Device to return the current state of the
52 Audio Device.
55 Return Value
56 ------------
58 On success 0 is returned, on error -1 and the ``errno`` variable is set
59 appropriately. The generic error codes are described at the
60 :ref:`Generic Error Codes <gen-errors>` chapter.