From: Hans Verkuil <hverkuil@xs4all.nl>
To: Ramakrishnan Muthukrishnan <ram@fastmail.in>,
linux-media@vger.kernel.org
Cc: Ramakrishnan Muthukrishnan <ramakrmu@cisco.com>
Subject: Re: [REVIEW PATCH 4/4] media: Documentation: remove V4L2_FL_USE_FH_PRIO flag.
Date: Fri, 20 Jun 2014 09:02:18 +0200 [thread overview]
Message-ID: <53A3DC7A.7040509@xs4all.nl> (raw)
In-Reply-To: <1403198580-3126-5-git-send-email-ram@fastmail.in>
On 06/19/2014 07:23 PM, Ramakrishnan Muthukrishnan wrote:
> From: Ramakrishnan Muthukrishnan <ramakrmu@cisco.com>
>
> Signed-off-by: Ramakrishnan Muthukrishnan <ramakrmu@cisco.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> Documentation/video4linux/v4l2-framework.txt | 8 +-------
> Documentation/video4linux/v4l2-pci-skeleton.c | 5 -----
> Documentation/zh_CN/video4linux/v4l2-framework.txt | 7 +------
> 3 files changed, 2 insertions(+), 18 deletions(-)
>
> diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt
> index 667a433..a11dff0 100644
> --- a/Documentation/video4linux/v4l2-framework.txt
> +++ b/Documentation/video4linux/v4l2-framework.txt
> @@ -675,11 +675,6 @@ You should also set these fields:
> video_device is initialized you *do* know which parent PCI device to use and
> so you set dev_device to the correct PCI device.
>
> -- flags: optional. Set to V4L2_FL_USE_FH_PRIO if you want to let the framework
> - handle the VIDIOC_G/S_PRIORITY ioctls. This requires that you use struct
> - v4l2_fh. Eventually this flag will disappear once all drivers use the core
> - priority handling. But for now it has to be set explicitly.
> -
> If you use v4l2_ioctl_ops, then you should set .unlocked_ioctl to video_ioctl2
> in your v4l2_file_operations struct.
>
> @@ -909,8 +904,7 @@ struct v4l2_fh
>
> struct v4l2_fh provides a way to easily keep file handle specific data
> that is used by the V4L2 framework. New drivers must use struct v4l2_fh
> -since it is also used to implement priority handling (VIDIOC_G/S_PRIORITY)
> -if the video_device flag V4L2_FL_USE_FH_PRIO is also set.
> +since it is also used to implement priority handling (VIDIOC_G/S_PRIORITY).
>
> The users of v4l2_fh (in the V4L2 framework, not the driver) know
> whether a driver uses v4l2_fh as its file->private_data pointer by
> diff --git a/Documentation/video4linux/v4l2-pci-skeleton.c b/Documentation/video4linux/v4l2-pci-skeleton.c
> index 46904fe..006721e 100644
> --- a/Documentation/video4linux/v4l2-pci-skeleton.c
> +++ b/Documentation/video4linux/v4l2-pci-skeleton.c
> @@ -883,11 +883,6 @@ static int skeleton_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
> vdev->v4l2_dev = &skel->v4l2_dev;
> /* Supported SDTV standards, if any */
> vdev->tvnorms = SKEL_TVNORMS;
> - /* If this bit is set, then the v4l2 core will provide the support
> - * for the VIDIOC_G/S_PRIORITY ioctls. This flag will eventually
> - * go away once all drivers have been converted to use struct v4l2_fh.
> - */
> - set_bit(V4L2_FL_USE_FH_PRIO, &vdev->flags);
> video_set_drvdata(vdev, skel);
>
> ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
> diff --git a/Documentation/zh_CN/video4linux/v4l2-framework.txt b/Documentation/zh_CN/video4linux/v4l2-framework.txt
> index 0da95db..2b828e6 100644
> --- a/Documentation/zh_CN/video4linux/v4l2-framework.txt
> +++ b/Documentation/zh_CN/video4linux/v4l2-framework.txt
> @@ -580,11 +580,6 @@ release()回调必须被设置,且在最后一个 video_device 用户退出之
> v4l2_device 无法与特定的 PCI 设备关联,所有没有设置父设备。但当
> video_device 配置后,就知道使用哪个父 PCI 设备了。
>
> -- flags:可选。如果你要让框架处理设置 VIDIOC_G/S_PRIORITY ioctls,
> - 请设置 V4L2_FL_USE_FH_PRIO。这要求你使用 v4l2_fh 结构体。
> - 一旦所有驱动使用了核心的优先级处理,最终这个标志将消失。但现在它
> - 必须被显式设置。
> -
> 如果你使用 v4l2_ioctl_ops,则应该在 v4l2_file_operations 结构体中
> 设置 .unlocked_ioctl 指向 video_ioctl2。
>
> @@ -789,7 +784,7 @@ v4l2_fh 结构体
> -------------
>
> v4l2_fh 结构体提供一个保存用于 V4L2 框架的文件句柄特定数据的简单方法。
> -如果 video_device 的 flag 设置了 V4L2_FL_USE_FH_PRIO 标志,新驱动
> +如果 video_device 标志,新驱动
> 必须使用 v4l2_fh 结构体,因为它也用于实现优先级处理(VIDIOC_G/S_PRIORITY)。
>
> v4l2_fh 的用户(位于 V4l2 框架中,并非驱动)可通过测试
>
prev parent reply other threads:[~2014-06-20 7:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 17:22 [REVIEW PATCH] media: remove V4L2_FL_USE_FH_PRIO flag and its usage Ramakrishnan Muthukrishnan
2014-06-19 17:22 ` [REVIEW PATCH 1/4] media: v4l2-core: remove the use of V4L2_FL_USE_FH_PRIO flag Ramakrishnan Muthukrishnan
2014-06-20 7:00 ` Hans Verkuil
2014-06-19 17:22 ` [REVIEW PATCH 2/4] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO Ramakrishnan Muthukrishnan
2014-06-20 7:01 ` Hans Verkuil
2014-06-19 17:22 ` [REVIEW PATCH 3/4] media: v4l2-dev.h: remove V4L2_FL_USE_FH_PRIO flag Ramakrishnan Muthukrishnan
2014-06-20 7:01 ` Hans Verkuil
2014-06-19 17:23 ` [REVIEW PATCH 4/4] media: Documentation: " Ramakrishnan Muthukrishnan
2014-06-20 7:02 ` Hans Verkuil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53A3DC7A.7040509@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=ram@fastmail.in \
--cc=ramakrmu@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.