summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-09-20 09:37:18 +0200
committerPatrick Boettcher <pb@linuxtv.org>2006-09-20 09:37:18 +0200
commita73987f3c32ff5f30f98c258e762020e4c1ad5bc (patch)
tree6b3821ef93a249bbb848b63b931fc2f11f0dc94b /linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
parente7d20687141fe2641051b2698831e995f4965a7d (diff)
downloadmediapointer-dvb-s2-a73987f3c32ff5f30f98c258e762020e4c1ad5bc.tar.gz
mediapointer-dvb-s2-a73987f3c32ff5f30f98c258e762020e4c1ad5bc.tar.bz2
Added module parameter force_lna_activation
From: Patrick Boettcher <pb@linuxtv.org> Added a module parameter for force the activation of any LNA on a board. Suggest by Steve Toth. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dib0700_devices.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dib0700_devices.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
index 9347febaa..ffbdab15a 100644
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -12,6 +12,11 @@
#include "dib7000m.h"
#include "mt2060.h"
+static int force_lna_activation;
+module_param(force_lna_activation, int, 0644);
+MODULE_PARM_DESC(force_lna_activation, "force the activation of Low-Noise-Amplifyer(s) (LNA), "
+ "if applicable for the device (default: 0=automatic/off).");
+
/* Hauppauge Nova-T 500
* has a LNA on GPIO0 which is enabled by setting 1 */
static struct mt2060_config bristol_mt2060_config[2] = {
@@ -67,7 +72,10 @@ static int bristol_frontend_attach(struct dvb_usb_adapter *adap)
dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); msleep(10);
dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1); msleep(10);
- dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1); msleep(10); // LNA
+ if (force_lna_activation)
+ dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1);
+ else
+ dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 0);
if (dib3000mc_i2c_enumeration(&adap->dev->i2c_adap, 2, DEFAULT_DIB3000P_I2C_ADDRESS, bristol_dib3000mc_config) != 0) {
dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 0); msleep(10);