summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2007-09-29 02:06:06 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 22:53:17 +0300
commitf6e6382764f49ca0d94bd7dcd791456838e347b9 (patch)
tree107bcf4168b1d3f05edb1c5bc24ba08083f8a58f /drivers/media
parentd98c02859fbeefe19e6b182997c6a8b3c9c32acc (diff)
downloadlinux-f6e6382764f49ca0d94bd7dcd791456838e347b9.tar.xz
V4L/DVB (9408): tda8261: check status to avoid lock loss
We need to check for tuner LOCK LOSS, especially in the case of simple PLL's Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/frontends/tda8261.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda8261.c b/drivers/media/dvb/frontends/tda8261.c
index a6cd2b362b6e..9cbd511d749e 100644
--- a/drivers/media/dvb/frontends/tda8261.c
+++ b/drivers/media/dvb/frontends/tda8261.c
@@ -73,6 +73,8 @@ static int tda8261_get_status(struct dvb_frontend *fe, u32 *status)
u8 result = 0;
int err = 0;
+ *status = 0;
+
if ((err = tda8261_read(state, &result)) < 0) {
printk("%s: I/O Error\n", __func__);
return err;
@@ -184,6 +186,7 @@ static struct dvb_tuner_ops tda8261_ops = {
.set_state = tda8261_set_state,
.get_state = tda8261_get_state,
+ .get_status = tda8261_get_status,
.release = tda8261_release
};