Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124114
b: refs/heads/master
c: 9bb17ee
h: refs/heads/master
v: v3
  • Loading branch information
Reinhard Nissl authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 7fb8304 commit a4b9eca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c615a27a533b6f6de6143d4d58cfa0abfdb6970d
refs/heads/master: 9bb17eee39d862611d2f34d5c611661b3dfd2e54
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/frontends/stb0899_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@

#define STB0899_OFF0_CRL_FREQ 0xf304
#define STB0899_BASE_CRL_FREQ 0x00000000
#define STB0899_CARR_FREQ (0x1fffffff << 0)
#define STB0899_CARR_FREQ (0x3fffffff << 0)
#define STB0899_OFFST_CARR_FREQ 0
#define STB0899_WIDTH_CARR_FREQ 30

Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/media/dvb/frontends/stb6100.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,11 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)

/* Baseband gain. */
if (srate >= 15000000)
g = 8;
else if (state->srate >= 5000000)
g = 12;
g = 9; // +4 dB
else if (srate >= 5000000)
g = 11; // +8 dB
else
g = 14;
g = 14; // +14 dB

regs[STB6100_G] = (regs[STB6100_G] & ~STB6100_G_G) | g;
regs[STB6100_G] &= ~STB6100_G_GCT; /* mask GCT */
Expand Down Expand Up @@ -403,7 +403,7 @@ static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency)
if ((rc = stb6100_write_reg(state, STB6100_VCO, regs[STB6100_VCO])) < 0)
return rc;

msleep(5); /* wait for LO to lock */
msleep(10); /* wait for LO to lock */
regs[STB6100_VCO] &= ~STB6100_VCO_OSCH; /* vco search disabled */
regs[STB6100_VCO] |= STB6100_VCO_OCK; /* search clock off */
if ((rc = stb6100_write_reg(state, STB6100_VCO, regs[STB6100_VCO])) < 0)
Expand Down

0 comments on commit a4b9eca

Please sign in to comment.