aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorDavid T.L. Wong <davidtlwong@gmail.com>2009-08-05 12:07:10 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:18:47 -0400
commit6bf1a997ed135df322e64b6f604227f6fdc54865 (patch)
tree5dbc010cfef052df087c61b821b4ab2233eac914 /drivers/media/dvb/dvb-usb
parentb807d17555dcc4ea28abadd4d647ba0c4d822cdb (diff)
V4L/DVB (12423): cxusb, d680 dmbth use unified lgs8gxx code instead of lgs8gl5
Use unified lgs8gxx frontend instead of reverse engineered lgs8gl5 frontend. After this patch, lgs8gl5 frontend could be mark as deprecated. Future development should base on unified lgs8gxx frontend. Signed-off-by: David T.L. Wong <davidtlwong@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index 406d7fba369d..88205e734aaf 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -38,7 +38,7 @@
38#include "mxl5005s.h" 38#include "mxl5005s.h"
39#include "dib7000p.h" 39#include "dib7000p.h"
40#include "dib0070.h" 40#include "dib0070.h"
41#include "lgs8gl5.h" 41#include "lgs8gxx.h"
42 42
43/* debug */ 43/* debug */
44static int dvb_usb_cxusb_debug; 44static int dvb_usb_cxusb_debug;
@@ -1094,8 +1094,18 @@ static int cxusb_nano2_frontend_attach(struct dvb_usb_adapter *adap)
1094 return -EIO; 1094 return -EIO;
1095} 1095}
1096 1096
1097static struct lgs8gl5_config lgs8gl5_cfg = { 1097static struct lgs8gxx_config d680_lgs8gl5_cfg = {
1098 .prod = LGS8GXX_PROD_LGS8GL5,
1098 .demod_address = 0x19, 1099 .demod_address = 0x19,
1100 .serial_ts = 0,
1101 .ts_clk_pol = 0,
1102 .ts_clk_gated = 1,
1103 .if_clk_freq = 30400, /* 30.4 MHz */
1104 .if_freq = 5725, /* 5.725 MHz */
1105 .if_neg_center = 0,
1106 .ext_adc = 0,
1107 .adc_signed = 0,
1108 .if_neg_edge = 0,
1099}; 1109};
1100 1110
1101static int cxusb_d680_dmb_frontend_attach(struct dvb_usb_adapter *adap) 1111static int cxusb_d680_dmb_frontend_attach(struct dvb_usb_adapter *adap)
@@ -1135,7 +1145,7 @@ static int cxusb_d680_dmb_frontend_attach(struct dvb_usb_adapter *adap)
1135 msleep(100); 1145 msleep(100);
1136 1146
1137 /* Attach frontend */ 1147 /* Attach frontend */
1138 adap->fe = dvb_attach(lgs8gl5_attach, &lgs8gl5_cfg, &d->i2c_adap); 1148 adap->fe = dvb_attach(lgs8gxx_attach, &d680_lgs8gl5_cfg, &d->i2c_adap);
1139 if (adap->fe == NULL) 1149 if (adap->fe == NULL)
1140 return -EIO; 1150 return -EIO;
1141 1151