diff options
author | Michael Hunold <devnull@localhost> | 2003-07-07 11:28:54 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-07-07 11:28:54 +0000 |
commit | e841743cf89630b111efa5feccde7ded4d96c5f7 (patch) | |
tree | 9ecfc993bb338715e37bcce2694a41a0f5ad5b68 /linux/drivers/media/common/saa7146_core.c | |
parent | 424b720a5ac042b07b0b1045f36c915b617ebaf1 (diff) | |
download | mediapointer-dvb-s2-e841743cf89630b111efa5feccde7ded4d96c5f7.tar.gz mediapointer-dvb-s2-e841743cf89630b111efa5feccde7ded4d96c5f7.tar.bz2 |
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.
Diffstat (limited to 'linux/drivers/media/common/saa7146_core.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/common/saa7146_core.c index 51013c6b9..0bc053a2e 100644 --- a/linux/drivers/media/common/saa7146_core.c +++ b/linux/drivers/media/common/saa7146_core.c @@ -153,7 +153,7 @@ void saa7146_pgtable_build_single(struct pci_dev *pci, struct saa7146_pgtable *p ptr = pt->cpu; for (i = 0; i < length; i++, list++) { for (p = 0; p * 4096 < list->length; p++, ptr++) { - *ptr = sg_dma_address(list) - list->offset; + *ptr = sg_dma_address(list) - list->offset; // + p } } @@ -372,6 +372,9 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent dev->module = THIS_MODULE; init_waitqueue_head(&dev->i2c_wq); + /* set some default values */ + saa7146_write(dev, BCS_CTRL, 0x80400040); + if( 0 != ext->probe) { if( 0 != ext->probe(dev) ) { DEB_D(("ext->probe() failed for %p. skipping device.\n",dev)); @@ -390,9 +393,6 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent list_add_tail(&dev->item,&saa7146_devices); saa7146_num++; - /* set some default values */ - saa7146_write(dev, BCS_CTRL, 0x80400040); - err = 0; goto out; attach_error: |