diff options
author | Michael Krufky <devnull@localhost> | 2005-07-26 05:53:44 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-07-26 05:53:44 +0000 |
commit | d51e80de68207b4e427297bdc31578557fb40502 (patch) | |
tree | 15ba1b843f00133f6bb166706123d9c9dc456cdf | |
parent | 76216b200b94d2dfba09c5c57787cd9a626b3e51 (diff) | |
download | mediapointer-dvb-s2-d51e80de68207b4e427297bdc31578557fb40502.tar.gz mediapointer-dvb-s2-d51e80de68207b4e427297bdc31578557fb40502.tar.bz2 |
* cx88-dvb.c:
- adapt lgdt330x calls to structural changes within lgdt330x driver.
- add testing code for FusionHDTV5 Gold ATSC support. .dvb is #if 0'd
in cx88-cards.c It will be enabled after successful testing w/ hw.
Signed-off-By: Mac Michaels <wmichaels1@earthlink.net>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-dvb.c | 48 | ||||
-rw-r--r-- | v4l/ChangeLog | 10 |
2 files changed, 46 insertions, 12 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c index b53e39323..eafc3cd28 100644 --- a/linux/drivers/media/video/cx88/cx88-dvb.c +++ b/linux/drivers/media/video/cx88/cx88-dvb.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-dvb.c,v 1.54 2005/07/25 05:13:50 mkrufky Exp $ + * $Id: cx88-dvb.c,v 1.55 2005/07/26 05:53:44 mkrufky Exp $ * * device driver for Conexant 2388x based TV cards * MPEG Transport Stream (DVB) routines @@ -217,14 +217,32 @@ static struct or51132_config pchdtv_hd3000 = { #ifdef HAVE_LGDT330X static int lgdt330x_pll_set(struct dvb_frontend* fe, - struct dvb_frontend_parameters* params, - u8* pllbuf) + struct dvb_frontend_parameters* params) { + /* FIXME make this routine use the tuner-simple code. + * It could probably be shared with a number of ATSC + * frontends. Many share the same tuner with analog TV. */ + struct cx8802_dev *dev= fe->dvb->priv; + u8 buf[4]; + struct i2c_msg msg = + { .addr = dev->core->pll_addr, .flags = 0, .buf = buf, .len = 4 }; + int err; - pllbuf[0] = dev->core->pll_addr; - dvb_pll_configure(dev->core->pll_desc, &pllbuf[1], - params->frequency, 0); + dvb_pll_configure(dev->core->pll_desc, buf, params->frequency, 0); + dprintk(1, "%s: tuner at 0x%02x bytes: 0x%02x 0x%02x 0x%02x 0x%02x\n", + __FUNCTION__, msg.addr, buf[0],buf[1],buf[2],buf[3]); + if ((err = i2c_transfer +(&dev->core->i2c_adap, +&msg, 1)) != 1) { + printk(KERN_WARNING "cx88-dvb: %s error " + "(addr %02x <- %02x, err = %i)\n", + __FUNCTION__, buf[0], buf[1], err); + if (err < 0) + return err; + else + return -EREMOTEIO; + } return 0; } @@ -253,6 +271,17 @@ static int lgdt330x_set_ts_param(struct dvb_frontend* fe, int is_punctured) static struct lgdt330x_config fusionhdtv_3_gold = { .demod_address = 0x0e, + .chip = LGDT3302, + .serial_mpeg = 1, + .pll_set = lgdt330x_pll_set, + .set_ts_params = lgdt330x_set_ts_param, +}; + + +static struct lgdt330x_config fusionhdtv_5_gold = { + .demod_address = 0x0e, + .chip = LGDT3303, + .serial_mpeg = 1, .pll_set = lgdt330x_pll_set, .set_ts_params = lgdt330x_set_ts_param, }; @@ -341,8 +370,6 @@ static int dvb_register(struct cx8802_dev *dev) &dev->core->i2c_adap); } break; -#if 0 - /* The following code will be enabled once lgdt3303 is ready */ case CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD: dev->ts_gen_cntrl = 0x08; { @@ -351,16 +378,15 @@ static int dvb_register(struct cx8802_dev *dev) cx_clear(MO_GP0_IO, 1); mdelay(100); - cx_set(MO_GP0_IO, 9); + cx_set(MO_GP0_IO, 1); mdelay(200); dev->core->pll_addr = 0x61; dev->core->pll_desc = &dvb_pll_tua6034; - dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_3_gold, + dev->dvb.frontend = lgdt330x_attach(&fusionhdtv_5_gold, &dev->core->i2c_adap); } break; #endif -#endif default: printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n", dev->core->name); diff --git a/v4l/ChangeLog b/v4l/ChangeLog index e768b624f..80159d724 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,5 +1,13 @@ -2005-07-25 17:29 mchehab +2005-07-26 05:46 mkrufky + * cx88-dvb.c: + - adapt lgdt330x calls to structural changes within lgdt330x driver. + - add testing code for FusionHDTV5 Gold ATSC support. .dvb is #if 0'd + in cx88-cards.c It will be enabled after successful testing w/ hw. + Signed-off-By: Mac Michaels <wmichaels1@earthlink.net> + Signed-off-by: Michael Krufky <mkrufky@m1k.net> + +2005-07-25 17:29 mchehab * msp3400.c: - try_to_freeze moved to the right place. * tvaudio.c: |