[media] a8293: fix register 00 init value
authorAntti Palosaari <crope@iki.fi>
Mon, 2 Jul 2012 07:45:53 +0000 (04:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jul 2012 16:01:01 +0000 (13:01 -0300)
Value 0x00 was written instead of 0x10 which was aim.

Bit4 is overcurrent disable timer - ODT. According to datasheet ODT
functions are always enabled but setting it 1 is still recommended.

Thanks to Aubin Constans to pointing that bug.

Reported-by: Aubin Constans <aconstans@wyplay.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/a8293.c

index bb56497e940a543ff0c710e65e1b6bee496b29d6..711bd33f1f5c7fe4d99ed88d412bf067cdbb7313 100644 (file)
@@ -154,7 +154,7 @@ struct dvb_frontend *a8293_attach(struct dvb_frontend *fe,
 
        /* ENB=0 */
        priv->reg[0] = 0x10;
-       ret = a8293_wr(priv, &priv->reg[1], 1);
+       ret = a8293_wr(priv, &priv->reg[0], 1);
        if (ret)
                goto err;