diff options
author | Manu Abraham <manu@kromtek.com> | 2006-02-26 15:31:11 +0400 |
---|---|---|
committer | Manu Abraham <manu@kromtek.com> | 2006-02-26 15:31:11 +0400 |
commit | 7e2b371f596e6f4fd7d35c314676ac983a1e5671 (patch) | |
tree | 7df0ba10a2e190439fe017c8bcb32f665e719962 /linux/drivers/media/dvb/bt8xx | |
parent | cd06ad7d360e3a4ff73943c2c955108cded4e00f (diff) | |
download | mediapointer-dvb-s2-7e2b371f596e6f4fd7d35c314676ac983a1e5671.tar.gz mediapointer-dvb-s2-7e2b371f596e6f4fd7d35c314676ac983a1e5671.tar.bz2 |
fix broken IF-OUT Relay handling
Thanks to Edgar Toernig
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 9db352157..0d1f6defc 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -240,6 +240,20 @@ static int cx24108_pll_set(struct dvb_frontend* fe, struct dvb_frontend_paramete static int pinnsat_pll_init(struct dvb_frontend* fe) { + struct dvb_bt8xx_card *card = fe->dvb->priv; + + bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ + bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ + + return 0; +} + +static int pinnsat_pll_sleep(struct dvb_frontend* fe) +{ + struct dvb_bt8xx_card *card = fe->dvb->priv; + + bttv_write_gpio(card->bttv_nr, 1, 0); /* relay off */ + return 0; } @@ -247,6 +261,7 @@ static struct cx24110_config pctvsat_config = { .demod_address = 0x55, .pll_init = pinnsat_pll_init, .pll_set = cx24108_pll_set, + .pll_sleep = pinnsat_pll_sleep, }; static int microtune_mt7202dtf_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) |