aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/s5h1420.h
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2008-04-13 14:47:53 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:39 -0400
commitdbad108bdcb30629c850f5606949510da010a686 (patch)
tree9d1460aaec7ec5be9c1374a86b8a6bc7b8b0c42d /drivers/media/dvb/frontends/s5h1420.h
parent44dc733cd9edac53402d705cd2f720accd0b3e2c (diff)
V4L/DVB (7568): Support for DVB-S demod PN1010 (clone of S5H1420) added
This device is a clone of the PN1010 used by SkyStar2 rev2.7 . This patch adds support for the flexcop-device and makes the driver look a little bit nicer. It needs to be checked whether the driver is still ok for the budget-cards. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/s5h1420.h')
-rw-r--r--drivers/media/dvb/frontends/s5h1420.h62
1 files changed, 36 insertions, 26 deletions
diff --git a/drivers/media/dvb/frontends/s5h1420.h b/drivers/media/dvb/frontends/s5h1420.h
index 2cc785012b23..4c913f142bc4 100644
--- a/drivers/media/dvb/frontends/s5h1420.h
+++ b/drivers/media/dvb/frontends/s5h1420.h
@@ -1,25 +1,26 @@
1/* 1/*
2 Driver for S5H1420 QPSK Demodulators 2 * Driver for
3 3 * Samsung S5H1420 and
4 Copyright (C) 2005 Andrew de Quincey <adq_dvb@lidskialf.net> 4 * PnpNetwork PN1010 QPSK Demodulator
5 5 *
6 This program is free software; you can redistribute it and/or modify 6 * Copyright (C) 2005 Andrew de Quincey <adq_dvb@lidskialf.net>
7 it under the terms of the GNU General Public License as published by 7 * Copyright (C) 2005-8 Patrick Boettcher <pb@linuxtv.org>
8 the Free Software Foundation; either version 2 of the License, or 8 *
9 (at your option) any later version. 9 * This program is free software; you can redistribute it and/or modify
10 10 * it under the terms of the GNU General Public License as published by
11 This program is distributed in the hope that it will be useful, 11 * the Free Software Foundation; either version 2 of the License, or
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * (at your option) any later version.
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 *
14 14 * This program is distributed in the hope that it will be useful,
15 GNU General Public License for more details. 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 You should have received a copy of the GNU General Public License 17 *
18 along with this program; if not, write to the Free Software 18 * GNU General Public License for more details.
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 *
20 20 * You should have received a copy of the GNU General Public License
21*/ 21 * along with this program; if not, write to the Free Software
22 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 */
23#ifndef S5H1420_H 24#ifndef S5H1420_H
24#define S5H1420_H 25#define S5H1420_H
25 26
@@ -31,19 +32,28 @@ struct s5h1420_config
31 u8 demod_address; 32 u8 demod_address;
32 33
33 /* does the inversion require inversion? */ 34 /* does the inversion require inversion? */
34 u8 invert:1; 35 u8 invert : 1;
36
37 u8 repeated_start_workaround : 1;
38 u8 cdclk_polarity : 1; /* 1 == falling edge, 0 == raising edge */
35}; 39};
36 40
37#if defined(CONFIG_DVB_S5H1420) || (defined(CONFIG_DVB_S5H1420_MODULE) && defined(MODULE)) 41#if defined(CONFIG_DVB_S5H1420) || (defined(CONFIG_DVB_S5H1420_MODULE) && defined(MODULE))
38extern struct dvb_frontend* s5h1420_attach(const struct s5h1420_config* config, 42extern struct dvb_frontend *s5h1420_attach(const struct s5h1420_config *config,
39 struct i2c_adapter* i2c); 43 struct i2c_adapter *i2c);
44extern struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe);
40#else 45#else
41static inline struct dvb_frontend* s5h1420_attach(const struct s5h1420_config* config, 46static inline struct dvb_frontend *s5h1420_attach(const struct s5h1420_config *config,
42 struct i2c_adapter* i2c) 47 struct i2c_adapter *i2c)
43{ 48{
44 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 49 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
45 return NULL; 50 return NULL;
46} 51}
52
53static inline struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe)
54{
55 return NULL;
56}
47#endif // CONFIG_DVB_S5H1420 57#endif // CONFIG_DVB_S5H1420
48 58
49#endif // S5H1420_H 59#endif // S5H1420_H