[media] r820t: change read_gain() code to match register layout
authorBenjamin Larsson <benjamin@southpole.se>
Sun, 15 Mar 2015 22:57:47 +0000 (19:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:50:57 +0000 (21:50 -0300)
Signed-off-by: Benjamin Larsson <benjamin@southpole.se>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/r820t.c

index 639c22061dbdb1da2b7b9f71d923f5de2bb32df5..eaaf1dc9dfa8b96e52dcede772cda7f2455ef051 100644 (file)
@@ -1199,7 +1199,7 @@ static int r820t_read_gain(struct r820t_priv *priv)
        if (rc < 0)
                return rc;
 
-       return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4);
+       return ((data[3] & 0x08) << 1) + ((data[3] & 0xf0) >> 4);
 }
 
 #if 0