[media] m88rs2000: set symbol rate accurately
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 24 Dec 2013 16:18:46 +0000 (13:18 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 11:37:29 +0000 (09:37 -0200)
commitdd4491dfb9eb4fa3bfa7dc73ba989e69fbce2e10
treebfa950fea42eb3bcb53dfe9536ef02fbb6588abf
parent06af15d1b6f45c60358feab88004472e5428f01c
[media] m88rs2000: set symbol rate accurately

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>
Cc: stable@vger.kernel.org # v3.9+
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/m88rs2000.c