Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 762
b: refs/heads/master
c: 9990d74
h: refs/heads/master
v: v3
  • Loading branch information
Gerd Knorr authored and Linus Torvalds committed May 1, 2005
1 parent fdc87bc commit eb6e0dd
Show file tree
Hide file tree
Showing 5 changed files with 20 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: 1622c3fcf4c1c6c8267938f366ecd2a348d67d93
refs/heads/master: 9990d744bea7d28e83c420e2c9d524c7a8a2d136
15 changes: 14 additions & 1 deletion trunk/drivers/media/dvb/frontends/cx22702.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/slab.h>
#include <linux/delay.h>
#include "dvb_frontend.h"
#include "dvb-pll.h"
#include "cx22702.h"


Expand Down Expand Up @@ -203,7 +204,19 @@ static int cx22702_set_tps (struct dvb_frontend* fe, struct dvb_frontend_paramet

/* set PLL */
cx22702_writereg (state, 0x0D, cx22702_readreg(state,0x0D) &0xfe);
state->config->pll_set(fe, p);
if (state->config->pll_set) {
state->config->pll_set(fe, p);
} else if (state->config->pll_desc) {
u8 pllbuf[4];
struct i2c_msg msg = { .addr = state->config->pll_address,
.buf = pllbuf, .len = 4 };
dvb_pll_configure(state->config->pll_desc, pllbuf,
p->frequency,
p->u.ofdm.bandwidth);
i2c_transfer(state->i2c, &msg, 1);
} else {
BUG();
}
cx22702_writereg (state, 0x0D, cx22702_readreg(state,0x0D) | 1);

/* set inversion */
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/dvb/frontends/cx22702.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ struct cx22702_config
u8 demod_address;

/* PLL maintenance */
u8 pll_address;
struct dvb_pll_desc *pll_desc;

int (*pll_init)(struct dvb_frontend* fe);
int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
};
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ config VIDEO_SAA7134_DVB
depends on VIDEO_SAA7134 && DVB_CORE
select VIDEO_BUF_DVB
select DVB_MT352
select DVB_CX22702
---help---
This adds support for DVB cards based on the
Philips saa7134 chip.
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/cx88/cx88-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/suspend.h>

/* those two frontends need merging via linuxtv cvs ... */
#define HAVE_CX22702 0
#define HAVE_CX22702 1
#define HAVE_OR51132 1

#include "cx88.h"
Expand Down

0 comments on commit eb6e0dd

Please sign in to comment.