From: Benjamin Larsson Date: Sun, 15 Mar 2015 22:57:47 +0000 (-0300) Subject: [media] r820t: change read_gain() code to match register layout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b91bfcda45a984288f5977b3574aca56eee6f2e4;p=linux-beck.git [media] r820t: change read_gain() code to match register layout Signed-off-by: Benjamin Larsson Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 639c22061dbd..eaaf1dc9dfa8 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -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