Skip to content

Commit

Permalink
V4L/DVB (9394): cache last successful state
Browse files Browse the repository at this point in the history
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 654dbad commit 0b8f15d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/dvb/frontends/tda8261.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ static int tda8261_set_state(struct dvb_frontend *fe,
printk("%s: I/O Error\n", __func__);
return err;
}
if (status == 1)
if (status == 1) {
printk("%s: Tuner Phase locked: status=%d\n", __func__, status);
else
state->frequency = frequency; /* cache last successful */
} else {
printk("%s: No Phase lock: status=%d\n", __func__, status);
}
} else {
printk("%s: Unknown parameter (param=%d)\n", __func__, param);
return -EINVAL;
Expand Down

0 comments on commit 0b8f15d

Please sign in to comment.