]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tuner-xc2028: Fix signal strength report
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 Jul 2012 05:00:00 +0000 (02:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 Jul 2012 05:01:07 +0000 (02:01 -0300)
commit1a68ab321ee550e0bb4b3253d2a763394eaa9557
tree8a9338977d43745a716fe4f429f671b450df9640
parent5c35724e909f56f81d6ca6980e17f14e0c59aaf5
[media] tuner-xc2028: Fix signal strength report

There are several bugs at the signal strength algorithm:

- It is using logical OR, instead of bit OR;
- It doesn't wait up to 18 ms as it should;
- the strength range is not ok.

Rework on it, in order to make it work.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c