From 6db9f8d774b8f70c56c786e1637367d5b5f2b6ca Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 23 Dec 2002 20:37:45 +0000 Subject: 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. --- linux/drivers/media/dvb/av7110/av7110.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linux/drivers/media/dvb/av7110/av7110.c') diff --git a/linux/drivers/media/dvb/av7110/av7110.c b/linux/drivers/media/dvb/av7110/av7110.c index a2f8448aa..eae95837c 100644 --- a/linux/drivers/media/dvb/av7110/av7110.c +++ b/linux/drivers/media/dvb/av7110/av7110.c @@ -4779,6 +4779,9 @@ void av7110_dec_use(struct saa7146_dev* adap) #endif +/* FIXME: 0x3a seems to be a little too small, you'll notice a small black bar on + some channels. perhaps increase this to 0x42? looks good for me, but is not + based on facts... (MiHu) */ static struct saa7146_standard standard[] = { { "PAL", V4L2_STD_PAL, 0x15, 288, 576, 0x3a, 720, 721, 576, 768 }, @@ -4792,6 +4795,10 @@ struct saa7146_extension av7110_extension = { .audios = 1, .capabilities = 0, + /* FIXME: SAA7146_EXT_PROVIDES_VIDEO not true for budget cards, + separate these two... */ + .flags = SAA7146_EXT_PROVIDES_VIDEO|SAA7146_EXT_SWAP_ODD_EVEN + .devices = &sub_data[0], .module = THIS_MODULE, -- cgit v1.2.3