[PATCH] dvb: stv0299: reduce i2c xfer and set register 0x12 from inittab
authorOliver Endriss <o.endriss@gmx.de>
Wed, 9 Nov 2005 05:35:43 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:05 +0000 (07:56 -0800)
stv0299_set_frontend(): reduced number of i2c transfers, set register 0x12
from inittab

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/stv0299.c
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/budget-av.c
drivers/media/dvb/ttpci/budget-ci.c
drivers/media/dvb/ttpci/budget-patch.c
drivers/media/dvb/ttpci/budget.c

index 35dc8439be1b8beb5d193362d19c73aa10c3afa0..29c48665e1309eb1e95500eac5909d663b09f4b1 100644 (file)
@@ -561,8 +561,6 @@ static int stv0299_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
        stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
        stv0299_writeregI(state, 0x22, 0x00);
        stv0299_writeregI(state, 0x23, 0x00);
-       stv0299_readreg (state, 0x23);
-       stv0299_writeregI(state, 0x12, 0xb9);
 
        state->tuner_frequency = p->frequency;
        state->fec_inner = p->u.qpsk.fec_inner;
index 820eea2943266abaee9e9e0212709a1f66bbd1c8..87ea52757a2171243bb7e543d22506ea35a8cb02 100644 (file)
@@ -1566,7 +1566,7 @@ static u8 alps_bsru6_inittab[] = {
        0x0e, 0x23,   /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,   // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,   // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,   // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
@@ -1668,7 +1668,7 @@ static u8 alps_bsbe1_inittab[] = {
        0x0e, 0x23,   /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,   // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,   // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,   // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
index ac108102b67a14f098b404df24e32963acac38b0..aa75dc03a0b3ae082179ff5c01a4ad2aa52b84bf 100644 (file)
@@ -499,7 +499,7 @@ static u8 typhoon_cinergy1200s_inittab[] = {
        0x0e, 0x23,             /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,             // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,             // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,             // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
index 9263ed686fdc822a8e3cec2dea8a5d5e3c1b8584..75fb92d60998128ff1ad9f08e56fe1cb153be8f6 100644 (file)
@@ -490,7 +490,7 @@ static u8 alps_bsru6_inittab[] = {
        0x0e, 0x23,             /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,             // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,             // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,             // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
index 8ee4ac5b536b9a691ed65f4a261e867772202b4b..755df81cbc49af739387b8a7e42cc8f0b41df35d 100644 (file)
@@ -305,7 +305,7 @@ static u8 alps_bsru6_inittab[] = {
        0x0e, 0x23,   /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,   // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,   // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,   // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
index ba308349ac9e34356cabc70a6140e351cc554d84..4fd8bbc47037e7e8effa17ee5a2a4d80aef14bbc 100644 (file)
@@ -286,7 +286,7 @@ static u8 alps_bsru6_inittab[] = {
        0x0e, 0x23,   /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,   // AGC2  0x3d
        0x11, 0x84,
-       0x12, 0xb5,   // Lock detect: -64  Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,   // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
@@ -383,7 +383,7 @@ static u8 alps_bsbe1_inittab[] = {
        0x0e, 0x23,  /* alpha_tmg = 2, beta_tmg = 3 */
        0x10, 0x3f,  // AGC2 0x3d
        0x11, 0x84,
-       0x12, 0xb5,  // Lock detect: -64 Carrier freq detect:on
+       0x12, 0xb9,
        0x15, 0xc9,  // lock detector threshold
        0x16, 0x00,
        0x17, 0x00,
This page took 0.030315 seconds and 5 git commands to generate.