summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2007-09-22 20:36:34 +0400
committerManu Abraham <manu@linuxtv.org>2007-09-22 20:36:34 +0400
commit7b4a8a2334baa31b84d8061fd3e05ea7561ae913 (patch)
tree00f219c7293eb7e811f856564b9ea541de726413 /linux/drivers
parentae7e53c40e02b87506e64751e72109bdee762b27 (diff)
downloadmediapointer-dvb-s2-7b4a8a2334baa31b84d8061fd3e05ea7561ae913.tar.gz
mediapointer-dvb-s2-7b4a8a2334baa31b84d8061fd3e05ea7561ae913.tar.bz2
cache last successful state
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/frontends/tda8261.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda8261.c b/linux/drivers/media/dvb/frontends/tda8261.c
index dc7dc025c..616d88b07 100644
--- a/linux/drivers/media/dvb/frontends/tda8261.c
+++ b/linux/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;