summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2002-11-18 17:43:08 +0000
committerHolger Waechtler <devnull@localhost>2002-11-18 17:43:08 +0000
commitdeba33346d82d60a6d3a2e3717979776a9f66fbc (patch)
treeed080f5db6b08b1d6c31acaaf646b580af0a1524 /linux
parentb5627b382ad93a4420d0519a00ad6bd1fffff1f1 (diff)
downloadmediapointer-dvb-s2-deba33346d82d60a6d3a2e3717979776a9f66fbc.tar.gz
mediapointer-dvb-s2-deba33346d82d60a6d3a2e3717979776a9f66fbc.tar.bz2
implemented inversion auto detection, the voodoo "i am a LG and not an Alps"-#define is gone...
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_bsru6.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_bsru6.c b/linux/drivers/media/dvb/frontends/alps_bsru6.c
index aa4198afd..60877c8c5 100644
--- a/linux/drivers/media/dvb/frontends/alps_bsru6.c
+++ b/linux/drivers/media/dvb/frontends/alps_bsru6.c
@@ -27,6 +27,7 @@
#include "compat.h"
#include "dvb_frontend.h"
+#define CONFIG_ALPS_BSRU6_IS_LG_TDQBS00X 1
static int debug = 0;
#define dprintk if (debug) printk
@@ -68,7 +69,7 @@ u8 init_tab [] = {
0x05, 0x35, // SDAT:0 SCLT:0 I2CT:1
0x06, 0x00, // DAC mode and MSB
0x07, 0x00, // DAC LSB
- 0x08, 0x00, // DiSEqC off
+ 0x08, 0x40, // DiSEqC off
0x09, 0x00,
0x0a, 0x42,
0x0c, 0x51, // QPSK reverse:1 Nyquist:0 OP0 val:1 OP0 con:1 OP1 val:1 OP1 con:1
@@ -237,7 +238,8 @@ static
int tsa5059_set_tv_freq (struct dvb_i2c_bus *i2c, u32 freq, u8 pwr)
{
u32 div = freq / 125;
- u8 buf [4] = { (div >> 8) & 0x7f, div & 0xff, 0x84, (pwr << 5) | 0x20 };
+ u8 buf [4] = { (div >> 8) & 0x7f, div & 0xff, 0x84,
+ freq > 1530000 ? 0xc0 : 0xc4 };
dprintk ("%s\n", __FUNCTION__);
@@ -473,7 +475,7 @@ int stv0299_set_voltage (struct dvb_i2c_bus *i2c, fe_sec_voltage_t voltage)
val = stv0299_readreg (i2c, 0x0c);
val &= 0x0f;
val |= 0x40;
-
+
switch (voltage) {
case SEC_VOLTAGE_13:
return stv0299_writereg (i2c, 0x0c, val);
@@ -701,7 +703,7 @@ int bsru6_attach (struct dvb_i2c_bus *i2c)
dprintk ("%s\n", __FUNCTION__);
if (id != 0xa1 && id != 0x80)
- return -ENODEV;
+ return -ENODEV;
dvb_register_frontend (bsru6_ioctl, i2c, NULL, &bsru6_info);