2 tuner-driver.h - interface for different tuners
4 Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de)
5 minor modifications by Ralph Metzler (rjkm@thp.uni-koeln.de)
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __TUNER_DRIVER_H__
23 #define __TUNER_DRIVER_H__
25 #include "dvb_frontend.h"
27 extern unsigned const int tuner_count;
29 struct analog_demod_info {
33 struct analog_tuner_ops {
35 struct analog_demod_info info;
37 void (*set_params)(struct dvb_frontend *fe,
38 struct analog_parameters *params);
39 int (*has_signal)(struct dvb_frontend *fe);
40 int (*is_stereo)(struct dvb_frontend *fe);
41 int (*get_afc)(struct dvb_frontend *fe);
42 void (*tuner_status)(struct dvb_frontend *fe);
43 void (*standby)(struct dvb_frontend *fe);
44 void (*release)(struct dvb_frontend *fe);
45 int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
47 /** This is to allow setting tuner-specific configuration */
48 int (*set_config)(struct dvb_frontend *fe, void *priv_cfg);
51 #endif /* __TUNER_DRIVER_H__ */