From e841743cf89630b111efa5feccde7ded4d96c5f7 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 7 Jul 2003 11:28:54 +0000 Subject: Make the "ext_vv_data" informations a per-device information instead of a per-extension information. This is needed for the DVB-C cards, which seem to have swapped field order and need to propagate some video4linux specific stuff for the analog module to work. --- linux/drivers/media/video/hexium_gemini.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/video/hexium_gemini.c') diff --git a/linux/drivers/media/video/hexium_gemini.c b/linux/drivers/media/video/hexium_gemini.c index 088e277f2..a82de4752 100644 --- a/linux/drivers/media/video/hexium_gemini.c +++ b/linux/drivers/media/video/hexium_gemini.c @@ -89,6 +89,8 @@ static int hexium_set_standard(struct hexium* hexium, struct hexium_data *vdec) return 0; } +static struct saa7146_ext_vv vv_data; + /* this function only gets called when the probing was successful */ static int hexium_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_data *info) { @@ -132,7 +134,7 @@ static int hexium_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_d hexium_set_input(hexium, 0); hexium->cur_input = 0; - saa7146_vv_init(dev); + saa7146_vv_init(dev,&vv_data); if( 0 != saa7146_register_device(&hexium->video_dev, dev, "hexium", VFL_TYPE_GRABBER)) { ERR(("cannot register capture v4l2 device. skipping.\n")); return -1; @@ -383,7 +385,6 @@ struct saa7146_extension hexium_extension = { .pci_tbl = &pci_tbl[0], .module = THIS_MODULE, - .ext_vv_data = &vv_data, .attach = hexium_attach, .detach = hexium_detach, -- cgit v1.2.3