diff options
author | Manu Abraham <manu@linuxtv.org> | 2008-10-21 01:14:14 +0400 |
---|---|---|
committer | Manu Abraham <manu@linuxtv.org> | 2008-10-21 01:14:14 +0400 |
commit | 723dbc0b30db9de883635895dd341fbeb6f388fe (patch) | |
tree | a4b7d6ed9a28c563a3b7dbb69dbbd7b5849b4cfd /linux/drivers/media/dvb/dvb-core | |
parent | 5af7b1c77d823a240dc19f0d61549a5ab9e244e5 (diff) | |
download | mediapointer-dvb-s2-723dbc0b30db9de883635895dd341fbeb6f388fe.tar.gz mediapointer-dvb-s2-723dbc0b30db9de883635895dd341fbeb6f388fe.tar.bz2 |
Optimization: Enable gate in a symmetric/disciplined way,
rather than implementing different ways leading to confusion.
This allows multiple gate_enable/disable's in the tuner_read/write
functions, thereby lesser number of I/O operations throughout,
eventually leading to better results. As a side effect demods that
detect the STOP bit for auto closing of the gate can be avoided, thereby
a very minimal gain in disabling the auto detect feature as well.
Improves readability on the device control.
From: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 17097cdcb..56f99bb63 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -229,6 +229,8 @@ static void dvb_frontend_init(struct dvb_frontend *fe) if (fe->ops.init) fe->ops.init(fe); if (fe->ops.tuner_ops.init) { + if (fe->ops.i2c_gate_ctrl) + fe->ops.i2c_gate_ctrl(fe, 1); fe->ops.tuner_ops.init(fe); if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); |