From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Anatolij Gustschin <agust@denx.de>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hverkuil@xs4all.nl>,
Detlev Zundel <dzu@denx.de>
Subject: Re: [2/2] media: fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support
Date: Wed, 22 Dec 2010 15:03:36 -0200 [thread overview]
Message-ID: <4D122F68.5040204@redhat.com> (raw)
In-Reply-To: <1292264377-31877-2-git-send-email-agust@denx.de>
Em 13-12-2010 16:19, Anatolij Gustschin escreveu:
> VIDIOC_QUERYSTD and VIDIOC_G_STD ioctls are currently not
> supported in the FSL VIU driver. The decoder subdevice
> driver saa7115 extended by previous patch supports QUERYSTD
> for saa7113, so we add the appropriate ioctls to the VIU
> driver to be able to determine the video input's standard.
This patch looks ok, but as it is somewhat dependent on the
saa7113 patch, please re-send it together with the other patch
for me to pull both together.
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
>
> ---
> drivers/media/video/fsl-viu.c | 21 +++++++++++++++++++++
> 1 files changed, 21 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/media/video/fsl-viu.c b/drivers/media/video/fsl-viu.c
> index b8faff2..04be6eb 100644
> --- a/drivers/media/video/fsl-viu.c
> +++ b/drivers/media/video/fsl-viu.c
> @@ -194,6 +194,8 @@ struct viu_dev {
>
> /* decoder */
> struct v4l2_subdev *decoder;
> +
> + v4l2_std_id std;
> };
>
> struct viu_fh {
> @@ -933,14 +935,31 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
> #define decoder_call(viu, o, f, args...) \
> v4l2_subdev_call(viu->decoder, o, f, ##args)
>
> +static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *std_id)
> +{
> + struct viu_fh *fh = priv;
> +
> + decoder_call(fh->dev, video, querystd, std_id);
> + return 0;
> +}
> +
> static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *id)
> {
> struct viu_fh *fh = priv;
>
> + fh->dev->std = *id;
> decoder_call(fh->dev, core, s_std, *id);
> return 0;
> }
>
> +static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *std_id)
> +{
> + struct viu_fh *fh = priv;
> +
> + *std_id = fh->dev->std;
> + return 0;
> +}
> +
> /* only one input in this driver */
> static int vidioc_enum_input(struct file *file, void *priv,
> struct v4l2_input *inp)
> @@ -1397,7 +1416,9 @@ static const struct v4l2_ioctl_ops viu_ioctl_ops = {
> .vidioc_querybuf = vidioc_querybuf,
> .vidioc_qbuf = vidioc_qbuf,
> .vidioc_dqbuf = vidioc_dqbuf,
> + .vidioc_g_std = vidioc_g_std,
> .vidioc_s_std = vidioc_s_std,
> + .vidioc_querystd = vidioc_querystd,
> .vidioc_enum_input = vidioc_enum_input,
> .vidioc_g_input = vidioc_g_input,
> .vidioc_s_input = vidioc_s_input,
>
next prev parent reply other threads:[~2010-12-22 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-13 18:19 [PATCH 1/2] media: saa7115: allow input standard autodetection for SAA7113 Anatolij Gustschin
2010-12-13 18:19 ` [PATCH 2/2] media: fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support Anatolij Gustschin
2010-12-22 17:03 ` Mauro Carvalho Chehab [this message]
2010-12-22 16:50 ` [1/2] media: saa7115: allow input standard autodetection for SAA7113 Mauro Carvalho Chehab
2010-12-22 20:31 ` [PATCH v2 1/2] media: saa7115: allow input standard autodetection for more chips Anatolij Gustschin
2010-12-22 20:31 ` [PATCH v2 2/2] media: fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support Anatolij Gustschin
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=4D122F68.5040204@redhat.com \
--to=mchehab@redhat.com \
--cc=agust@denx.de \
--cc=dzu@denx.de \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/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.