Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44080
b: refs/heads/master
c: 7964b1b
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 10, 2006
1 parent 3330add commit 1069e33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2aa92ffd58493887adde850fe510031e48f12bac
refs/heads/master: 7964b1b1c27dea88eb89b10f774893ec11cf973d
13 changes: 13 additions & 0 deletions trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,9 +1088,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
case VIDIOC_G_AUDIO:
{
struct v4l2_audio *p=arg;
__u32 index=p->index;

if (!vfd->vidioc_g_audio)
break;

memset(p,0,sizeof(*p));
p->index=index;
dbgarg(cmd, "Get for index=%d\n", p->index);
ret=vfd->vidioc_g_audio(file, fh, p);
if (!ret)
Expand Down Expand Up @@ -1329,8 +1333,14 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
case VIDIOC_G_TUNER:
{
struct v4l2_tuner *p=arg;
__u32 index=p->index;

if (!vfd->vidioc_g_tuner)
break;

memset(p,0,sizeof(*p));
p->index=index;

ret=vfd->vidioc_g_tuner(file, fh, p);
if (!ret)
dbgarg (cmd, "index=%d, name=%s, type=%d, "
Expand Down Expand Up @@ -1363,6 +1373,9 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
struct v4l2_frequency *p=arg;
if (!vfd->vidioc_g_frequency)
break;

memset(p,0,sizeof(*p));

ret=vfd->vidioc_g_frequency(file, fh, p);
if (!ret)
dbgarg (cmd, "tuner=%d, type=%d, frequency=%d\n",
Expand Down

0 comments on commit 1069e33

Please sign in to comment.