diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-23 16:33:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 05:37:36 -0500 |
commit | 3cc66df680200903123cfeac10e5ff1650b5a25e (patch) | |
tree | 263b06e521f54f5f5c100dbf0773dfcdc1f93b13 /drivers/media/dvb/frontends/ix2505v.c | |
parent | e7e10deb582ace0a4eb39965e898f5147ae81e79 (diff) |
[media] ix2505v: use DVBv5 parameters on set_params()
Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/ix2505v.c')
-rw-r--r-- | drivers/media/dvb/frontends/ix2505v.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/ix2505v.c b/drivers/media/dvb/frontends/ix2505v.c index 9a517a4bf96d..aca48172504c 100644 --- a/drivers/media/dvb/frontends/ix2505v.c +++ b/drivers/media/dvb/frontends/ix2505v.c | |||
@@ -132,9 +132,10 @@ static int ix2505v_release(struct dvb_frontend *fe) | |||
132 | static int ix2505v_set_params(struct dvb_frontend *fe, | 132 | static int ix2505v_set_params(struct dvb_frontend *fe, |
133 | struct dvb_frontend_parameters *params) | 133 | struct dvb_frontend_parameters *params) |
134 | { | 134 | { |
135 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | ||
135 | struct ix2505v_state *state = fe->tuner_priv; | 136 | struct ix2505v_state *state = fe->tuner_priv; |
136 | u32 frequency = params->frequency; | 137 | u32 frequency = c->frequency; |
137 | u32 b_w = (params->u.qpsk.symbol_rate * 27) / 32000; | 138 | u32 b_w = (c->symbol_rate * 27) / 32000; |
138 | u32 div_factor, N , A, x; | 139 | u32 div_factor, N , A, x; |
139 | int ret = 0, len; | 140 | int ret = 0, len; |
140 | u8 gain, cc, ref, psc, local_osc, lpf; | 141 | u8 gain, cc, ref, psc, local_osc, lpf; |