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 | ||
15e7d615 | 9 | Name |
586027ce | 10 | ==== |
5377d91f | 11 | |
586027ce | 12 | FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend. |
5377d91f | 13 | |
15e7d615 MCC |
14 | |
15 | Synopsis | |
5377d91f MH |
16 | ======== |
17 | ||
cf8076c3 MCC |
18 | .. c:function:: int ioctl( int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags ) |
19 | :name: FE_SET_FRONTEND_TUNE_MODE | |
5377d91f | 20 | |
586027ce | 21 | |
15e7d615 | 22 | Arguments |
5377d91f MH |
23 | ========= |
24 | ||
25 | ``fd`` | |
26 | File descriptor returned by :ref:`open() <frontend_f_open>`. | |
27 | ||
5377d91f MH |
28 | ``flags`` |
29 | Valid flags: | |
30 | ||
31 | - 0 - normal tune mode | |
32 | ||
33 | - FE_TUNE_MODE_ONESHOT - When set, this flag will disable any | |
34 | zigzagging or other "normal" tuning behaviour. Additionally, | |
35 | there will be no automatic monitoring of the lock status, and | |
36 | hence no frontend events will be generated. If a frontend device | |
37 | is closed, this flag will be automatically turned off when the | |
38 | device is reopened read-write. | |
39 | ||
40 | ||
15e7d615 | 41 | Description |
5377d91f MH |
42 | =========== |
43 | ||
44 | Allow setting tuner mode flags to the frontend, between 0 (normal) or | |
45 | FE_TUNE_MODE_ONESHOT mode | |
46 | ||
586027ce | 47 | |
15e7d615 | 48 | Return Value |
586027ce | 49 | ============ |
5377d91f MH |
50 | |
51 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
52 | appropriately. The generic error codes are described at the | |
53 | :ref:`Generic Error Codes <gen-errors>` chapter. |