summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-dvb.c
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-11-22 19:32:26 +0000
committerMichael Krufky <devnull@localhost>2005-11-22 19:32:26 +0000
commit3a91d08ab4b317c3bce60582b5f2f44023a3703c (patch)
treefbd7534e53504f2622c3911b75e05245b4187f8d /linux/drivers/media/video/cx88/cx88-dvb.c
parent121cfbfec54c1ef2acd9ba1a92787f44ef23e708 (diff)
downloadmediapointer-dvb-s2-3a91d08ab4b317c3bce60582b5f2f44023a3703c.tar.gz
mediapointer-dvb-s2-3a91d08ab4b317c3bce60582b5f2f44023a3703c.tar.bz2
add support for KWorld DVB-S 100
From: Vadim Catana <skystar@moldova.cc> - add support for KWorld DVB-S 100, based on the same chips as Hauppauge Nova-S Plus (CX23883/CX24123/CX24109), without the Intersil ISL6421, which is used for LNB control. - LNB voltage and tone are controled by LNBDC and LNBTone bits from register 0x29 of the CX24123 demodulator. - The MO_GP0_IO register from CX23883 is used to turn LNB power on and off. Signed-off-by: Vadim Catana <skystar@moldova.cc> Acked-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-dvb.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-dvb.c29
1 files changed, 26 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c
index 8e3ff7acf..b7bcae666 100644
--- a/linux/drivers/media/video/cx88/cx88-dvb.c
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-dvb.c,v 1.73 2005/11/13 18:11:21 mkrufky Exp $
+ * $Id: cx88-dvb.c,v 1.74 2005/11/22 19:32:26 mkrufky Exp $
*
* device driver for Conexant 2388x based TV cards
* MPEG Transport Stream (DVB) routines
@@ -332,9 +332,28 @@ static int cx24123_set_ts_param(struct dvb_frontend* fe,
return 0;
}
+static void cx24123_enable_lnb_voltage(struct dvb_frontend* fe, int on)
+{
+ struct cx8802_dev *dev= fe->dvb->priv;
+ struct cx88_core *core = dev->core;
+
+ if (on)
+ cx_write(MO_GP0_IO, 0x000006f9);
+ else
+ cx_write(MO_GP0_IO, 0x000006fB);
+}
+
static struct cx24123_config hauppauge_novas_config = {
- .demod_address = 0x55,
- .set_ts_params = cx24123_set_ts_param,
+ .demod_address = 0x55,
+ .use_isl6421 = 1,
+ .set_ts_params = cx24123_set_ts_param,
+};
+
+static struct cx24123_config kworld_dvbs_100_config = {
+ .demod_address = 0x15,
+ .use_isl6421 = 0,
+ .set_ts_params = cx24123_set_ts_param,
+ .enable_lnb_voltage = cx24123_enable_lnb_voltage,
};
#endif
@@ -451,6 +470,10 @@ static int dvb_register(struct cx8802_dev *dev)
dev->dvb.frontend = cx24123_attach(&hauppauge_novas_config,
&dev->core->i2c_adap);
break;
+ case CX88_BOARD_KWORLD_DVBS_100:
+ dev->dvb.frontend = cx24123_attach(&kworld_dvbs_100_config,
+ &dev->core->i2c_adap);
+ break;
#endif
default:
printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n",