summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/tda8261.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/tda8261.c')
-rw-r--r--drivers/media/dvb/frontends/tda8261.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda8261.c b/drivers/media/dvb/frontends/tda8261.c
index dc7dc025ceb..616d88b0715 100644
--- a/drivers/media/dvb/frontends/tda8261.c
+++ b/drivers/media/dvb/frontends/tda8261.c
@@ -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;