Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _FE_SET_FRONTEND_TUNE_MODE: | |
4 | ||
5 | ******************************* | |
6 | ioctl FE_SET_FRONTEND_TUNE_MODE | |
7 | ******************************* | |
8 | ||
586027ce MCC |
9 | NAME |
10 | ==== | |
5377d91f | 11 | |
586027ce | 12 | FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend. |
5377d91f | 13 | |
586027ce | 14 | SYNOPSIS |
5377d91f MH |
15 | ======== |
16 | ||
b7e67f6c | 17 | .. cpp:function:: int ioctl( int fd, int request, unsigned int flags ) |
5377d91f | 18 | |
586027ce MCC |
19 | |
20 | ARGUMENTS | |
5377d91f MH |
21 | ========= |
22 | ||
23 | ``fd`` | |
24 | File descriptor returned by :ref:`open() <frontend_f_open>`. | |
25 | ||
26 | ``request`` | |
27 | FE_SET_FRONTEND_TUNE_MODE | |
28 | ||
29 | ``flags`` | |
30 | Valid flags: | |
31 | ||
32 | - 0 - normal tune mode | |
33 | ||
34 | - FE_TUNE_MODE_ONESHOT - When set, this flag will disable any | |
35 | zigzagging or other "normal" tuning behaviour. Additionally, | |
36 | there will be no automatic monitoring of the lock status, and | |
37 | hence no frontend events will be generated. If a frontend device | |
38 | is closed, this flag will be automatically turned off when the | |
39 | device is reopened read-write. | |
40 | ||
41 | ||
586027ce | 42 | DESCRIPTION |
5377d91f MH |
43 | =========== |
44 | ||
45 | Allow setting tuner mode flags to the frontend, between 0 (normal) or | |
46 | FE_TUNE_MODE_ONESHOT mode | |
47 | ||
586027ce | 48 | |
5377d91f | 49 | RETURN VALUE |
586027ce | 50 | ============ |
5377d91f MH |
51 | |
52 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
53 | appropriately. The generic error codes are described at the | |
54 | :ref:`Generic Error Codes <gen-errors>` chapter. |