Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1212
b: refs/heads/master
c: 1dfb800
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Stezenbach authored and Linus Torvalds committed May 17, 2005
1 parent 92b8e8f commit 037631f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: dd102c752c17636b2aec7977b377c41156ed19c1
refs/heads/master: 1dfb800f9d0391dee86d692142745415f5f65f81
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/tda1004x.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static int tda10046_fwupload(struct dvb_frontend* fe)

/* set parameters */
tda1004x_write_byteI(state, TDA10046H_CONFPLL2, 10);
tda1004x_write_byteI(state, TDA10046H_CONFPLL3, 0);
tda1004x_write_byteI(state, TDA10046H_CONFPLL3, state->config->n_i2c);
tda1004x_write_byteI(state, TDA10046H_FREQ_OFFSET, 99);
tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0xd4);
tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x2c);
Expand Down Expand Up @@ -547,7 +547,7 @@ static int tda10046_init(struct dvb_frontend* fe)
tda1004x_write_mask(state, TDA1004X_AUTO, 8, 0); // select HP stream
tda1004x_write_mask(state, TDA1004X_CONFC1, 0x80, 0); // disable pulse killer
tda1004x_write_byteI(state, TDA10046H_CONFPLL2, 10); // PLL M = 10
tda1004x_write_byteI(state, TDA10046H_CONFPLL3, 0); // PLL P = N = 0
tda1004x_write_byteI(state, TDA10046H_CONFPLL3, state->config->n_i2c); // PLL P = N = 0
tda1004x_write_byteI(state, TDA10046H_FREQ_OFFSET, 99); // FREQOFFS = 99
tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0xd4); // } PHY2 = -11221
tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x2c); // }
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/dvb/frontends/tda1004x.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ struct tda1004x_config
/* Does the OCLK signal need inverted? */
u8 invert_oclk;

/* value of N_I2C of the CONF_PLL3 register */
u8 n_i2c;

/* PLL maintenance */
int (*pll_init)(struct dvb_frontend* fe);
int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
Expand Down

0 comments on commit 037631f

Please sign in to comment.