diff options
| author | Michael Hunold <devnull@localhost> | 2002-12-23 20:37:45 +0000 |
|---|---|---|
| committer | Michael Hunold <devnull@localhost> | 2002-12-23 20:37:45 +0000 |
| commit | 6db9f8d774b8f70c56c786e1637367d5b5f2b6ca (patch) | |
| tree | 05ddacee654b31c4d0fd4ae6a3a789730a2e1f4d /linux/drivers/media/video | |
| parent | 0a77956ce8816e957f40b1b5437c6b3e2fd62e34 (diff) | |
| download | mediapointer-dvb-s2-6db9f8d774b8f70c56c786e1637367d5b5f2b6ca.tar.gz mediapointer-dvb-s2-6db9f8d774b8f70c56c786e1637367d5b5f2b6ca.tar.bz2 | |
For some unobvious reason, analog cards (ie. the MXB) and digital cards
(ie. the av7110) handle the odd/even fields differently. I added a new
field to the extension, which holds special flags of the extension and the
device. I declared the MXB way of handling fields as "normal", so the
av7110 extension sets SAA7146_EXT_SWAP_ODD_EVEN here.
@Holger: I added some superfluous "struct saa7146_dev *dev" variables
back to some functions. These cause ugly warnings at compile time, I admit,
but they are necessary if you want to use the debug macros to trace a
saa7146 register for example. Please leave them in for now -- I need this
when I switch between old-DVB / old-MXB <=> new-DVB / new-MXB drivers and
try to hack out the differences.
Diffstat (limited to 'linux/drivers/media/video')
| -rw-r--r-- | linux/drivers/media/video/mxb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/video/mxb.c b/linux/drivers/media/video/mxb.c index 572faa133..5b3c4b824 100644 --- a/linux/drivers/media/video/mxb.c +++ b/linux/drivers/media/video/mxb.c @@ -318,8 +318,8 @@ static int mxb_init_done(struct saa7146_dev* dev) /* select tuner-output on saa7111a */ i = 0; mxb->saa7111a->driver->command(mxb->saa7111a,DECODER_SET_INPUT, &i); - i = VIDEO_MODE_PAL; - mxb->saa7111a->driver->command(mxb->saa7111a,DECODER_SET_NORM, &i); +// i = VIDEO_MODE_PAL; +// mxb->saa7111a->driver->command(mxb->saa7111a,DECODER_SET_NORM, &i); /* select a tuner type */ i = 5; @@ -954,6 +954,8 @@ struct saa7146_extension extension = { .inputs = MXB_INPUTS, .audios = MXB_AUDIOS, .capabilities = V4L2_CAP_TUNER, + + .flags = SAA7146_EXT_PROVIDES_VIDEO|SAA7146_EXT_PROVIDES_VBI, .devices = &sub_data[0], .module = THIS_MODULE, @@ -983,6 +985,8 @@ struct saa7146_extension extension = { int __init mxb_init_module(void) { + struct saa7146_dev *dev = NULL; + if( 0 != saa7146_register_extension(&extension)) { DEB_S(("failed to register extension.\n")); return -ENODEV; @@ -993,6 +997,8 @@ int __init mxb_init_module(void) void __exit mxb_cleanup_module(void) { + struct saa7146_dev *dev = NULL; + saa7146_unregister_extension(&extension); } |
