[media] af9033: implement ber and ucb functions
authorHans-Frieder Vogt <hfvogt@gmx.net>
Sat, 7 Apr 2012 13:34:34 +0000 (10:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 16:19:31 +0000 (13:19 -0300)
commit47eafa5427c2da51f676e4c0b48bc851df8779f8
treea8475fb21a9c6eb1a4051bd2a6477768833a566f
parent3234bd2f193936da6180a7dc6699a75191bc44d1
[media] af9033: implement ber and ucb functions

af9033: implement read_ber and read_ucblocks functions. Version 2 of patch that
reflects my findings on the behaviour of abort_cnt, err_cnt and bit_cnt:

- bit_cnt is always 0x2710 (10000)
- abort_cnt is between 0 and 0x2710
- err_cnt is between 0 and 640000 (= 0x2710 * 8 * 8)

in the current implementation BER is calculated as the number of bit errors per
processed bits, ignoring those bits that are already discarded and counted in
abort_cnt, i.e. UCBLOCKS.

Signed-off-by: Hans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/af9033.c