]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] DVB: lgdt330x frontend: some bug fixes & add lgdt3303 support
authorMichael Krufky <mkrufky@m1k.net>
Wed, 10 Aug 2005 00:48:54 +0000 (17:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 10 Aug 2005 00:59:52 +0000 (17:59 -0700)
This patch removes the tda9887 stuff from lgdt330x.c.  It's experimental code
which wasn't supposed to leak out and we don't want it in 2.6.13.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Acked-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/lgdt330x.c

index e1c71afad214a33f0ec9f181a540d825b78503e9..1f1cd7a8d500846c07e8fd4fa49c0d8335cd7443 100644 (file)
@@ -172,38 +172,6 @@ static int lgdt330x_SwReset(struct lgdt330x_state* state)
        }
 }
 
-#ifdef MUTE_TDA9887
-static int i2c_write_ntsc_demod (struct lgdt330x_state* state, u8 buf[2])
-{
-       struct i2c_msg msg =
-               { .addr = 0x43,
-                 .flags = 0,
-                 .buf = buf,
-                 .len = 2 };
-       int err;
-
-       if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) {
-                       printk(KERN_WARNING "lgdt330x: %s error (addr %02x <- %02x, err = %i)\n", __FUNCTION__, msg.buf[0], msg.buf[1], err);
-               if (err < 0)
-                       return err;
-               else
-                       return -EREMOTEIO;
-       }
-       return 0;
-}
-
-static void fiddle_with_ntsc_if_demod(struct lgdt330x_state* state)
-{
-       // Experimental code
-       u8 buf0[] = {0x00, 0x20};
-       u8 buf1[] = {0x01, 0x00};
-       u8 buf2[] = {0x02, 0x00};
-
-       i2c_write_ntsc_demod(state, buf0);
-       i2c_write_ntsc_demod(state, buf1);
-       i2c_write_ntsc_demod(state, buf2);
-}
-#endif
 
 static int lgdt330x_init(struct dvb_frontend* fe)
 {
@@ -267,9 +235,6 @@ static int lgdt330x_init(struct dvb_frontend* fe)
                chip_name = "LGDT3303";
                err = i2c_write_demod_bytes(state, lgdt3303_init_data,
                                                                        sizeof(lgdt3303_init_data));
-#ifdef MUTE_TDA9887
-               fiddle_with_ntsc_if_demod(state);
-#endif
                break;
        default:
                chip_name = "undefined";