Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103805
b: refs/heads/master
c: b2de231
h: refs/heads/master
i:
  103803: 7002848
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent ae60de4 commit d4ea430
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 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: 7bb846afceafdaceb88d2ed2e861585d26e353b9
refs/heads/master: b2de2313f170c3f7341d3a94365c5139a23067a7
12 changes: 8 additions & 4 deletions trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,15 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
{
v4l2_std_id *id = arg;

*id = vfd->current_norm;

dbgarg (cmd, "value=%08Lx\n", (long long unsigned) *id);
ret = 0;
/* Calls the specific handler */
if (vfd->vidioc_g_std)
ret = vfd->vidioc_g_std(file, fh, id);
else
*id = vfd->current_norm;

ret=0;
if (!ret)
dbgarg(cmd, "value=%08Lx\n", (long long unsigned)*id);
break;
}
case VIDIOC_S_STD:
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/media/v4l2-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ struct video_device
int (*vidioc_streamoff)(struct file *file, void *fh, enum v4l2_buf_type i);

/* Standard handling
G_STD and ENUMSTD are handled by videodev.c
ENUMSTD is handled by videodev.c
*/
int (*vidioc_g_std) (struct file *file, void *fh, v4l2_std_id *norm);
int (*vidioc_s_std) (struct file *file, void *fh, v4l2_std_id *norm);
int (*vidioc_querystd) (struct file *file, void *fh, v4l2_std_id *a);

Expand Down

0 comments on commit d4ea430

Please sign in to comment.