11#include <media/saa7146_vv.h>
22
3- #define BOARD_CAN_DO_VBI (dev ) (dev->revision != 0 && dev->vv_data->vbi_minor != -1)
3+ #define BOARD_CAN_DO_VBI (dev ) (dev->revision != 0 && dev->vv_data->vbi_minor != -1)
44
55/****************************************************************************/
66/* resource management functions, shamelessly stolen from saa7134 driver */
@@ -102,9 +102,9 @@ void saa7146_buffer_finish(struct saa7146_dev *dev,
102102 /* finish current buffer */
103103 if (NULL == q -> curr ) {
104104 DEB_D (("aiii. no current buffer\n" ));
105- return ;
105+ return ;
106106 }
107-
107+
108108 q -> curr -> vb .state = state ;
109109 do_gettimeofday (& q -> curr -> vb .ts );
110110 wake_up (& q -> curr -> vb .done );
@@ -143,13 +143,13 @@ void saa7146_buffer_next(struct saa7146_dev *dev,
143143 // fixme: fix this for vflip != 0
144144
145145 saa7146_write (dev , PROT_ADDR1 , 0 );
146- saa7146_write (dev , MC2 , (MASK_02 |MASK_18 ));
146+ saa7146_write (dev , MC2 , (MASK_02 |MASK_18 ));
147147
148148 /* write the address of the rps-program */
149149 saa7146_write (dev , RPS_ADDR0 , dev -> d_rps0 .dma_handle );
150150 /* turn on rps */
151151 saa7146_write (dev , MC1 , (MASK_12 | MASK_28 ));
152-
152+
153153/*
154154 printk("vdma%d.base_even: 0x%08x\n", 1,saa7146_read(dev,BASE_EVEN1));
155155 printk("vdma%d.base_odd: 0x%08x\n", 1,saa7146_read(dev,BASE_ODD1));
@@ -246,7 +246,7 @@ static int fops_open(struct inode *inode, struct file *file)
246246 goto out ;
247247 }
248248 memset (fh ,0 ,sizeof (* fh ));
249-
249+
250250 file -> private_data = fh ;
251251 fh -> dev = dev ;
252252 fh -> type = type ;
@@ -275,7 +275,7 @@ static int fops_open(struct inode *inode, struct file *file)
275275 file -> private_data = NULL ;
276276 }
277277 up (& saa7146_devices_lock );
278- return result ;
278+ return result ;
279279}
280280
281281static int fops_release (struct inode * inode , struct file * file )
@@ -405,7 +405,7 @@ static struct file_operations video_fops =
405405static void vv_callback (struct saa7146_dev * dev , unsigned long status )
406406{
407407 u32 isr = status ;
408-
408+
409409 DEB_INT (("dev:%p, isr:0x%08x\n" ,dev ,(u32 )status ));
410410
411411 if (0 != (isr & (MASK_27 ))) {
@@ -454,11 +454,11 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv)
454454 handle different devices that might need different
455455 configuration data) */
456456 dev -> ext_vv_data = ext_vv ;
457-
457+
458458 vv -> video_minor = -1 ;
459459 vv -> vbi_minor = -1 ;
460460
461- vv -> d_clipping .cpu_addr = pci_alloc_consistent (dev -> pci , SAA7146_CLIPPING_MEM , & vv -> d_clipping .dma_handle );
461+ vv -> d_clipping .cpu_addr = pci_alloc_consistent (dev -> pci , SAA7146_CLIPPING_MEM , & vv -> d_clipping .dma_handle );
462462 if ( NULL == vv -> d_clipping .cpu_addr ) {
463463 ERR (("out of memory. aborting.\n" ));
464464 kfree (vv );
@@ -468,7 +468,7 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv)
468468
469469 saa7146_video_uops .init (dev ,vv );
470470 saa7146_vbi_uops .init (dev ,vv );
471-
471+
472472 dev -> vv_data = vv ;
473473 dev -> vv_callback = & vv_callback ;
474474
@@ -480,12 +480,12 @@ int saa7146_vv_release(struct saa7146_dev* dev)
480480 struct saa7146_vv * vv = dev -> vv_data ;
481481
482482 DEB_EE (("dev:%p\n" ,dev ));
483-
483+
484484 pci_free_consistent (dev -> pci , SAA7146_RPS_MEM , vv -> d_clipping .cpu_addr , vv -> d_clipping .dma_handle );
485- kfree (vv );
485+ kfree (vv );
486486 dev -> vv_data = NULL ;
487487 dev -> vv_callback = NULL ;
488-
488+
489489 return 0 ;
490490}
491491
@@ -498,7 +498,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
498498 DEB_EE (("dev:%p, name:'%s', type:%d\n" ,dev ,name ,type ));
499499
500500 // released by vfd->release
501- vfd = video_device_alloc ();
501+ vfd = video_device_alloc ();
502502 if (vfd == NULL )
503503 return - ENOMEM ;
504504
@@ -530,7 +530,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
530530int saa7146_unregister_device (struct video_device * * vid , struct saa7146_dev * dev )
531531{
532532 struct saa7146_vv * vv = dev -> vv_data ;
533-
533+
534534 DEB_EE (("dev:%p\n" ,dev ));
535535
536536 if ( VFL_TYPE_GRABBER == (* vid )-> type ) {
0 commit comments