aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2010-06-16 15:43:40 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:11 -0400
commit737fabf051e1e438f5cb81db84e559cede94dafb (patch)
treefca717ed428b1a2de6f4a2f52a489f2076d9cea1 /drivers
parent2606cfa3f691b844aee64485eda1629f33cbc0ee (diff)
V4L/DVB: af9013: program tuner before demodulator
Program tuner before demodulator in case of channel set. Earlier it was programmed during demodulator programming. This seems to resolve weird error where demodulator misses sometimes ability to gain lock. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/af9013.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c
index 12e018b4107d..c85ab3e31773 100644
--- a/drivers/media/dvb/frontends/af9013.c
+++ b/drivers/media/dvb/frontends/af9013.c
@@ -761,6 +761,10 @@ static int af9013_set_frontend(struct dvb_frontend *fe,
761 761
762 state->frequency = params->frequency; 762 state->frequency = params->frequency;
763 763
764 /* program tuner */
765 if (fe->ops.tuner_ops.set_params)
766 fe->ops.tuner_ops.set_params(fe, params);
767
764 /* program CFOE coefficients */ 768 /* program CFOE coefficients */
765 ret = af9013_set_coeff(state, params->u.ofdm.bandwidth); 769 ret = af9013_set_coeff(state, params->u.ofdm.bandwidth);
766 if (ret) 770 if (ret)
@@ -791,10 +795,6 @@ static int af9013_set_frontend(struct dvb_frontend *fe,
791 if (ret) 795 if (ret)
792 goto error; 796 goto error;
793 797
794 /* program tuner */
795 if (fe->ops.tuner_ops.set_params)
796 fe->ops.tuner_ops.set_params(fe, params);
797
798 /* program TPS and bandwidth, check if auto mode needed */ 798 /* program TPS and bandwidth, check if auto mode needed */
799 ret = af9013_set_ofdm_params(state, &params->u.ofdm, &auto_mode); 799 ret = af9013_set_ofdm_params(state, &params->u.ofdm, &auto_mode);
800 if (ret) 800 if (ret)