aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/frontends/Kconfig8
-rw-r--r--drivers/media/dvb/frontends/Makefile2
-rw-r--r--drivers/media/dvb/frontends/lgdt3304.c (renamed from drivers/media/video/empia/lgdt3304/lgdt3304.c)36
-rw-r--r--drivers/media/dvb/frontends/lgdt3304.h (renamed from drivers/media/video/empia/lgdt3304/lgdt3304.h)0
-rw-r--r--drivers/media/video/empia/lgdt3304/Makefile7
5 files changed, 28 insertions, 25 deletions
diff --git a/drivers/media/dvb/frontends/Kconfig b/drivers/media/dvb/frontends/Kconfig
index 8da1e81668e7..69eb1f8eb4a9 100644
--- a/drivers/media/dvb/frontends/Kconfig
+++ b/drivers/media/dvb/frontends/Kconfig
@@ -345,6 +345,14 @@ config DVB_LGDT330X
345 An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want 345 An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want
346 to support this frontend. 346 to support this frontend.
347 347
348config DVB_LGDT3304
349 tristate "LG Electronics LGDT3304"
350 depends on DVB_CORE && I2C
351 default m if DVB_FE_CUSTOMISE
352 help
353 An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want
354 to support this frontend.
355
348config DVB_S5H1409 356config DVB_S5H1409
349 tristate "Samsung S5H1409 based" 357 tristate "Samsung S5H1409 based"
350 depends on DVB_CORE && I2C 358 depends on DVB_CORE && I2C
diff --git a/drivers/media/dvb/frontends/Makefile b/drivers/media/dvb/frontends/Makefile
index 11a5407ecdb7..651c9e889a66 100644
--- a/drivers/media/dvb/frontends/Makefile
+++ b/drivers/media/dvb/frontends/Makefile
@@ -37,6 +37,7 @@ obj-$(CONFIG_DVB_OR51132) += or51132.o
37obj-$(CONFIG_DVB_BCM3510) += bcm3510.o 37obj-$(CONFIG_DVB_BCM3510) += bcm3510.o
38obj-$(CONFIG_DVB_S5H1420) += s5h1420.o 38obj-$(CONFIG_DVB_S5H1420) += s5h1420.o
39obj-$(CONFIG_DVB_LGDT330X) += lgdt330x.o 39obj-$(CONFIG_DVB_LGDT330X) += lgdt330x.o
40obj-$(CONFIG_DVB_LGDT3304) += lgdt3304.o
40obj-$(CONFIG_DVB_CX24123) += cx24123.o 41obj-$(CONFIG_DVB_CX24123) += cx24123.o
41obj-$(CONFIG_DVB_LNBP21) += lnbp21.o 42obj-$(CONFIG_DVB_LNBP21) += lnbp21.o
42obj-$(CONFIG_DVB_ISL6405) += isl6405.o 43obj-$(CONFIG_DVB_ISL6405) += isl6405.o
@@ -58,3 +59,4 @@ obj-$(CONFIG_DVB_SI21XX) += si21xx.o
58obj-$(CONFIG_DVB_STV0288) += stv0288.o 59obj-$(CONFIG_DVB_STV0288) += stv0288.o
59obj-$(CONFIG_DVB_STB6000) += stb6000.o 60obj-$(CONFIG_DVB_STB6000) += stb6000.o
60obj-$(CONFIG_DVB_S921) += s921.o 61obj-$(CONFIG_DVB_S921) += s921.o
62
diff --git a/drivers/media/video/empia/lgdt3304/lgdt3304.c b/drivers/media/dvb/frontends/lgdt3304.c
index 2af09bef0d6c..469ace5692c6 100644
--- a/drivers/media/video/empia/lgdt3304/lgdt3304.c
+++ b/drivers/media/dvb/frontends/lgdt3304.c
@@ -20,10 +20,10 @@ MODULE_PARM_DESC(debug,"lgdt3304 debugging (default off)");
20 20
21struct lgdt3304_state 21struct lgdt3304_state
22{ 22{
23 struct dvb_frontend frontend; 23 struct dvb_frontend frontend;
24 fe_modulation_t current_modulation; 24 fe_modulation_t current_modulation;
25 __u32 snr; 25 __u32 snr;
26 __u32 current_frequency; 26 __u32 current_frequency;
27 __u8 addr; 27 __u8 addr;
28 struct i2c_adapter *i2c; 28 struct i2c_adapter *i2c;
29}; 29};
@@ -37,20 +37,20 @@ static int i2c_write_demod_bytes (struct dvb_frontend *fe, __u8 *buf, int len)
37 .len = 3, 37 .len = 3,
38 .buf = buf 38 .buf = buf
39 }; 39 };
40 int i; 40 int i;
41 int err; 41 int err;
42 42
43 for (i=0; i<len-1; i+=3){ 43 for (i=0; i<len-1; i+=3){
44 if((err = i2c_transfer(state->i2c, &i2cmsgs, 1))<0) { 44 if((err = i2c_transfer(state->i2c, &i2cmsgs, 1))<0) {
45 printk("%s i2c_transfer error %d\n", __FUNCTION__, err); 45 printk("%s i2c_transfer error %d\n", __FUNCTION__, err);
46 if (err < 0) 46 if (err < 0)
47 return err; 47 return err;
48 else 48 else
49 return -EREMOTEIO; 49 return -EREMOTEIO;
50 } 50 }
51 i2cmsgs.buf += 3; 51 i2cmsgs.buf += 3;
52 } 52 }
53 return 0; 53 return 0;
54} 54}
55 55
56static int lgdt3304_i2c_read_reg(struct dvb_frontend *fe, unsigned int reg) 56static int lgdt3304_i2c_read_reg(struct dvb_frontend *fe, unsigned int reg)
@@ -248,14 +248,14 @@ static int lgdt3304_set_parameters(struct dvb_frontend *fe, struct dvb_frontend_
248 lgdt3304_soft_Reset(fe); 248 lgdt3304_soft_Reset(fe);
249 249
250 250
251 if (fe->ops.tuner_ops.set_params) 251 if (fe->ops.tuner_ops.set_params)
252 fe->ops.tuner_ops.set_params(fe, param); 252 fe->ops.tuner_ops.set_params(fe, param);
253 253
254 return 0; 254 return 0;
255} 255}
256 256
257static int lgdt3304_init(struct dvb_frontend *fe) { 257static int lgdt3304_init(struct dvb_frontend *fe) {
258 return 0; 258 return 0;
259} 259}
260 260
261static int lgdt3304_sleep(struct dvb_frontend *fe) { 261static int lgdt3304_sleep(struct dvb_frontend *fe) {
diff --git a/drivers/media/video/empia/lgdt3304/lgdt3304.h b/drivers/media/dvb/frontends/lgdt3304.h
index fc409fe59acb..fc409fe59acb 100644
--- a/drivers/media/video/empia/lgdt3304/lgdt3304.h
+++ b/drivers/media/dvb/frontends/lgdt3304.h
diff --git a/drivers/media/video/empia/lgdt3304/Makefile b/drivers/media/video/empia/lgdt3304/Makefile
deleted file mode 100644
index 4d261a7627a6..000000000000
--- a/drivers/media/video/empia/lgdt3304/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
1lgdt3304-demod-objs := lgdt3304.o
2
3obj-m += lgdt3304-demod.o
4
5EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
6EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
7EXTRA_CFLAGS += -DCONFIG_DVB_LGDT3304