diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-09-22 12:36:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:15 -0500 |
commit | 0b8f15dcebb58ef8956203803c6de8f41a173dbc (patch) | |
tree | 9b8e3135e4368f93e47ae965532657b16d4b948e | |
parent | 654dbad45d83ef1a1d234940705d775dc813a501 (diff) |
V4L/DVB (9394): cache last successful state
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/tda8261.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda8261.c b/drivers/media/dvb/frontends/tda8261.c index dc7dc025ceb7..616d88b07158 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, | |||
143 | printk("%s: I/O Error\n", __func__); | 143 | printk("%s: I/O Error\n", __func__); |
144 | return err; | 144 | return err; |
145 | } | 145 | } |
146 | if (status == 1) | 146 | if (status == 1) { |
147 | printk("%s: Tuner Phase locked: status=%d\n", __func__, status); | 147 | printk("%s: Tuner Phase locked: status=%d\n", __func__, status); |
148 | else | 148 | state->frequency = frequency; /* cache last successful */ |
149 | } else { | ||
149 | printk("%s: No Phase lock: status=%d\n", __func__, status); | 150 | printk("%s: No Phase lock: status=%d\n", __func__, status); |
151 | } | ||
150 | } else { | 152 | } else { |
151 | printk("%s: Unknown parameter (param=%d)\n", __func__, param); | 153 | printk("%s: Unknown parameter (param=%d)\n", __func__, param); |
152 | return -EINVAL; | 154 | return -EINVAL; |