aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/media/dvb/frontend.xml48
-rw-r--r--include/linux/dvb/frontend.h29
2 files changed, 57 insertions, 20 deletions
diff --git a/Documentation/DocBook/media/dvb/frontend.xml b/Documentation/DocBook/media/dvb/frontend.xml
index 81082fb84b1c..1ab2e1af81f1 100644
--- a/Documentation/DocBook/media/dvb/frontend.xml
+++ b/Documentation/DocBook/media/dvb/frontend.xml
@@ -207,18 +207,44 @@ spec.</para>
207<para>Several functions of the frontend device use the fe_status data type defined 207<para>Several functions of the frontend device use the fe_status data type defined
208by</para> 208by</para>
209<programlisting> 209<programlisting>
210 typedef enum fe_status { 210typedef enum fe_status {
211 FE_HAS_SIGNAL = 0x01, /&#x22C6; found something above the noise level &#x22C6;/ 211 FE_HAS_SIGNAL = 0x01,
212 FE_HAS_CARRIER = 0x02, /&#x22C6; found a DVB signal &#x22C6;/ 212 FE_HAS_CARRIER = 0x02,
213 FE_HAS_VITERBI = 0x04, /&#x22C6; FEC is stable &#x22C6;/ 213 FE_HAS_VITERBI = 0x04,
214 FE_HAS_SYNC = 0x08, /&#x22C6; found sync bytes &#x22C6;/ 214 FE_HAS_SYNC = 0x08,
215 FE_HAS_LOCK = 0x10, /&#x22C6; everything's working... &#x22C6;/ 215 FE_HAS_LOCK = 0x10,
216 FE_TIMEDOUT = 0x20, /&#x22C6; no lock within the last ~2 seconds &#x22C6;/ 216 FE_TIMEDOUT = 0x20,
217 FE_REINIT = 0x40 /&#x22C6; frontend was reinitialized, &#x22C6;/ 217 FE_REINIT = 0x40,
218 } fe_status_t; /&#x22C6; application is recommned to reset &#x22C6;/ 218} fe_status_t;
219</programlisting> 219</programlisting>
220<para>to indicate the current state and/or state changes of the frontend hardware. 220<para>to indicate the current state and/or state changes of the frontend hardware:
221</para> 221</para>
222
223<informaltable><tgroup cols="2"><tbody>
224<row>
225<entry align="char">FE_HAS_SIGNAL</entry>
226<entry align="char">The frontend has found something above the noise level</entry>
227</row><row>
228<entry align="char">FE_HAS_CARRIER</entry>
229<entry align="char">The frontend has found a DVB signal</entry>
230</row><row>
231<entry align="char">FE_HAS_VITERBI</entry>
232<entry align="char">The frontend FEC code is stable</entry>
233</row><row>
234<entry align="char">FE_HAS_SYNC</entry>
235<entry align="char">Syncronization bytes was found</entry>
236</row><row>
237<entry align="char">FE_HAS_LOCK</entry>
238<entry align="char">The DVB were locked and everything is working</entry>
239</row><row>
240<entry align="char">FE_TIMEDOUT</entry>
241<entry align="char">no lock within the last about 2 seconds</entry>
242</row><row>
243<entry align="char">FE_REINIT</entry>
244<entry align="char">The frontend was reinitialized, application is
245recommended to reset DiSEqC, tone and parameters</entry>
246</row>
247</tbody></tgroup></informaltable>
222 248
223</section> 249</section>
224 250
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h
index c92b4d64e013..bb51edfc72a2 100644
--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -121,16 +121,27 @@ typedef enum fe_sec_mini_cmd {
121} fe_sec_mini_cmd_t; 121} fe_sec_mini_cmd_t;
122 122
123 123
124/**
125 * enum fe_status - enumerates the possible frontend status
126 * @FE_HAS_SIGNAL: found something above the noise level
127 * @FE_HAS_CARRIER: found a DVB signal
128 * @FE_HAS_VITERBI: FEC is stable
129 * @FE_HAS_SYNC: found sync bytes
130 * @FE_HAS_LOCK: everything's working
131 * @FE_TIMEDOUT: no lock within the last ~2 seconds
132 * @FE_REINIT: frontend was reinitialized, application is recommended
133 * to reset DiSEqC, tone and parameters
134 */
135
124typedef enum fe_status { 136typedef enum fe_status {
125 FE_HAS_SIGNAL = 0x01, /* found something above the noise level */ 137 FE_HAS_SIGNAL = 0x01,
126 FE_HAS_CARRIER = 0x02, /* found a DVB signal */ 138 FE_HAS_CARRIER = 0x02,
127 FE_HAS_VITERBI = 0x04, /* FEC is stable */ 139 FE_HAS_VITERBI = 0x04,
128 FE_HAS_SYNC = 0x08, /* found sync bytes */ 140 FE_HAS_SYNC = 0x08,
129 FE_HAS_LOCK = 0x10, /* everything's working... */ 141 FE_HAS_LOCK = 0x10,
130 FE_TIMEDOUT = 0x20, /* no lock within the last ~2 seconds */ 142 FE_TIMEDOUT = 0x20,
131 FE_REINIT = 0x40 /* frontend was reinitialized, */ 143 FE_REINIT = 0x40,
132} fe_status_t; /* application is recommended to reset */ 144} fe_status_t;
133 /* DiSEqC, tone and parameters */
134 145
135typedef enum fe_spectral_inversion { 146typedef enum fe_spectral_inversion {
136 INVERSION_OFF, 147 INVERSION_OFF,