mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
[media] dvb_frontend: resume tone and voltage
As SEC tone and voltage could have changed during suspend(), restore them to their previous values at resume(). Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
03946b2d66
commit
3663b31b69
@ -2711,6 +2711,11 @@ int dvb_frontend_resume(struct dvb_frontend *fe)
|
|||||||
else if (fe->ops.tuner_ops.init)
|
else if (fe->ops.tuner_ops.init)
|
||||||
ret = fe->ops.tuner_ops.init(fe);
|
ret = fe->ops.tuner_ops.init(fe);
|
||||||
|
|
||||||
|
if (fe->ops.set_tone && fepriv->tone != -1)
|
||||||
|
fe->ops.set_tone(fe, fepriv->tone);
|
||||||
|
if (fe->ops.set_voltage && fepriv->voltage != -1)
|
||||||
|
fe->ops.set_voltage(fe, fepriv->voltage);
|
||||||
|
|
||||||
fe->exit = DVB_FE_NO_EXIT;
|
fe->exit = DVB_FE_NO_EXIT;
|
||||||
fepriv->state = FESTATE_RETUNE;
|
fepriv->state = FESTATE_RETUNE;
|
||||||
dvb_frontend_wakeup(fe);
|
dvb_frontend_wakeup(fe);
|
||||||
|
Loading…
Reference in New Issue
Block a user