Instead of using DVBv3 parameters, rely on DVBv5 parameters to
set the tuner

Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>
---
 drivers/media/video/cx88/cx88-dvb.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/cx88/cx88-dvb.c 
b/drivers/media/video/cx88/cx88-dvb.c
index cf3d33a..1311af0 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -818,6 +818,7 @@ static const u8 samsung_smt_7020_inittab[] = {
 static int samsung_smt_7020_tuner_set_params(struct dvb_frontend *fe,
        struct dvb_frontend_parameters *params)
 {
+       struct dtv_frontend_properties *c = &fe->dtv_property_cache;
        struct cx8802_dev *dev = fe->dvb->priv;
        u8 buf[4];
        u32 div;
@@ -827,14 +828,14 @@ static int samsung_smt_7020_tuner_set_params(struct 
dvb_frontend *fe,
                .buf = buf,
                .len = sizeof(buf) };
 
-       div = params->frequency / 125;
+       div = c->frequency / 125;
 
        buf[0] = (div >> 8) & 0x7f;
        buf[1] = div & 0xff;
        buf[2] = 0x84;  /* 0xC4 */
        buf[3] = 0x00;
 
-       if (params->frequency < 1500000)
+       if (c->frequency < 1500000)
                buf[3] |= 0x10;
 
        if (fe->ops.i2c_gate_ctrl)
-- 
1.7.8.352.g876a6

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to