diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-02-17 20:31:53 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-02-17 20:31:53 +0000 |
commit | 5df5061299940e7af75ba82eadc42c4db6fd3e8f (patch) | |
tree | d63037f5ae8871952b28616a3710f04ee413664c /linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |
parent | 91b6041d1588b585acafa62239b3ff8fac2c6568 (diff) | |
download | mediapointer-dvb-s2-5df5061299940e7af75ba82eadc42c4db6fd3e8f.tar.gz mediapointer-dvb-s2-5df5061299940e7af75ba82eadc42c4db6fd3e8f.tar.bz2 |
DVB support for the pcHDTV HD2000 card
submitted by Rusty Scott
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 3da64f580..ca15bdd42 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -369,6 +369,20 @@ static struct dst_config dst_config = { }; +static int or51211_request_firmware(struct dvb_frontend* fe, const struct firmware **fw, char* name) +{ + struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv; + + return request_firmware(fw, name, &bt->bt->dev->dev); +} + +static struct or51211_config or51211_config = { + + .demod_address = 0x15, + .request_firmware = or51211_request_firmware, +}; + + static int vp3021_alps_tded4_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) { struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; @@ -458,6 +472,13 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) break; } break; + + case BTTV_PC_HDTV: + card->fe = or51211_attach(&or51211_config, card->i2c_adapter, card->bt); + if (card->fe != NULL) { + break; + } + break; } if (card->fe == NULL) { @@ -637,6 +658,12 @@ static int dvb_bt8xx_probe(struct device *dev) * RISC+FIFO ENABLE */ break; + case BTTV_PC_HDTV: + card->gpio_mode = 0x0100EC7B; + card->op_sync_orin = 0; + card->irq_err_ignore = 0; + break; + default: printk(KERN_WARNING "dvb_bt8xx: Unknown bttv card type: %d.\n", sub->core->type); |