diff options
author | Igor M. Liplianin <liplianin@me.by> | 2011-02-01 17:40:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:19 -0400 |
commit | a0ea298d57153cf71f9f7628830dbba1a9a8a15d (patch) | |
tree | 94ae96b1d2d32fcc9c473ece8cc7b4507371ab50 /drivers/media/dvb/frontends | |
parent | 6951803c2402d1af0e76df051cc9b117f504550f (diff) |
[media] ds3000: fill in demod init function
Make some initializations in init, not in tune function
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/ds3000.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/ds3000.c b/drivers/media/dvb/frontends/ds3000.c index fc61d9230db8..655f182e7ff4 100644 --- a/drivers/media/dvb/frontends/ds3000.c +++ b/drivers/media/dvb/frontends/ds3000.c | |||
@@ -1065,10 +1065,6 @@ static int ds3000_tune(struct dvb_frontend *fe, | |||
1065 | /* Reset status register */ | 1065 | /* Reset status register */ |
1066 | status = 0; | 1066 | status = 0; |
1067 | /* Tune */ | 1067 | /* Tune */ |
1068 | /* TS2020 init */ | ||
1069 | ds3000_tuner_writereg(state, 0x42, 0x73); | ||
1070 | ds3000_tuner_writereg(state, 0x05, 0x01); | ||
1071 | ds3000_tuner_writereg(state, 0x62, 0xf5); | ||
1072 | /* unknown */ | 1068 | /* unknown */ |
1073 | ds3000_tuner_writereg(state, 0x07, 0x02); | 1069 | ds3000_tuner_writereg(state, 0x07, 0x02); |
1074 | ds3000_tuner_writereg(state, 0x10, 0x00); | 1070 | ds3000_tuner_writereg(state, 0x10, 0x00); |
@@ -1306,7 +1302,19 @@ static enum dvbfe_algo ds3000_get_algo(struct dvb_frontend *fe) | |||
1306 | */ | 1302 | */ |
1307 | static int ds3000_initfe(struct dvb_frontend *fe) | 1303 | static int ds3000_initfe(struct dvb_frontend *fe) |
1308 | { | 1304 | { |
1305 | struct ds3000_state *state = fe->demodulator_priv; | ||
1306 | int ret; | ||
1307 | |||
1309 | dprintk("%s()\n", __func__); | 1308 | dprintk("%s()\n", __func__); |
1309 | /* hard reset */ | ||
1310 | ds3000_writereg(state, 0x08, 0x01 | ds3000_readreg(state, 0x08)); | ||
1311 | msleep(1); | ||
1312 | |||
1313 | /* TS2020 init */ | ||
1314 | ds3000_tuner_writereg(state, 0x42, 0x73); | ||
1315 | ds3000_tuner_writereg(state, 0x05, 0x01); | ||
1316 | ds3000_tuner_writereg(state, 0x62, 0xf5); | ||
1317 | |||
1310 | return 0; | 1318 | return 0; |
1311 | } | 1319 | } |
1312 | 1320 | ||