GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / media / common / tuners / tda827x.h
blob1b1bec9a3e6348d263a87e05ea3cfe7ead5b591e
1 /*
2 DVB Driver for Philips tda827x / tda827xa Silicon tuners
4 (c) 2005 Hartmut Hackmann
5 (c) 2007 Michael Krufky
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
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef __DVB_TDA827X_H__
25 #define __DVB_TDA827X_H__
27 #include <linux/i2c.h>
28 #include "dvb_frontend.h"
30 struct tda827x_config
32 /* saa7134 - provided callbacks */
33 int (*init) (struct dvb_frontend *fe);
34 int (*sleep) (struct dvb_frontend *fe);
36 /* interface to tda829x driver */
37 unsigned int config;
38 int switch_addr;
40 void (*agcf)(struct dvb_frontend *fe);
44 /**
45 * Attach a tda827x tuner to the supplied frontend structure.
47 * @param fe Frontend to attach to.
48 * @param addr i2c address of the tuner.
49 * @param i2c i2c adapter to use.
50 * @param cfg optional callback function pointers.
51 * @return FE pointer on success, NULL on failure.
53 #if defined(CONFIG_MEDIA_TUNER_TDA827X) || (defined(CONFIG_MEDIA_TUNER_TDA827X_MODULE) \
54 && defined(MODULE))
55 extern struct dvb_frontend* tda827x_attach(struct dvb_frontend *fe, int addr,
56 struct i2c_adapter *i2c,
57 struct tda827x_config *cfg);
58 #else
59 static inline struct dvb_frontend* tda827x_attach(struct dvb_frontend *fe,
60 int addr,
61 struct i2c_adapter *i2c,
62 struct tda827x_config *cfg)
64 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
65 return NULL;
67 #endif // CONFIG_MEDIA_TUNER_TDA827X
69 #endif // __DVB_TDA827X_H__