diff options
author | Manu Abraham <manu@linuxtv.org> | 2006-02-26 22:09:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-26 22:09:29 -0500 |
commit | e7ac46469c247a931f760354deaed9cf10b75fde (patch) | |
tree | 3dd4158a80601bd5aad0160f96f6c33e213f0e9e /drivers/media/dvb/bt8xx/dvb-bt8xx.c | |
parent | 1e7eb89ba936fc1db54e247a336f3f55bdbc644d (diff) |
V4L/DVB (3389): Fix broken IF-OUT Relay handling
Fixed broken IF-OUT on pinnacle sat board.
Thanks to Edgar Toernig
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 1649846f9ceb..f5bfcd2b3803 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -239,6 +239,20 @@ static int cx24108_pll_set(struct dvb_frontend* fe, struct dvb_frontend_paramete | |||
239 | 239 | ||
240 | static int pinnsat_pll_init(struct dvb_frontend* fe) | 240 | static int pinnsat_pll_init(struct dvb_frontend* fe) |
241 | { | 241 | { |
242 | struct dvb_bt8xx_card *card = fe->dvb->priv; | ||
243 | |||
244 | bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ | ||
245 | bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ | ||
246 | |||
247 | return 0; | ||
248 | } | ||
249 | |||
250 | static int pinnsat_pll_sleep(struct dvb_frontend* fe) | ||
251 | { | ||
252 | struct dvb_bt8xx_card *card = fe->dvb->priv; | ||
253 | |||
254 | bttv_write_gpio(card->bttv_nr, 1, 0); /* relay off */ | ||
255 | |||
242 | return 0; | 256 | return 0; |
243 | } | 257 | } |
244 | 258 | ||
@@ -246,6 +260,7 @@ static struct cx24110_config pctvsat_config = { | |||
246 | .demod_address = 0x55, | 260 | .demod_address = 0x55, |
247 | .pll_init = pinnsat_pll_init, | 261 | .pll_init = pinnsat_pll_init, |
248 | .pll_set = cx24108_pll_set, | 262 | .pll_set = cx24108_pll_set, |
263 | .pll_sleep = pinnsat_pll_sleep, | ||
249 | }; | 264 | }; |
250 | 265 | ||
251 | static int microtune_mt7202dtf_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) | 266 | static int microtune_mt7202dtf_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) |