]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:45:34 +0000 (15:45 -0500)
commitb35f45f2ebf224e06836ced6ccebb05ec700a6a9
tree5d6b696a1cc1a77e0e013b9a80188ae7f0cc415a
parent8552bea30320cc866c7fb5d9a687c3e6d15fb5c1
[media] tda1004x: only update the frontend properties if locked

[ Upstream commit e8beb02343e7582980c6705816cd957cf4f74c7a ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/dvb-frontends/tda1004x.c