]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tda1004x: only update the frontend properties if locked
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 3 Feb 2016 19:33:48 +0000 (17:33 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 4 Feb 2016 11:10:45 +0000 (09:10 -0200)
commitef0a0df87988a5a18c8cd040f18e3a88e6c5100a
treeed887040712ac2802f5d3e1c466757a276d717ac
parent927bc0f58b9a11ae93e3d58bea65aebd24cc7b56
[media] tda1004x: only update the frontend properties if locked

The tda1004x was updating the properties cache before locking.
If the device is not locked, the data at the registers are just
random values with no real meaning.

This caused the driver to fail with libdvbv5, as such library
calls GET_PROPERTY from time to time, in order to return the
DVB stats.

Tested with a saa7134 card 78:
ASUSTeK P7131 Dual, vendor PCI ID: 1043:4862

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/tda1004x.c