summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb/dw2102.c
diff options
context:
space:
mode:
authorIgor M. Liplianin2012-12-28 23:40:24 +0100
committerMauro Carvalho Chehab2012-12-29 00:30:29 +0100
commit43385c8a645a25ddef7a45df8786ff26806f7e5d (patch)
tree22635c660eab8e6d75f0cd24fe6aaad7bfbda1be /drivers/media/usb/dvb-usb/dw2102.c
parent[media] m88rs2000: SNR, BER implemented (diff)
downloadkernel-qcow2-linux-43385c8a645a25ddef7a45df8786ff26806f7e5d.tar.gz
kernel-qcow2-linux-43385c8a645a25ddef7a45df8786ff26806f7e5d.tar.xz
kernel-qcow2-linux-43385c8a645a25ddef7a45df8786ff26806f7e5d.zip
[media] ds3000: lock led procedure added
TeVii s660 and others have LED for lock indication. Let's use it in right order. Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb/dw2102.c')
-rw-r--r--drivers/media/usb/dvb-usb/dw2102.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c
index 5ae3529f81ad..d8a5ebb43626 100644
--- a/drivers/media/usb/dvb-usb/dw2102.c
+++ b/drivers/media/usb/dvb-usb/dw2102.c
@@ -955,6 +955,11 @@ static struct ts2020_config dw2104_ts2020_config = {
.tuner_address = 0x60,
};
+static struct ds3000_config s660_ds3000_config = {
+ .demod_address = 0x68,
+ .set_lock_led = dw210x_led_ctrl,
+};
+
static struct stv0900_config dw2104a_stv0900_config = {
.demod_address = 0x6a,
.demod_mode = 0,
@@ -1200,7 +1205,7 @@ static int ds3000_frontend_attach(struct dvb_usb_adapter *d)
struct s6x0_state *st = (struct s6x0_state *)d->dev->priv;
u8 obuf[] = {7, 1};
- d->fe_adap[0].fe = dvb_attach(ds3000_attach, &dw2104_ds3000_config,
+ d->fe_adap[0].fe = dvb_attach(ds3000_attach, &s660_ds3000_config,
&d->dev->i2c_adap);
if (d->fe_adap[0].fe == NULL)