Skip to content

Commit

Permalink
V4L/DVB (9408): tda8261: check status to avoid lock loss
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent d98c028 commit f6e6382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/dvb/frontends/tda8261.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
};

Expand Down

0 comments on commit f6e6382

Please sign in to comment.