]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] dvb: frontend: mt352: fix signal strength reading
authorBarry Scott <barry.scott@onelan.co.uk>
Fri, 9 Sep 2005 20:02:29 +0000 (13:02 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:37 +0000 (13:57 -0700)
commita15db463d64ef294455f3b068ea5b766fad57410
tree88f7f1956d0f0514d04ea78cbb2352c4f583c2d1
parent9b6c2ca927d46fdf0b6a3751360a3c772ff3ec19
[PATCH] dvb: frontend: mt352: fix signal strength reading

Fix two problems with the signal strength value in the mt352.c frontend:
1. the 4 most significant bits are zeroed - shift and mask wrong way round
2. need to align the 12 bits from the registers at the top of the 16 bit
   returned value - otherwise the range is not 0 to 0xffff its 0xf000 to 0xffff

Signed-off-by: Barry Scott <barry.scott@onelan.co.uk>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/mt352.c