Mauro Carvalho Chehab | 82559ac | 2018-08-30 10:15:26 -0400 | [diff] [blame] | 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. |
| 7 | .. |
| 8 | .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections |
| 9 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 10 | .. _FE_SET_FRONTEND_TUNE_MODE: |
| 11 | |
| 12 | ******************************* |
| 13 | ioctl FE_SET_FRONTEND_TUNE_MODE |
| 14 | ******************************* |
| 15 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 16 | Name |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 17 | ==== |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 18 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 19 | FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend. |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 20 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 21 | |
| 22 | Synopsis |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 23 | ======== |
| 24 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame] | 25 | .. c:function:: int ioctl( int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags ) |
| 26 | :name: FE_SET_FRONTEND_TUNE_MODE |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 27 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 28 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 29 | Arguments |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 30 | ========= |
| 31 | |
| 32 | ``fd`` |
| 33 | File descriptor returned by :ref:`open() <frontend_f_open>`. |
| 34 | |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 35 | ``flags`` |
| 36 | Valid flags: |
| 37 | |
| 38 | - 0 - normal tune mode |
| 39 | |
Mauro Carvalho Chehab | 883dfe8 | 2017-09-01 12:21:49 -0400 | [diff] [blame] | 40 | - ``FE_TUNE_MODE_ONESHOT`` - When set, this flag will disable any |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 41 | zigzagging or other "normal" tuning behaviour. Additionally, |
| 42 | there will be no automatic monitoring of the lock status, and |
| 43 | hence no frontend events will be generated. If a frontend device |
| 44 | is closed, this flag will be automatically turned off when the |
| 45 | device is reopened read-write. |
| 46 | |
| 47 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 48 | Description |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 49 | =========== |
| 50 | |
| 51 | Allow setting tuner mode flags to the frontend, between 0 (normal) or |
Mauro Carvalho Chehab | 883dfe8 | 2017-09-01 12:21:49 -0400 | [diff] [blame] | 52 | ``FE_TUNE_MODE_ONESHOT`` mode |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 53 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 54 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 55 | Return Value |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 56 | ============ |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 57 | |
Mauro Carvalho Chehab | 9a721b9 | 2017-09-01 12:15:43 -0400 | [diff] [blame] | 58 | On success 0 is returned. |
| 59 | |
| 60 | On error -1 is returned, and the ``errno`` variable is set |
| 61 | appropriately. |
| 62 | |
| 63 | Generic error codes are described at the |
Markus Heiser | 5377d91 | 2016-06-30 15:18:56 +0200 | [diff] [blame] | 64 | :ref:`Generic Error Codes <gen-errors>` chapter. |