cx18-ioctl.c (0e8025b9f6011a6bd69d01080d584bc95a89d02e) cx18-ioctl.c (4f996594ceaf6c3f9bc42b40c40b0f7f87b79c86)
1/*
2 * cx18 ioctl system call
3 *
4 * Derived from ivtv-ioctl.c
5 *
6 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
7 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
8 *

--- 513 unchanged lines hidden (view full) ---

522 cropcap->bounds.width = 720;
523 cropcap->bounds.height = cx->is_50hz ? 576 : 480;
524 cropcap->pixelaspect.numerator = cx->is_50hz ? 59 : 10;
525 cropcap->pixelaspect.denominator = cx->is_50hz ? 54 : 11;
526 cropcap->defrect = cropcap->bounds;
527 return 0;
528}
529
1/*
2 * cx18 ioctl system call
3 *
4 * Derived from ivtv-ioctl.c
5 *
6 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
7 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
8 *

--- 513 unchanged lines hidden (view full) ---

522 cropcap->bounds.width = 720;
523 cropcap->bounds.height = cx->is_50hz ? 576 : 480;
524 cropcap->pixelaspect.numerator = cx->is_50hz ? 59 : 10;
525 cropcap->pixelaspect.denominator = cx->is_50hz ? 54 : 11;
526 cropcap->defrect = cropcap->bounds;
527 return 0;
528}
529
530static int cx18_s_crop(struct file *file, void *fh, struct v4l2_crop *crop)
530static int cx18_s_crop(struct file *file, void *fh, const struct v4l2_crop *crop)
531{
532 struct cx18_open_id *id = fh2id(fh);
533 struct cx18 *cx = id->cx;
534
535 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
536 return -EINVAL;
537 CX18_DEBUG_WARN("VIDIOC_S_CROP not implemented\n");
538 return -EINVAL;

--- 656 unchanged lines hidden ---
531{
532 struct cx18_open_id *id = fh2id(fh);
533 struct cx18 *cx = id->cx;
534
535 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
536 return -EINVAL;
537 CX18_DEBUG_WARN("VIDIOC_S_CROP not implemented\n");
538 return -EINVAL;

--- 656 unchanged lines hidden ---