Commit 6ddcc919 authored by Michael Krufky's avatar Michael Krufky Committed by Linus Torvalds

[PATCH] dvb: rename lgdt3302 frontend module to lgdt330x

Rename lgdt3302 to lgdt330x, to make way for the addition of lgdt3303
support in future revisions.

I am changing the name of this module now so that hopefully the name will
be changed before the release of 2.6.13 ...  It wouldn't make sense to
release 2.6.13 with the name lgdt3302 in it, which will only be renamed to
lgdt330x in later versions.
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9d2599d9
...@@ -187,8 +187,8 @@ config DVB_BCM3510 ...@@ -187,8 +187,8 @@ config DVB_BCM3510
An ATSC 8VSB/16VSB and QAM64/256 tuner module. Say Y when you want to An ATSC 8VSB/16VSB and QAM64/256 tuner module. Say Y when you want to
support this frontend. support this frontend.
config DVB_LGDT3302 config DVB_LGDT330X
tristate "LGDT3302 based (DViCO FusionHDTV3 Gold)" tristate "LGDT3302 or LGDT3303 based (DViCO FusionHDTV Gold)"
depends on DVB_CORE depends on DVB_CORE
help help
An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want
......
...@@ -30,4 +30,4 @@ obj-$(CONFIG_DVB_OR51211) += or51211.o ...@@ -30,4 +30,4 @@ obj-$(CONFIG_DVB_OR51211) += or51211.o
obj-$(CONFIG_DVB_OR51132) += or51132.o obj-$(CONFIG_DVB_OR51132) += or51132.o
obj-$(CONFIG_DVB_BCM3510) += bcm3510.o obj-$(CONFIG_DVB_BCM3510) += bcm3510.o
obj-$(CONFIG_DVB_S5H1420) += s5h1420.o obj-$(CONFIG_DVB_S5H1420) += s5h1420.o
obj-$(CONFIG_DVB_LGDT3302) += lgdt3302.o obj-$(CONFIG_DVB_LGDT330X) += lgdt330x.o
/* /*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM * Support for LGDT3302 & LGDT3303 (DViCO FustionHDTV Gold) - VSB/QAM
* *
* Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net> * Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net>
* *
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
* *
*/ */
#ifndef LGDT3302_H #ifndef LGDT330X_H
#define LGDT3302_H #define LGDT330X_H
#include <linux/dvb/frontend.h> #include <linux/dvb/frontend.h>
struct lgdt3302_config struct lgdt330x_config
{ {
/* The demodulator's i2c address */ /* The demodulator's i2c address */
u8 demod_address; u8 demod_address;
...@@ -37,10 +37,10 @@ struct lgdt3302_config ...@@ -37,10 +37,10 @@ struct lgdt3302_config
int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
}; };
extern struct dvb_frontend* lgdt3302_attach(const struct lgdt3302_config* config, extern struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
struct i2c_adapter* i2c); struct i2c_adapter* i2c);
#endif /* LGDT3302_H */ #endif /* LGDT330X_H */
/* /*
* Local variables: * Local variables:
......
/* /*
* $Id: lgdt3302_priv.h,v 1.2 2005/06/28 23:50:48 mkrufky Exp $ * Support for LGDT3302 & LGDT3303 (DViCO FustionHDTV Gold) - VSB/QAM
*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM
* *
* Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net> * Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net>
* *
...@@ -21,8 +19,8 @@ ...@@ -21,8 +19,8 @@
* *
*/ */
#ifndef _LGDT3302_PRIV_ #ifndef _LGDT330X_PRIV_
#define _LGDT3302_PRIV_ #define _LGDT330X_PRIV_
/* i2c control register addresses */ /* i2c control register addresses */
enum I2C_REG { enum I2C_REG {
...@@ -63,7 +61,7 @@ enum I2C_REG { ...@@ -63,7 +61,7 @@ enum I2C_REG {
PACKET_ERR_COUNTER2= 0x6b, PACKET_ERR_COUNTER2= 0x6b,
}; };
#endif /* _LGDT3302_PRIV_ */ #endif /* _LGDT330X_PRIV_ */
/* /*
* Local variables: * Local variables:
......
...@@ -331,7 +331,7 @@ config VIDEO_CX88_DVB ...@@ -331,7 +331,7 @@ config VIDEO_CX88_DVB
select DVB_MT352 select DVB_MT352
select DVB_OR51132 select DVB_OR51132
select DVB_CX22702 select DVB_CX22702
select DVB_LGDT3302 select DVB_LGDT330X
---help--- ---help---
This adds support for DVB/ATSC cards based on the This adds support for DVB/ATSC cards based on the
Connexant 2388x chip. Connexant 2388x chip.
......
...@@ -15,8 +15,8 @@ endif ...@@ -15,8 +15,8 @@ endif
ifneq ($(CONFIG_DVB_OR51132),n) ifneq ($(CONFIG_DVB_OR51132),n)
EXTRA_CFLAGS += -DHAVE_OR51132=1 EXTRA_CFLAGS += -DHAVE_OR51132=1
endif endif
ifneq ($(CONFIG_DVB_LGDT3302),n) ifneq ($(CONFIG_DVB_LGDT330X),n)
EXTRA_CFLAGS += -DHAVE_LGDT3302=1 EXTRA_CFLAGS += -DHAVE_LGDT330X=1
endif endif
ifneq ($(CONFIG_DVB_MT352),n) ifneq ($(CONFIG_DVB_MT352),n)
EXTRA_CFLAGS += -DHAVE_MT352=1 EXTRA_CFLAGS += -DHAVE_MT352=1
......
/* /*
* $Id: cx88-dvb.c,v 1.52 2005/07/24 22:12:47 mkrufky Exp $ * $Id: cx88-dvb.c,v 1.54 2005/07/25 05:13:50 mkrufky Exp $
* *
* device driver for Conexant 2388x based TV cards * device driver for Conexant 2388x based TV cards
* MPEG Transport Stream (DVB) routines * MPEG Transport Stream (DVB) routines
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/suspend.h> #include <linux/suspend.h>
#include <linux/config.h> #include <linux/config.h>
#include "cx88.h" #include "cx88.h"
#include "dvb-pll.h" #include "dvb-pll.h"
...@@ -45,8 +44,8 @@ ...@@ -45,8 +44,8 @@
#ifdef HAVE_OR51132 #ifdef HAVE_OR51132
# include "or51132.h" # include "or51132.h"
#endif #endif
#ifdef HAVE_LGDT3302 #ifdef HAVE_LGDT330X
# include "lgdt3302.h" # include "lgdt330x.h"
#endif #endif
MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); MODULE_DESCRIPTION("driver for cx2388x based DVB cards");
...@@ -207,8 +206,8 @@ static struct or51132_config pchdtv_hd3000 = { ...@@ -207,8 +206,8 @@ static struct or51132_config pchdtv_hd3000 = {
}; };
#endif #endif
#ifdef HAVE_LGDT3302 #ifdef HAVE_LGDT330X
static int lgdt3302_pll_set(struct dvb_frontend* fe, static int lgdt330x_pll_set(struct dvb_frontend* fe,
struct dvb_frontend_parameters* params, struct dvb_frontend_parameters* params,
u8* pllbuf) u8* pllbuf)
{ {
...@@ -220,7 +219,7 @@ static int lgdt3302_pll_set(struct dvb_frontend* fe, ...@@ -220,7 +219,7 @@ static int lgdt3302_pll_set(struct dvb_frontend* fe,
return 0; return 0;
} }
static int lgdt3302_pll_rf_set(struct dvb_frontend* fe, int index) static int lgdt330x_pll_rf_set(struct dvb_frontend* fe, int index)
{ {
struct cx8802_dev *dev= fe->dvb->priv; struct cx8802_dev *dev= fe->dvb->priv;
struct cx88_core *core = dev->core; struct cx88_core *core = dev->core;
...@@ -233,7 +232,7 @@ static int lgdt3302_pll_rf_set(struct dvb_frontend* fe, int index) ...@@ -233,7 +232,7 @@ static int lgdt3302_pll_rf_set(struct dvb_frontend* fe, int index)
return 0; return 0;
} }
static int lgdt3302_set_ts_param(struct dvb_frontend* fe, int is_punctured) static int lgdt330x_set_ts_param(struct dvb_frontend* fe, int is_punctured)
{ {
struct cx8802_dev *dev= fe->dvb->priv; struct cx8802_dev *dev= fe->dvb->priv;
if (is_punctured) if (is_punctured)
...@@ -243,10 +242,10 @@ static int lgdt3302_set_ts_param(struct dvb_frontend* fe, int is_punctured) ...@@ -243,10 +242,10 @@ static int lgdt3302_set_ts_param(struct dvb_frontend* fe, int is_punctured)
return 0; return 0;
} }
static struct lgdt3302_config fusionhdtv_3_gold = { static struct lgdt330x_config fusionhdtv_3_gold = {
.demod_address = 0x0e, .demod_address = 0x0e,
.pll_set = lgdt3302_pll_set, .pll_set = lgdt330x_pll_set,
.set_ts_params = lgdt3302_set_ts_param, .set_ts_params = lgdt330x_set_ts_param,
}; };
#endif #endif
...@@ -297,7 +296,7 @@ static int dvb_register(struct cx8802_dev *dev) ...@@ -297,7 +296,7 @@ static int dvb_register(struct cx8802_dev *dev)
&dev->core->i2c_adap); &dev->core->i2c_adap);
break; break;
#endif #endif
#ifdef HAVE_LGDT3302 #ifdef HAVE_LGDT330X
case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q: case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q:
dev->ts_gen_cntrl = 0x08; dev->ts_gen_cntrl = 0x08;
{ {
...@@ -310,10 +309,10 @@ static int dvb_register(struct cx8802_dev *dev) ...@@ -310,10 +309,10 @@ static int dvb_register(struct cx8802_dev *dev)
mdelay(200); mdelay(200);
/* Select RF connector callback */ /* Select RF connector callback */
fusionhdtv_3_gold.pll_rf_set = lgdt3302_pll_rf_set; fusionhdtv_3_gold.pll_rf_set = lgdt330x_pll_rf_set;
dev->core->pll_addr = 0x61; dev->core->pll_addr = 0x61;
dev->core->pll_desc = &dvb_pll_microtune_4042; dev->core->pll_desc = &dvb_pll_microtune_4042;
dev->dvb.frontend = lgdt3302_attach(&fusionhdtv_3_gold, dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_3_gold,
&dev->core->i2c_adap); &dev->core->i2c_adap);
} }
break; break;
...@@ -329,7 +328,7 @@ static int dvb_register(struct cx8802_dev *dev) ...@@ -329,7 +328,7 @@ static int dvb_register(struct cx8802_dev *dev)
mdelay(200); mdelay(200);
dev->core->pll_addr = 0x61; dev->core->pll_addr = 0x61;
dev->core->pll_desc = &dvb_pll_thomson_dtt7611; dev->core->pll_desc = &dvb_pll_thomson_dtt7611;
dev->dvb.frontend = lgdt3302_attach(&fusionhdtv_3_gold, dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_3_gold,
&dev->core->i2c_adap); &dev->core->i2c_adap);
} }
break; break;
......
/* /*
$Id: cx88-i2c.c,v 1.28 2005/07/05 17:37:35 nsh Exp $ $Id: cx88-i2c.c,v 1.30 2005/07/25 05:10:13 mkrufky Exp $
cx88-i2c.c -- all the i2c code is here cx88-i2c.c -- all the i2c code is here
...@@ -164,7 +164,7 @@ static struct i2c_client cx8800_i2c_client_template = { ...@@ -164,7 +164,7 @@ static struct i2c_client cx8800_i2c_client_template = {
}; };
static char *i2c_devs[128] = { static char *i2c_devs[128] = {
[ 0x1c >> 1 ] = "lgdt3302", [ 0x1c >> 1 ] = "lgdt330x",
[ 0x86 >> 1 ] = "tda9887/cx22702", [ 0x86 >> 1 ] = "tda9887/cx22702",
[ 0xa0 >> 1 ] = "eeprom", [ 0xa0 >> 1 ] = "eeprom",
[ 0xc0 >> 1 ] = "tuner (analog)", [ 0xc0 >> 1 ] = "tuner (analog)",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment