Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74815
b: refs/heads/master
c: 78f3b0b
h: refs/heads/master
i:
  74813: 76e04a8
  74811: a4e6b01
  74807: da92846
  74799: be99bfa
  74783: a76b717
  74751: 457e822
v: v3
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Dec 11, 2007
1 parent d1389dd commit 2eb0e66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 820eacd84cff23b76693f4be1e28feb672f4488f
refs/heads/master: 78f3b0b672c79df9ffa55399a7d6fc4b173e9b4b
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/zl10353.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend *fe,
enum fe_bandwidth bandwidth,
u16 *nominal_rate)
{
u32 adc_clock = 22528; /* 20.480 MHz on the board(!?) */
u32 adc_clock = 45056; /* 45.056 MHz */
u8 bw;
struct zl10353_state *state = fe->demodulator_priv;

Expand All @@ -142,7 +142,7 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend *fe,
break;
}

*nominal_rate = (64 * bw * (1<<16) / (7 * 8) * 4000 / adc_clock + 2) / 4;
*nominal_rate = (bw * (1 << 23) / 7 * 125 + adc_clock / 2) / adc_clock;

dprintk("%s: bw %d, adc_clock %d => 0x%x\n",
__FUNCTION__, bw, adc_clock, *nominal_rate);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/frontends/zl10353.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct zl10353_config
u8 demod_address;

/* frequencies in kHz */
int adc_clock; // default: 22528
int adc_clock; /* default: 45056 */

/* set if no pll is connected to the secondary i2c bus */
int no_tuner;
Expand Down

0 comments on commit 2eb0e66

Please sign in to comment.