Commit 5135986e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] stb6100: use get_frontend, instead of get_frontend_legacy()

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5715836f
...@@ -327,7 +327,7 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) ...@@ -327,7 +327,7 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)
int rc; int rc;
const struct stb6100_lkup *ptr; const struct stb6100_lkup *ptr;
struct stb6100_state *state = fe->tuner_priv; struct stb6100_state *state = fe->tuner_priv;
struct dvb_frontend_parameters p; struct dtv_frontend_properties p;
u32 srate = 0, fvco, nint, nfrac; u32 srate = 0, fvco, nint, nfrac;
u8 regs[STB6100_NUMREGS]; u8 regs[STB6100_NUMREGS];
...@@ -335,11 +335,11 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) ...@@ -335,11 +335,11 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)
dprintk(verbose, FE_DEBUG, 1, "Version 2010-8-14 13:51"); dprintk(verbose, FE_DEBUG, 1, "Version 2010-8-14 13:51");
if (fe->ops.get_frontend_legacy) { if (fe->ops.get_frontend) {
dprintk(verbose, FE_DEBUG, 1, "Get frontend parameters"); dprintk(verbose, FE_DEBUG, 1, "Get frontend parameters");
fe->ops.get_frontend_legacy(fe, &p); fe->ops.get_frontend(fe, &p);
} }
srate = p.u.qpsk.symbol_rate; srate = p.symbol_rate;
/* Set up tuner cleanly, LPF calibration on */ /* Set up tuner cleanly, LPF calibration on */
rc = stb6100_write_reg(state, STB6100_FCCK, 0x4d | STB6100_FCCK_FCCK); rc = stb6100_write_reg(state, STB6100_FCCK, 0x4d | STB6100_FCCK_FCCK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment