diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-22 16:54:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 08:27:54 -0200 |
commit | 27b7faf13af878807ebff04322cad74b053510b4 (patch) | |
tree | b7a73a4cc613e72abb1779473421ea05d89880f5 | |
parent | 40d6f2b83788cfc125867c8c7a7a0b32c72d9e54 (diff) | |
download | linux-stable-27b7faf13af878807ebff04322cad74b053510b4.tar.gz linux-stable-27b7faf13af878807ebff04322cad74b053510b4.tar.bz2 linux-stable-27b7faf13af878807ebff04322cad74b053510b4.zip |
[media] cx24113: 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>
-rw-r--r-- | drivers/media/dvb/frontends/cx24113.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/cx24113.c b/drivers/media/dvb/frontends/cx24113.c index c341d57d5e81..07737e2f7131 100644 --- a/drivers/media/dvb/frontends/cx24113.c +++ b/drivers/media/dvb/frontends/cx24113.c @@ -479,18 +479,19 @@ static int cx24113_init(struct dvb_frontend *fe) static int cx24113_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) { + struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct cx24113_state *state = fe->tuner_priv; /* for a ROLL-OFF factor of 0.35, 0.2: 600, 0.25: 625 */ u32 roll_off = 675; u32 bw; - bw = ((p->u.qpsk.symbol_rate/100) * roll_off) / 1000; + bw = ((c->symbol_rate/100) * roll_off) / 1000; bw += (10000000/100) + 5; bw /= 10; bw += 1000; cx24113_set_bandwidth(state, bw); - cx24113_set_frequency(state, p->frequency); + cx24113_set_frequency(state, c->frequency); msleep(5); return cx24113_get_status(fe, &bw); } |