]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] tda10071: fix spec inversion reporting
authorAntti Palosaari <crope@iki.fi>
Mon, 7 Jul 2014 12:52:28 +0000 (09:52 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 15 Jul 2014 00:03:23 +0000 (21:03 -0300)
Inversion ON was reported as inversion OFF and vice versa.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/tda10071.c

index 49874e76548b1ead3510beb7a718674f3b5a0865..d590798a63674a21caa53520030c59e119595daf 100644 (file)
@@ -838,10 +838,10 @@ static int tda10071_get_frontend(struct dvb_frontend *fe)
 
        switch ((buf[1] >> 0) & 0x01) {
        case 0:
-               c->inversion = INVERSION_OFF;
+               c->inversion = INVERSION_ON;
                break;
        case 1:
-               c->inversion = INVERSION_ON;
+               c->inversion = INVERSION_OFF;
                break;
        }