V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values
authorOliver Endriss <o.endriss@gmx.de>
Mon, 28 May 2007 21:06:27 +0000 (18:06 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 8 Jun 2007 11:21:13 +0000 (08:21 -0300)
commitc6604150ab04aaaf98baf1ddca2e9e4f7d3da4d3
tree61ff048d9c9b8b4f1c8d9a8b729ed847cc79f2ac
parentdc02d50a6d71cba2b2edb78377af5a5965879a49
V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values

Several people reported unreliable reception with the current driver.
Furthermore, STR and SNR values seem to be inverted.
This fix is based on a patch posted by Hartmut Hackman.
Thanks to Helmut Auer for testing and helping to optimize the patch.
tda826x:
- set baseband cut-off to 19 MHz
tda10086:
- change the parameters of the carrier recovery loop
- toggle register 0x02 between 0x35 (tuning) and 0x00 (locked)
- invert STR and SNR values

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/tda10086.c
drivers/media/dvb/frontends/tda826x.c