Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221947
b: refs/heads/master
c: ea07a9f
h: refs/heads/master
i:
  221945: 5e1f64d
  221943: ab1d9af
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent f552815 commit 18b1d31
Show file tree
Hide file tree
Showing 2 changed files with 11 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: c888d4e7b2644c7ff17098b0b521c29b98e0abd0
refs/heads/master: ea07a9f2557b8ea99a0cdd778a5d94a7495bb049
11 changes: 10 additions & 1 deletion trunk/drivers/staging/stradis/stradis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@ static long saa_ioctl(struct file *file,
case VIDIOCGCAP:
{
struct video_capability b;
memset(&b, 0, sizeof(b));
strcpy(b.name, saa->video_dev.name);
b.type = VID_TYPE_CAPTURE | VID_TYPE_OVERLAY |
VID_TYPE_CLIPPING | VID_TYPE_FRAMERAM |
Expand Down Expand Up @@ -1416,6 +1417,7 @@ static long saa_ioctl(struct file *file,
case VIDIOCGWIN:
{
struct video_window vw;
memset(&vw, 0, sizeof(vw));
vw.x = saa->win.x;
vw.y = saa->win.y;
vw.width = saa->win.width;
Expand Down Expand Up @@ -1448,6 +1450,7 @@ static long saa_ioctl(struct file *file,
case VIDIOCGFBUF:
{
struct video_buffer v;
memset(&v, 0, sizeof(v));
v.base = (void *)saa->win.vidadr;
v.height = saa->win.sheight;
v.width = saa->win.swidth;
Expand Down Expand Up @@ -1492,6 +1495,7 @@ static long saa_ioctl(struct file *file,
case VIDIOCGAUDIO:
{
struct video_audio v;
memset(&v, 0, sizeof(v));
v = saa->audio_dev;
v.flags &= ~(VIDEO_AUDIO_MUTE | VIDEO_AUDIO_MUTABLE);
v.flags |= VIDEO_AUDIO_MUTABLE | VIDEO_AUDIO_VOLUME;
Expand Down Expand Up @@ -1534,6 +1538,7 @@ static long saa_ioctl(struct file *file,
case VIDIOCGUNIT:
{
struct video_unit vu;
memset(&vu, 0, sizeof(vu));
vu.video = saa->video_dev.minor;
vu.vbi = VIDEO_NO_UNIT;
vu.radio = VIDEO_NO_UNIT;
Expand Down Expand Up @@ -1888,6 +1893,7 @@ static int saa_open(struct file *file)

saa->user++;
if (saa->user > 1) {
saa->user--;
unlock_kernel();
return 0; /* device open already, don't reset */
}
Expand Down Expand Up @@ -2000,10 +2006,13 @@ static int __devinit configure_saa7146(struct pci_dev *pdev, int num)
if (retval < 0) {
dev_err(&pdev->dev, "%d: error in registering video device!\n",
num);
goto errio;
goto errirq;
}

return 0;

errirq:
free_irq(saa->irq, saa);
errio:
iounmap(saa->saa7146_mem);
err:
Expand Down

0 comments on commit 18b1d31

Please sign in to comment.