diff options
author | Patrick Boettcher <devnull@localhost> | 2005-06-07 15:53:14 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-06-07 15:53:14 +0000 |
commit | 6409ab9c7611918d543a83f7241035687908224a (patch) | |
tree | 4ad00904ac14bddafa991d71c69945605345b9d0 /linux/drivers/media/dvb | |
parent | 158f517b72617bdc3e16a4762c2a6ac39da10682 (diff) | |
download | mediapointer-dvb-s2-6409ab9c7611918d543a83f7241035687908224a.tar.gz mediapointer-dvb-s2-6409ab9c7611918d543a83f7241035687908224a.tar.bz2 |
added output_mode-field (parallel/serial) to the config-struct (needed for the USB Box).
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx22702.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx22702.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx22702.c b/linux/drivers/media/dvb/frontends/cx22702.c index d7afc3309..9f639297a 100644 --- a/linux/drivers/media/dvb/frontends/cx22702.c +++ b/linux/drivers/media/dvb/frontends/cx22702.c @@ -76,7 +76,6 @@ static u8 init_tab [] = { 0x49, 0x56, 0x6b, 0x1e, 0xc8, 0x02, - 0xf8, 0x02, 0xf9, 0x00, 0xfa, 0x00, 0xfb, 0x00, @@ -347,6 +346,7 @@ static int cx22702_init (struct dvb_frontend* fe) for (i=0; i<sizeof(init_tab); i+=2) cx22702_writereg (state, init_tab[i], init_tab[i+1]); + cx22702_writereg (state, 0xf8, (state->config->output_mode << 1) & 0x02); /* init PLL */ if (state->config->pll_init) { diff --git a/linux/drivers/media/dvb/frontends/cx22702.h b/linux/drivers/media/dvb/frontends/cx22702.h index 559fdb906..11f868067 100644 --- a/linux/drivers/media/dvb/frontends/cx22702.h +++ b/linux/drivers/media/dvb/frontends/cx22702.h @@ -35,6 +35,11 @@ struct cx22702_config /* the demodulator's i2c address */ u8 demod_address; + /* serial/parallel output */ +#define CX22702_PARALLEL_OUTPUT 0 +#define CX22702_SERIAL_OUTPUT 1 + u8 output_mode; + /* PLL maintenance */ u8 pll_address; struct dvb_pll_desc *pll_desc; |