Commit f6e63827 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

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: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d98c0285
...@@ -73,6 +73,8 @@ static int tda8261_get_status(struct dvb_frontend *fe, u32 *status) ...@@ -73,6 +73,8 @@ static int tda8261_get_status(struct dvb_frontend *fe, u32 *status)
u8 result = 0; u8 result = 0;
int err = 0; int err = 0;
*status = 0;
if ((err = tda8261_read(state, &result)) < 0) { if ((err = tda8261_read(state, &result)) < 0) {
printk("%s: I/O Error\n", __func__); printk("%s: I/O Error\n", __func__);
return err; return err;
...@@ -184,6 +186,7 @@ static struct dvb_tuner_ops tda8261_ops = { ...@@ -184,6 +186,7 @@ static struct dvb_tuner_ops tda8261_ops = {
.set_state = tda8261_set_state, .set_state = tda8261_set_state,
.get_state = tda8261_get_state, .get_state = tda8261_get_state,
.get_status = tda8261_get_status,
.release = tda8261_release .release = tda8261_release
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment