Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: STV0299




Vidya Srinivas wrote:
Hi,

According to the universal driver for STV0299 obtained from this site,

	s32 snr = 0xffff - ((stv0299_readreg (i2c, 0x24) << 8)
                  		                 | stv0299_readreg (i2c, 0x25));
                	snr = 3 * (snr - 0xa100);
                	*((u16*) arg) = (snr > 0xffff) ? 0xffff :
                  (snr < 0) ? 0 : snr;

Is this according to any formula? Please help me out.
it's just a heuristic to get the SNR values into the useful 0x0000...0xffff range.

Holger



--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index