pvrusb2-v4l2.c (0e8025b9f6011a6bd69d01080d584bc95a89d02e) | pvrusb2-v4l2.c (4f996594ceaf6c3f9bc42b40c40b0f7f87b79c86) |
---|---|
1/* 2 * 3 * 4 * Copyright (C) 2005 Mike Isely <isely@pobox.com> 5 * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 746 unchanged lines hidden (view full) --- 755 ret = pvr2_ctrl_get_value( 756 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPH), &val); 757 if (ret != 0) 758 return -EINVAL; 759 crop->c.height = val; 760 return 0; 761} 762 | 1/* 2 * 3 * 4 * Copyright (C) 2005 Mike Isely <isely@pobox.com> 5 * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 746 unchanged lines hidden (view full) --- 755 ret = pvr2_ctrl_get_value( 756 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_CROPH), &val); 757 if (ret != 0) 758 return -EINVAL; 759 crop->c.height = val; 760 return 0; 761} 762 |
763static int pvr2_s_crop(struct file *file, void *priv, struct v4l2_crop *crop) | 763static int pvr2_s_crop(struct file *file, void *priv, const struct v4l2_crop *crop) |
764{ 765 struct pvr2_v4l2_fh *fh = file->private_data; 766 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; 767 int ret; 768 769 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 770 return -EINVAL; 771 ret = pvr2_ctrl_set_value( --- 642 unchanged lines hidden --- | 764{ 765 struct pvr2_v4l2_fh *fh = file->private_data; 766 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; 767 int ret; 768 769 if (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) 770 return -EINVAL; 771 ret = pvr2_ctrl_set_value( --- 642 unchanged lines hidden --- |