aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2005-11-09 00:35:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:05 -0500
commitff29d06a102b35f9523ab4b6c38c9eb9948d1c80 (patch)
treeb279125bd224819729f303ac232bf7fd9b67078a /drivers/media/dvb
parent163d8fed1640c9a6c9f54e261ad5c755e373d04e (diff)
[PATCH] dvb: stv0299: reduce i2c xfer and set register 0x12 from inittab
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>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/stv0299.c2
-rw-r--r--drivers/media/dvb/ttpci/av7110.c4
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-patch.c2
-rw-r--r--drivers/media/dvb/ttpci/budget.c4
6 files changed, 7 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/stv0299.c b/drivers/media/dvb/frontends/stv0299.c
index 35dc8439be1b..29c48665e130 100644
--- a/drivers/media/dvb/frontends/stv0299.c
+++ b/drivers/media/dvb/frontends/stv0299.c
@@ -561,8 +561,6 @@ static int stv0299_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
561 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate); 561 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
562 stv0299_writeregI(state, 0x22, 0x00); 562 stv0299_writeregI(state, 0x22, 0x00);
563 stv0299_writeregI(state, 0x23, 0x00); 563 stv0299_writeregI(state, 0x23, 0x00);
564 stv0299_readreg (state, 0x23);
565 stv0299_writeregI(state, 0x12, 0xb9);
566 564
567 state->tuner_frequency = p->frequency; 565 state->tuner_frequency = p->frequency;
568 state->fec_inner = p->u.qpsk.fec_inner; 566 state->fec_inner = p->u.qpsk.fec_inner;
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index 820eea294326..87ea52757a21 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -1566,7 +1566,7 @@ static u8 alps_bsru6_inittab[] = {
1566 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 1566 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
1567 0x10, 0x3f, // AGC2 0x3d 1567 0x10, 0x3f, // AGC2 0x3d
1568 0x11, 0x84, 1568 0x11, 0x84,
1569 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 1569 0x12, 0xb9,
1570 0x15, 0xc9, // lock detector threshold 1570 0x15, 0xc9, // lock detector threshold
1571 0x16, 0x00, 1571 0x16, 0x00,
1572 0x17, 0x00, 1572 0x17, 0x00,
@@ -1668,7 +1668,7 @@ static u8 alps_bsbe1_inittab[] = {
1668 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 1668 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
1669 0x10, 0x3f, // AGC2 0x3d 1669 0x10, 0x3f, // AGC2 0x3d
1670 0x11, 0x84, 1670 0x11, 0x84,
1671 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 1671 0x12, 0xb9,
1672 0x15, 0xc9, // lock detector threshold 1672 0x15, 0xc9, // lock detector threshold
1673 0x16, 0x00, 1673 0x16, 0x00,
1674 0x17, 0x00, 1674 0x17, 0x00,
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index ac108102b67a..aa75dc03a0b3 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -499,7 +499,7 @@ static u8 typhoon_cinergy1200s_inittab[] = {
499 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 499 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
500 0x10, 0x3f, // AGC2 0x3d 500 0x10, 0x3f, // AGC2 0x3d
501 0x11, 0x84, 501 0x11, 0x84,
502 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 502 0x12, 0xb9,
503 0x15, 0xc9, // lock detector threshold 503 0x15, 0xc9, // lock detector threshold
504 0x16, 0x00, 504 0x16, 0x00,
505 0x17, 0x00, 505 0x17, 0x00,
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 9263ed686fdc..75fb92d60998 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -490,7 +490,7 @@ static u8 alps_bsru6_inittab[] = {
490 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 490 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
491 0x10, 0x3f, // AGC2 0x3d 491 0x10, 0x3f, // AGC2 0x3d
492 0x11, 0x84, 492 0x11, 0x84,
493 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 493 0x12, 0xb9,
494 0x15, 0xc9, // lock detector threshold 494 0x15, 0xc9, // lock detector threshold
495 0x16, 0x00, 495 0x16, 0x00,
496 0x17, 0x00, 496 0x17, 0x00,
diff --git a/drivers/media/dvb/ttpci/budget-patch.c b/drivers/media/dvb/ttpci/budget-patch.c
index 8ee4ac5b536b..755df81cbc49 100644
--- a/drivers/media/dvb/ttpci/budget-patch.c
+++ b/drivers/media/dvb/ttpci/budget-patch.c
@@ -305,7 +305,7 @@ static u8 alps_bsru6_inittab[] = {
305 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 305 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
306 0x10, 0x3f, // AGC2 0x3d 306 0x10, 0x3f, // AGC2 0x3d
307 0x11, 0x84, 307 0x11, 0x84,
308 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 308 0x12, 0xb9,
309 0x15, 0xc9, // lock detector threshold 309 0x15, 0xc9, // lock detector threshold
310 0x16, 0x00, 310 0x16, 0x00,
311 0x17, 0x00, 311 0x17, 0x00,
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c
index ba308349ac9e..4fd8bbc47037 100644
--- a/drivers/media/dvb/ttpci/budget.c
+++ b/drivers/media/dvb/ttpci/budget.c
@@ -286,7 +286,7 @@ static u8 alps_bsru6_inittab[] = {
286 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 286 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
287 0x10, 0x3f, // AGC2 0x3d 287 0x10, 0x3f, // AGC2 0x3d
288 0x11, 0x84, 288 0x11, 0x84,
289 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 289 0x12, 0xb9,
290 0x15, 0xc9, // lock detector threshold 290 0x15, 0xc9, // lock detector threshold
291 0x16, 0x00, 291 0x16, 0x00,
292 0x17, 0x00, 292 0x17, 0x00,
@@ -383,7 +383,7 @@ static u8 alps_bsbe1_inittab[] = {
383 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */ 383 0x0e, 0x23, /* alpha_tmg = 2, beta_tmg = 3 */
384 0x10, 0x3f, // AGC2 0x3d 384 0x10, 0x3f, // AGC2 0x3d
385 0x11, 0x84, 385 0x11, 0x84,
386 0x12, 0xb5, // Lock detect: -64 Carrier freq detect:on 386 0x12, 0xb9,
387 0x15, 0xc9, // lock detector threshold 387 0x15, 0xc9, // lock detector threshold
388 0x16, 0x00, 388 0x16, 0x00,
389 0x17, 0x00, 389 0x17, 0x00,