aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/dvb-usb/dib0700_devices.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c
index a39917997382..e9a2177bd16a 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -11,6 +11,11 @@
11#include "dib3000mc.h" 11#include "dib3000mc.h"
12#include "mt2060.h" 12#include "mt2060.h"
13 13
14static int force_lna_activation;
15module_param(force_lna_activation, int, 0644);
16MODULE_PARM_DESC(force_lna_activation, "force the activation of Low-Noise-Amplifyer(s) (LNA), "
17 "if applicable for the device (default: 0=automatic/off).");
18
14/* Hauppauge Nova-T 500 19/* Hauppauge Nova-T 500
15 * has a LNA on GPIO0 which is enabled by setting 1 */ 20 * has a LNA on GPIO0 which is enabled by setting 1 */
16static struct mt2060_config bristol_mt2060_config[2] = { 21static struct mt2060_config bristol_mt2060_config[2] = {
@@ -66,7 +71,10 @@ static int bristol_frontend_attach(struct dvb_usb_adapter *adap)
66 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); msleep(10); 71 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 0); msleep(10);
67 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1); msleep(10); 72 dib0700_set_gpio(adap->dev, GPIO10, GPIO_OUT, 1); msleep(10);
68 73
69 dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1); msleep(10); // LNA 74 if (force_lna_activation)
75 dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 1);
76 else
77 dib0700_set_gpio(adap->dev, GPIO0, GPIO_OUT, 0);
70 78
71 if (dib3000mc_i2c_enumeration(&adap->dev->i2c_adap, 2, DEFAULT_DIB3000P_I2C_ADDRESS, bristol_dib3000mc_config) != 0) { 79 if (dib3000mc_i2c_enumeration(&adap->dev->i2c_adap, 2, DEFAULT_DIB3000P_I2C_ADDRESS, bristol_dib3000mc_config) != 0) {
72 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 0); msleep(10); 80 dib0700_set_gpio(adap->dev, GPIO6, GPIO_OUT, 0); msleep(10);