Commit e6876692 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] dvb_frontend: better handle lna set errors

If an attempt to set LNA fails, restore the cache to LNA_AUTO,
in order to make it to reflect the current LNA status.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 52f7b00e
...@@ -1882,6 +1882,8 @@ static int dtv_property_process_set(struct dvb_frontend *fe, ...@@ -1882,6 +1882,8 @@ static int dtv_property_process_set(struct dvb_frontend *fe,
c->lna = tvp->u.data; c->lna = tvp->u.data;
if (fe->ops.set_lna) if (fe->ops.set_lna)
r = fe->ops.set_lna(fe); r = fe->ops.set_lna(fe);
if (r < 0)
c->lna = LNA_AUTO;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment