diff options
author | Oliver Endriss <o.endriss@gmx.de> | 2007-08-25 12:17:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:07:03 -0400 |
commit | 608f62d6ffbc21067e8b9a09f887a5d6cbfe7617 (patch) | |
tree | e4b6e80ffda15edf00142b82ebe54300ecbfb443 | |
parent | 849be2cdf11eef830ec2a3f916c8e7d1e51bc9fb (diff) |
V4L/DVB (6107): dvb_frontend: clean-up shutdown handling
Now dvb_powerdown_on_sleep controls whether
- whether LNB power is turned off
- whether the tuner/frontend enters sleep mode
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 32017f62a82f..b203640ef1c5 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -573,10 +573,9 @@ restart: | |||
573 | dvb_frontend_swzigzag(fe); | 573 | dvb_frontend_swzigzag(fe); |
574 | } | 574 | } |
575 | 575 | ||
576 | if (dvb_shutdown_timeout) { | 576 | if (dvb_powerdown_on_sleep) { |
577 | if (dvb_powerdown_on_sleep) | 577 | if (fe->ops.set_voltage) |
578 | if (fe->ops.set_voltage) | 578 | fe->ops.set_voltage(fe, SEC_VOLTAGE_OFF); |
579 | fe->ops.set_voltage(fe, SEC_VOLTAGE_OFF); | ||
580 | if (fe->ops.tuner_ops.sleep) { | 579 | if (fe->ops.tuner_ops.sleep) { |
581 | fe->ops.tuner_ops.sleep(fe); | 580 | fe->ops.tuner_ops.sleep(fe); |
582 | if (fe->ops.i2c_gate_ctrl) | 581 | if (fe->ops.i2c_gate_ctrl) |