[media] cx24120: make sure tuner is locked at get_frontend
authorJemma Denson <jdenson@gmail.com>
Sun, 28 Feb 2016 18:29:50 +0000 (15:29 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 17:26:55 +0000 (14:26 -0300)
commit035cad576d4e8c472a97b8913f92f73c93205fd3
treeea7091bd2e45ab75793a8276305445ea8a0f65aa
parent565e37d168ee842c5f6349a5530f8e85651ec8e5
[media] cx24120: make sure tuner is locked at get_frontend

Change get_frontend to re-check current lock status rather than relying
on a cached value from get_status. Removes potential for tuning failure
if get_frontend is called during tuning.

Probably not too essential as other changes work around this:
https://patchwork.linuxtv.org/patch/32845/

Signed-off-by: Jemma Denson <jdenson@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/cx24120.c