diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 14:24:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 14:26:23 -0500 |
commit | 1e73fa5d56333230854ae9460579eb2fcee8af02 (patch) | |
tree | 02eba807d52da6a30ee2ef77041b023f07383752 /drivers/media/dvb/frontends | |
parent | e97a5d893fdf45c20799b72a1c11dca3b282c89c (diff) |
[media] stb6100: Properly retrieve symbol rate
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/stb6100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb6100.c b/drivers/media/dvb/frontends/stb6100.c index 2d7c901905ba..def88abb30bf 100644 --- a/drivers/media/dvb/frontends/stb6100.c +++ b/drivers/media/dvb/frontends/stb6100.c | |||
@@ -327,7 +327,7 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) | |||
327 | int rc; | 327 | int rc; |
328 | const struct stb6100_lkup *ptr; | 328 | const struct stb6100_lkup *ptr; |
329 | struct stb6100_state *state = fe->tuner_priv; | 329 | struct stb6100_state *state = fe->tuner_priv; |
330 | struct dtv_frontend_properties p; | 330 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; |
331 | 331 | ||
332 | u32 srate = 0, fvco, nint, nfrac; | 332 | u32 srate = 0, fvco, nint, nfrac; |
333 | u8 regs[STB6100_NUMREGS]; | 333 | u8 regs[STB6100_NUMREGS]; |
@@ -339,7 +339,7 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) | |||
339 | dprintk(verbose, FE_DEBUG, 1, "Get frontend parameters"); | 339 | dprintk(verbose, FE_DEBUG, 1, "Get frontend parameters"); |
340 | fe->ops.get_frontend(fe); | 340 | fe->ops.get_frontend(fe); |
341 | } | 341 | } |
342 | srate = p.symbol_rate; | 342 | srate = p->symbol_rate; |
343 | 343 | ||
344 | /* Set up tuner cleanly, LPF calibration on */ | 344 | /* Set up tuner cleanly, LPF calibration on */ |
345 | rc = stb6100_write_reg(state, STB6100_FCCK, 0x4d | STB6100_FCCK_FCCK); | 345 | rc = stb6100_write_reg(state, STB6100_FCCK, 0x4d | STB6100_FCCK_FCCK); |