Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37481
b: refs/heads/master
c: 13f1371
h: refs/heads/master
i:
  37479: 7a2a40d
v: v3
  • Loading branch information
Alan Cox authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 66d0b15 commit 2e71182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e355880b838c80ff53e6386a1caad10e6f719259
refs/heads/master: 13f1371e8fb53df6b0a6c0cc7de56195bf132f1c
6 changes: 5 additions & 1 deletion trunk/drivers/media/video/zr36120.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,8 @@ int zoran_ioctl(struct video_device* dev, unsigned int cmd, void *arg)
VID_TYPE_SCALES;
if (ztv->have_tuner)
c.type |= VID_TYPE_TUNER;
if (pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL))
c.type &= ~VID_TYPE_OVERLAY;
if (ztv->have_decoder) {
c.channels = ztv->card->video_inputs;
c.audios = ztv->card->audio_inputs;
Expand Down Expand Up @@ -1284,6 +1286,8 @@ int zoran_ioctl(struct video_device* dev, unsigned int cmd, void *arg)
struct video_buffer v;
if(!capable(CAP_SYS_ADMIN))
return -EPERM;
if (pcipci_problems & (PCIPCI_FAIL|PCIAGP_FAIL))
return -ENXIO;
if (copy_from_user(&v, arg,sizeof(v)))
return -EFAULT;
DEBUG(printk(CARD_DEBUG "VIDIOCSFBUF(%p,%d,%d,%d,%d)\n",CARD,v.base, v.width,v.height,v.depth,v.bytesperline));
Expand Down Expand Up @@ -2030,7 +2034,7 @@ void release_zoran(int max)
/* free it */
free_irq(ztv->dev->irq,ztv);

/* unregister i2c_bus */
/* unregister i2c_bus */
i2c_unregister_bus((&ztv->i2c));

/* unmap and free memory */
Expand Down

0 comments on commit 2e71182

Please sign in to comment.