aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@m1k.net>2005-07-27 14:46:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-27 19:26:17 -0400
commit6ddcc9197beef7cba993c38cdcad45aefb557d33 (patch)
tree85c5f8a20c4c14e2ce6f8ad5b4e17b0f1500e22c /drivers/media/video/cx88
parent9d2599d98e9cb511f326b2d1b353e462bc360774 (diff)
[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: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/Makefile4
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c29
-rw-r--r--drivers/media/video/cx88/cx88-i2c.c4
3 files changed, 18 insertions, 19 deletions
diff --git a/drivers/media/video/cx88/Makefile b/drivers/media/video/cx88/Makefile
index 000f4c3454da..107e48645e3a 100644
--- a/drivers/media/video/cx88/Makefile
+++ b/drivers/media/video/cx88/Makefile
@@ -15,8 +15,8 @@ endif
15ifneq ($(CONFIG_DVB_OR51132),n) 15ifneq ($(CONFIG_DVB_OR51132),n)
16 EXTRA_CFLAGS += -DHAVE_OR51132=1 16 EXTRA_CFLAGS += -DHAVE_OR51132=1
17endif 17endif
18ifneq ($(CONFIG_DVB_LGDT3302),n) 18ifneq ($(CONFIG_DVB_LGDT330X),n)
19 EXTRA_CFLAGS += -DHAVE_LGDT3302=1 19 EXTRA_CFLAGS += -DHAVE_LGDT330X=1
20endif 20endif
21ifneq ($(CONFIG_DVB_MT352),n) 21ifneq ($(CONFIG_DVB_MT352),n)
22 EXTRA_CFLAGS += -DHAVE_MT352=1 22 EXTRA_CFLAGS += -DHAVE_MT352=1
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 95847b5a487b..ef0e9a85c359 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * $Id: cx88-dvb.c,v 1.52 2005/07/24 22:12:47 mkrufky Exp $ 2 * $Id: cx88-dvb.c,v 1.54 2005/07/25 05:13:50 mkrufky Exp $
3 * 3 *
4 * device driver for Conexant 2388x based TV cards 4 * device driver for Conexant 2388x based TV cards
5 * MPEG Transport Stream (DVB) routines 5 * MPEG Transport Stream (DVB) routines
@@ -31,7 +31,6 @@
31#include <linux/suspend.h> 31#include <linux/suspend.h>
32#include <linux/config.h> 32#include <linux/config.h>
33 33
34
35#include "cx88.h" 34#include "cx88.h"
36#include "dvb-pll.h" 35#include "dvb-pll.h"
37 36
@@ -45,8 +44,8 @@
45#ifdef HAVE_OR51132 44#ifdef HAVE_OR51132
46# include "or51132.h" 45# include "or51132.h"
47#endif 46#endif
48#ifdef HAVE_LGDT3302 47#ifdef HAVE_LGDT330X
49# include "lgdt3302.h" 48# include "lgdt330x.h"
50#endif 49#endif
51 50
52MODULE_DESCRIPTION("driver for cx2388x based DVB cards"); 51MODULE_DESCRIPTION("driver for cx2388x based DVB cards");
@@ -207,8 +206,8 @@ static struct or51132_config pchdtv_hd3000 = {
207}; 206};
208#endif 207#endif
209 208
210#ifdef HAVE_LGDT3302 209#ifdef HAVE_LGDT330X
211static int lgdt3302_pll_set(struct dvb_frontend* fe, 210static int lgdt330x_pll_set(struct dvb_frontend* fe,
212 struct dvb_frontend_parameters* params, 211 struct dvb_frontend_parameters* params,
213 u8* pllbuf) 212 u8* pllbuf)
214{ 213{
@@ -220,7 +219,7 @@ static int lgdt3302_pll_set(struct dvb_frontend* fe,
220 return 0; 219 return 0;
221} 220}
222 221
223static int lgdt3302_pll_rf_set(struct dvb_frontend* fe, int index) 222static int lgdt330x_pll_rf_set(struct dvb_frontend* fe, int index)
224{ 223{
225 struct cx8802_dev *dev= fe->dvb->priv; 224 struct cx8802_dev *dev= fe->dvb->priv;
226 struct cx88_core *core = dev->core; 225 struct cx88_core *core = dev->core;
@@ -233,7 +232,7 @@ static int lgdt3302_pll_rf_set(struct dvb_frontend* fe, int index)
233 return 0; 232 return 0;
234} 233}
235 234
236static int lgdt3302_set_ts_param(struct dvb_frontend* fe, int is_punctured) 235static int lgdt330x_set_ts_param(struct dvb_frontend* fe, int is_punctured)
237{ 236{
238 struct cx8802_dev *dev= fe->dvb->priv; 237 struct cx8802_dev *dev= fe->dvb->priv;
239 if (is_punctured) 238 if (is_punctured)
@@ -243,10 +242,10 @@ static int lgdt3302_set_ts_param(struct dvb_frontend* fe, int is_punctured)
243 return 0; 242 return 0;
244} 243}
245 244
246static struct lgdt3302_config fusionhdtv_3_gold = { 245static struct lgdt330x_config fusionhdtv_3_gold = {
247 .demod_address = 0x0e, 246 .demod_address = 0x0e,
248 .pll_set = lgdt3302_pll_set, 247 .pll_set = lgdt330x_pll_set,
249 .set_ts_params = lgdt3302_set_ts_param, 248 .set_ts_params = lgdt330x_set_ts_param,
250}; 249};
251#endif 250#endif
252 251
@@ -297,7 +296,7 @@ static int dvb_register(struct cx8802_dev *dev)
297 &dev->core->i2c_adap); 296 &dev->core->i2c_adap);
298 break; 297 break;
299#endif 298#endif
300#ifdef HAVE_LGDT3302 299#ifdef HAVE_LGDT330X
301 case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q: 300 case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q:
302 dev->ts_gen_cntrl = 0x08; 301 dev->ts_gen_cntrl = 0x08;
303 { 302 {
@@ -310,10 +309,10 @@ static int dvb_register(struct cx8802_dev *dev)
310 mdelay(200); 309 mdelay(200);
311 310
312 /* Select RF connector callback */ 311 /* Select RF connector callback */
313 fusionhdtv_3_gold.pll_rf_set = lgdt3302_pll_rf_set; 312 fusionhdtv_3_gold.pll_rf_set = lgdt330x_pll_rf_set;
314 dev->core->pll_addr = 0x61; 313 dev->core->pll_addr = 0x61;
315 dev->core->pll_desc = &dvb_pll_microtune_4042; 314 dev->core->pll_desc = &dvb_pll_microtune_4042;
316 dev->dvb.frontend = lgdt3302_attach(&fusionhdtv_3_gold, 315 dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_3_gold,
317 &dev->core->i2c_adap); 316 &dev->core->i2c_adap);
318 } 317 }
319 break; 318 break;
@@ -329,7 +328,7 @@ static int dvb_register(struct cx8802_dev *dev)
329 mdelay(200); 328 mdelay(200);
330 dev->core->pll_addr = 0x61; 329 dev->core->pll_addr = 0x61;
331 dev->core->pll_desc = &dvb_pll_thomson_dtt7611; 330 dev->core->pll_desc = &dvb_pll_thomson_dtt7611;
332 dev->dvb.frontend = lgdt3302_attach(&fusionhdtv_3_gold, 331 dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_3_gold,
333 &dev->core->i2c_adap); 332 &dev->core->i2c_adap);
334 } 333 }
335 break; 334 break;
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c
index 8403c4e95050..a628a55299c6 100644
--- a/drivers/media/video/cx88/cx88-i2c.c
+++ b/drivers/media/video/cx88/cx88-i2c.c
@@ -1,5 +1,5 @@
1/* 1/*
2 $Id: cx88-i2c.c,v 1.28 2005/07/05 17:37:35 nsh Exp $ 2 $Id: cx88-i2c.c,v 1.30 2005/07/25 05:10:13 mkrufky Exp $
3 3
4 cx88-i2c.c -- all the i2c code is here 4 cx88-i2c.c -- all the i2c code is here
5 5
@@ -164,7 +164,7 @@ static struct i2c_client cx8800_i2c_client_template = {
164}; 164};
165 165
166static char *i2c_devs[128] = { 166static char *i2c_devs[128] = {
167 [ 0x1c >> 1 ] = "lgdt3302", 167 [ 0x1c >> 1 ] = "lgdt330x",
168 [ 0x86 >> 1 ] = "tda9887/cx22702", 168 [ 0x86 >> 1 ] = "tda9887/cx22702",
169 [ 0xa0 >> 1 ] = "eeprom", 169 [ 0xa0 >> 1 ] = "eeprom",
170 [ 0xc0 >> 1 ] = "tuner (analog)", 170 [ 0xc0 >> 1 ] = "tuner (analog)",