V4L/DVB (9394): cache last successful state
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
654dbad45d
commit
0b8f15dceb
1 changed files with 4 additions and 2 deletions
|
@ -143,10 +143,12 @@ static int tda8261_set_state(struct dvb_frontend *fe,
|
||||||
printk("%s: I/O Error\n", __func__);
|
printk("%s: I/O Error\n", __func__);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
if (status == 1)
|
if (status == 1) {
|
||||||
printk("%s: Tuner Phase locked: status=%d\n", __func__, status);
|
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);
|
printk("%s: No Phase lock: status=%d\n", __func__, status);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
printk("%s: Unknown parameter (param=%d)\n", __func__, param);
|
printk("%s: Unknown parameter (param=%d)\n", __func__, param);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue