aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/s5h1409.h
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2007-07-28 18:34:52 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:03:38 -0400
commit89885558ada9e076b48f4b6887e252e13e7eaf74 (patch)
tree606bd152aeb395649c8639b769cad0f42ea665a5 /drivers/media/dvb/frontends/s5h1409.h
parentf47623a04dab402fb2c18fe516a174bc02005629 (diff)
V4L/DVB (5948): Adding support for the S5H1409/CX24227 8VSB/QAM demodulator.
This patch adds support for the Samsung S5H1409 demodulator, also known as the Conexant CX24227 demodulator. 8VSB mode has been tested and QAM has been implemented based on the spec, although it's untested. The S5H1409 / CX24227 appears on various Hauppauge boards. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/s5h1409.h')
-rw-r--r--drivers/media/dvb/frontends/s5h1409.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/s5h1409.h b/drivers/media/dvb/frontends/s5h1409.h
new file mode 100644
index 000000000000..6e9b9f24b60c
--- /dev/null
+++ b/drivers/media/dvb/frontends/s5h1409.h
@@ -0,0 +1,68 @@
1/*
2 Samsung S5H1409 VSB/QAM demodulator driver
3
4 Copyright (C) 2006 Steven Toth <stoth@hauppauge.com>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
20*/
21
22#ifndef S5H1409_H
23#define S5H1409_H
24
25#include <linux/dvb/frontend.h>
26
27struct s5h1409_config
28{
29 /* the demodulator's i2c address */
30 u8 demod_address;
31
32 /* serial/parallel output */
33#define S5H1409_PARALLEL_OUTPUT 0
34#define S5H1409_SERIAL_OUTPUT 1
35 u8 output_mode;
36
37 /* GPIO Setting */
38#define S5H1409_GPIO_OFF 0
39#define S5H1409_GPIO_ON 1
40 u8 gpio;
41
42 /* IF Freq in KHz */
43 u16 if_freq;
44
45 /* Spectral Inversion */
46#define S5H1409_INVERSION_OFF 0
47#define S5H1409_INVERSION_ON 1
48 u8 inversion;
49
50 /* Return lock status based on tuner lock, or demod lock */
51#define S5H1409_TUNERLOCKING 0
52#define S5H1409_DEMODLOCKING 1
53 u8 status_mode;
54};
55
56#if defined(CONFIG_DVB_S5H1409) || defined(CONFIG_DVB_S5H1409_MODULE)
57extern struct dvb_frontend* s5h1409_attach(const struct s5h1409_config* config,
58 struct i2c_adapter* i2c);
59#else
60static inline struct dvb_frontend* s5h1409_attach(const struct s5h1409_config* config,
61 struct i2c_adapter* i2c)
62{
63 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
64 return NULL;
65}
66#endif // CONFIG_DVB_S5H1409
67
68#endif // S5H1409_H