Here you go, this just removes the via_fix variable and the code that
sets it.
--Larry
On Wed, 2005-07-27 at 15:18 -0400, Bryan Mayland wrote:
> Mark Knecht wrote:
>
> >"Shades of PCI Bridge troubles Batman, it looks like the Riddles has
> >returned!"
> >
> >
> It's worse than I thought, Chum, we don't even use the code that
> this was orignally added to enable! I'd suggest removing the whole
> thing, from the pci_bus = down to the end of the function, and removing
> the via_fix member from the ivtv struct altogether. I'd make a patch,
> but I've got my code in a broken place right now. Would you mind doing
> that Larry?
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO September
> 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ivtv-devel
--- ivtv-0.3.7a/driver/ivtv-driver.c 2005-07-11 07:39:30.000000000 -0500
+++ ivtv-0.3.7a-mod/driver/ivtv-driver.c 2005-07-27 15:00:19.218095192 -0500
@@ -695,9 +695,6 @@
itv->dec_dma_stat.sg_bytes = 0;
atomic_set(&itv->dec_dma_stat.type, -1);
- /* Is it a VIA or have problems with large DMA xfers */
- itv->via_fix = 0;
-
/* Encoder Options */
itv->end_gop = 0;
itv->idx_sdf_offset = 0;
@@ -804,7 +801,6 @@
const struct pci_device_id *pci_id)
{
u16 cmd;
- struct pci_dev *pci_bus;
unsigned char pci_latency;
IVTV_DEBUG(IVTV_DEBUG_INFO, "Enabling pci device\n");
@@ -857,24 +853,6 @@
" irq: %d, latency: %d, memory: 0x%lx\n",
itv->dev->irq, pci_latency, (unsigned long)itv->base_addr);
- pci_bus = pci_find_slot(0, PCI_DEVFN(0, 0));
-
- if (pci_bus == NULL) {
- IVTV_KERN_ERR("Error finding PCI Slot\n");
- return -ENXIO;
- }
-
- if (pci_bus != NULL && pci_bus->vendor == PCI_VENDOR_ID_VIA) {
- IVTV_KERN_INFO("VIA PCI device: 0x%04x vendor: 0x%04x\n",
- pci_bus->device, pci_bus->vendor);
- itv->via_fix = 1;
-
- if (pci_bus->device == 0x3189 /* VIA KT400 */ )
- itv->via_fix = 2;
- } else if (pci_bus != NULL)
- IVTV_KERN_INFO("XXX PCI device: 0x%04x vendor: 0x%04x\n",
- pci_bus->device, pci_bus->vendor);
-
return 0;
}
--- ivtv-0.3.7a/driver/ivtv-driver.h 2005-07-21 07:39:12.000000000 -0500
+++ ivtv-0.3.7a-mod/driver/ivtv-driver.h 2005-07-27 14:59:04.576442448 -0500
@@ -1086,8 +1086,6 @@
/* API Commands */
struct api_cmd api[256];
- int via_fix;
-
atomic_t streams_setup;
#ifdef LINUX26