1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct analog_demod_ops</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch06s02.html" title="Digital TV (DVB) devices"><link rel="prev" href="API-struct-analog-demod-info.html" title="struct analog_demod_info"><link rel="next" href="API-struct-dvb-frontend-ops.html" title="struct dvb_frontend_ops"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct analog_demod_ops</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-analog-demod-info.html">Prev</a> </td><th width="60%" align="center">Digital TV (DVB) devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-dvb-frontend-ops.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-analog-demod-ops"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct analog_demod_ops — 
2     Demodulation information and callbacks for analog TV and radio
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct analog_demod_ops {
5  struct analog_demod_info info;
6  void (* set_params) (struct dvb_frontend *fe,struct analog_parameters *params);
7  int (* has_signal) (struct dvb_frontend *fe, u16 *signal);
8  int (* get_afc) (struct dvb_frontend *fe, s32 *afc);
9  void (* tuner_status) (struct dvb_frontend *fe);
10  void (* standby) (struct dvb_frontend *fe);
11  void (* release) (struct dvb_frontend *fe);
12  int (* i2c_gate_ctrl) (struct dvb_frontend *fe, int enable);
13  int (* set_config) (struct dvb_frontend *fe, void *priv_cfg);
14};  </pre></div><div class="refsect1"><a name="id-1.8.3.15.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">info</span></dt><dd><p>
15   pointer to struct analog_demod_info
16      </p></dd><dt><span class="term">set_params</span></dt><dd><p>
17   callback function used to inform the demod to set the
18   demodulator parameters needed to decode an analog or
19   radio channel. The properties are passed via
20   struct <em class="parameter"><code>analog_params</code></em>;.
21      </p></dd><dt><span class="term">has_signal</span></dt><dd><p>
22   returns 0xffff if has signal, or 0 if it doesn't.
23      </p></dd><dt><span class="term">get_afc</span></dt><dd><p>
24   Used only by analog TV core. Reports the frequency
25   drift due to AFC.
26      </p></dd><dt><span class="term">tuner_status</span></dt><dd><p>
27   callback function that returns tuner status bits, e. g.
28   TUNER_STATUS_LOCKED and TUNER_STATUS_STEREO.
29      </p></dd><dt><span class="term">standby</span></dt><dd><p>
30   set the tuner to standby mode.
31      </p></dd><dt><span class="term">release</span></dt><dd><p>
32   callback function called when frontend is dettached.
33   drivers should free any allocated memory.
34      </p></dd><dt><span class="term">i2c_gate_ctrl</span></dt><dd><p>
35   controls the I2C gate. Newer drivers should use I2C
36   mux support instead.
37      </p></dd><dt><span class="term">set_config</span></dt><dd><p>
38   callback function used to send some tuner-specific
39   parameters.
40      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-analog-demod-info.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-dvb-frontend-ops.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct analog_demod_info</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct dvb_frontend_ops</span></td></tr></table></div></body></html>
41