summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-10 16:50:30 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-17 11:40:31 +0300
commit3663b31b69222be90ce8bf346e0d5ba3b5ecbac0 (patch)
tree4fb80fc8690abe1af9d8a0fbd84935341dd11d2e /drivers/media/dvb-core
parent03946b2d661fc889bee4cf204a2f9853ca27c986 (diff)
downloadlinux-3663b31b69222be90ce8bf346e0d5ba3b5ecbac0.tar.xz
[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>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvb_frontend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index d764cffb2102..0b52cfc2d53d 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -2711,6 +2711,11 @@ int dvb_frontend_resume(struct dvb_frontend *fe)
else if (fe->ops.tuner_ops.init)
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;
fepriv->state = FESTATE_RETUNE;
dvb_frontend_wakeup(fe);