summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/dvb-pll.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-04-19 11:26:47 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-19 11:26:47 -0300
commite72bf1182dad4632c0c541b12884ef59e9a4b1a7 (patch)
tree3815146698d459e4a1bd7763555d1ed5d06e8181 /linux/drivers/media/dvb/frontends/dvb-pll.c
parent4ab7e7e5f0d2d8b0abcd7a23f6427c724a4d46bd (diff)
downloadmediapointer-dvb-s2-e72bf1182dad4632c0c541b12884ef59e9a4b1a7.tar.gz
mediapointer-dvb-s2-e72bf1182dad4632c0c541b12884ef59e9a4b1a7.tar.bz2
Add support for Opera S1- DVB-USB
From: Marco Gittler <g.marco@freenet.de> This patch adds support for DVB-Opera S1 USB 2.0 BOX. Signed-off-by: Marco Gittler <g.marco@freenet.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dvb-pll.c')
-rw-r--r--linux/drivers/media/dvb/frontends/dvb-pll.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/dvb-pll.c b/linux/drivers/media/dvb/frontends/dvb-pll.c
index d29e0ae23..5f96ffda9 100644
--- a/linux/drivers/media/dvb/frontends/dvb-pll.c
+++ b/linux/drivers/media/dvb/frontends/dvb-pll.c
@@ -451,6 +451,31 @@ struct dvb_pll_desc dvb_pll_thomson_fe6600 = {
}
};
EXPORT_SYMBOL(dvb_pll_thomson_fe6600);
+static void opera1_bw(u8 *buf, u32 freq, int bandwidth)
+{
+ if (bandwidth == BANDWIDTH_8_MHZ)
+ buf[2] |= 0x08;
+}
+
+struct dvb_pll_desc dvb_pll_opera1 = {
+ .name = "Opera Tuner",
+ .min = 900000,
+ .max = 2250000,
+ .iffreq= 0,
+ .setbw = opera1_bw,
+ .count = 8,
+ .entries = {
+ { 1064000, 500, 0xe5, 0xc6 },
+ { 1169000, 500, 0xe5, 0xe6 },
+ { 1299000, 500, 0xe5, 0x24 },
+ { 1444000, 500, 0xe5, 0x44 },
+ { 1606000, 500, 0xe5, 0x64 },
+ { 1777000, 500, 0xe5, 0x84 },
+ { 1941000, 500, 0xe5, 0xa4 },
+ { 2250000, 500, 0xe5, 0xc4 },
+ }
+};
+EXPORT_SYMBOL(dvb_pll_opera1);
struct dvb_pll_priv {
/* i2c details */