]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:48 +0000 (10:22 +0100)
commitd8a68763fd16afe3f7294c21f8203966cdcb8d2f
treecf884e0d7df913aa7852717bd18e5648af82ba60
parent4dad04fda6a067c54ffb00681ba4f78fae51f927
tda1004x: only update the frontend properties if locked

BugLink: http://bugs.launchpad.net/bugs/1553179
commit e8beb02343e7582980c6705816cd957cf4f74c7a upstream.

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

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/dvb-frontends/tda1004x.c