linux/drivers/media/dvb
Jiri Slaby 6c614044ff V4L/DVB: media: dvb/af9015, implement eeprom hashing
This will be useful for matching of IR tables later.

We read the eeprom anyway for dumping. Switch the dumping to
print_hex_dump_bytes and compute hash above that by
hash = 0;
for (u32 VAL) in (eeprom):
  hash *= GOLDEN_RATIO_PRIME_32
  hash += VAL; // while preserving endinaness

The computation is moved earlier to the flow, namely from
af9015_af9013_frontend_attach to af9015_read_config, so that
we can access the sum in af9015_read_config already.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-02-26 15:10:52 -03:00
..
b2c2 V4L/DVB (12294): b2c2: Use dvb-pll for Cablestar2 2009-09-12 12:17:52 -03:00
bt8xx V4L/DVB: dvb/bt8xx: Clean-up init and exit functions 2010-02-26 15:10:49 -03:00
dm1105 V4L/DVB: dm1105: use macro for read/write registers 2010-02-26 15:10:42 -03:00
dvb-core V4L/DVB: dvb-core: remove unnecessary casting of kmalloc 2010-02-26 15:10:46 -03:00
dvb-usb V4L/DVB: media: dvb/af9015, implement eeprom hashing 2010-02-26 15:10:52 -03:00
firewire V4L/DVB: firedtv: reduce memset()s 2010-02-26 15:10:48 -03:00
frontends V4L/DVB: drivers/media/dvb/frontends/stv090x.c: fix use-uninitlalised 2010-02-26 15:10:51 -03:00
mantis V4L/DVB: [Mantis] remove duplicated #include 2010-02-26 15:10:46 -03:00
pluto2 V4L/DVB (12483): Use DIV_ROUND_CLOSEST 2009-09-12 12:19:08 -03:00
pt1 V4L/DVB (13522): valj5jf8007s/t: fix compile warnings 2009-12-05 18:42:15 -02:00
siano V4L/DVB: smsir: make local variables static 2010-02-26 15:10:51 -03:00
ttpci V4L/DVB (13984): [BUDGET] Use a tuner clock output divider of 2 for TT S2-1600. 2010-02-26 15:10:37 -03:00
ttusb-budget V4L/DVB (10149): ttusb-budget: make it depend on PCI 2009-01-02 17:12:21 -02:00
ttusb-dec V4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string 2009-12-05 18:41:45 -02:00
Kconfig V4L/DVB (13808): [Mantis/Hopper] Build update for Mantis/Hopper based cards 2010-01-17 11:55:45 -02:00
Makefile V4L/DVB (13808): [Mantis/Hopper] Build update for Mantis/Hopper based cards 2010-01-17 11:55:45 -02:00