[media] DVB: stb0899: speed up getting BER values
authorKlaus Schmidinger <Klaus.Schmidinger@tvdr.de>
Sat, 2 Jun 2012 14:04:17 +0000 (11:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Jun 2012 22:29:59 +0000 (19:29 -0300)
commitfdaaee6c4a63e364b7f9c8bfdb218e6aaa65f1cf
tree97f0056131eed4460cb946ac36a225703b2d64ea
parent4a62817095696b9831721485bb5c607eba86633f
[media] DVB: stb0899: speed up getting BER values

stb0899_read_ber() takes 500ms (half a second!) to deliver the current
BER value. Apparently it takes 5 subsequent readings, with a 100ms pause
between them (and even before the first one). This is a real performance
brake if an application freqeuently reads the BER of several devices.
The attached patch reduces this to a single reading, with no more pausing.
I didn't observe any negative side effects of this change.

Signed-off-by: Klaus Schmidinger <Klaus.Schmidinger@tvdr.de>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c