]> git.karo-electronics.de Git - linux-beck.git/commit
[media] mb86a20s: calculate statistics at .read_status()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Jan 2013 15:28:31 +0000 (12:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 23 Jan 2013 21:10:27 +0000 (19:10 -0200)
commit09b6d21e100a8dcda7cf5a32ecd52e8008094f72
tree5fb6cd59ad010ef7cf684217cd08584d07500fb5
parent7cd4ece58f9b94372687de820c22cb2eae4a623e
[media] mb86a20s: calculate statistics at .read_status()

Instead of providing separate callbacks to read the several FE
stats properties, the better seems to use just one method that will:
    - Read lock status;
    - Read signal strength;
    - if locked, get TMCC data;
    - if locked, get DVB statistics.
As the DVB frontend thread will call this read_status callback
on every 3 seconds, and userspace can even call it earlier,
all stats data and layers layout will be updated together if
available, with is a good thing.

Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/mb86a20s.c