]> git.ipfire.org Git - people/ms/linux.git/commit
m88rs2000: set symbol rate accurately
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 24 Dec 2013 16:18:46 +0000 (13:18 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:48:02 +0000 (13:48 -0800)
commit118807851f3d5aadbbf966af63c882e5bb8cb89c
treedb68eee8f6ba2aa081f0f77a54859f6a638bfb25
parentcf5b0cc26c7aff4bb8cbf0f5f411ce2249acc7e2
m88rs2000: set symbol rate accurately

commit dd4491dfb9eb4fa3bfa7dc73ba989e69fbce2e10 upstream.

Current setting of symbol rate is not very actuate causing
loss of lock.

Covert temp to u64 and use mclk to calculate from big number.

Calculate symbol rate by dividing symbol rate by 1000 times
1 << 24 and dividing sum by mclk.

Add other symbol rate settings to function registers 0xa0-0xa3.

In set_frontend add changes to register 0xf1 this must be done
prior call to fe_reset. Register 0x00 doesn't need a second
write of 0x1

Applied after patch
m88rs2000: add m88rs2000_set_carrieroffset

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb-frontends/m88rs2000.c