All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org
Subject: Re: [REVIEW PATCH 1/1] omap3isp: Correctly set QUERYCAP capabilities
Date: Fri, 02 Jan 2015 01:04:16 +0200	[thread overview]
Message-ID: <17321888.FUCG9ahuk4@avalon> (raw)
In-Reply-To: <1420146834-13458-1-git-send-email-sakari.ailus@iki.fi>

Hi Sakari,

Thank you for the patch.

On Thursday 01 January 2015 23:13:54 Sakari Ailus wrote:
> device_caps in struct v4l2_capability were inadequately set in
> VIDIOC_QUERYCAP. Fix this.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
> ---
>  drivers/media/platform/omap3isp/ispvideo.c |    7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/platform/omap3isp/ispvideo.c
> b/drivers/media/platform/omap3isp/ispvideo.c index cdfec27..d644164 100644
> --- a/drivers/media/platform/omap3isp/ispvideo.c
> +++ b/drivers/media/platform/omap3isp/ispvideo.c
> @@ -602,10 +602,13 @@ isp_video_querycap(struct file *file, void *fh, struct
> v4l2_capability *cap) strlcpy(cap->card, video->video.name,
> sizeof(cap->card));
>  	strlcpy(cap->bus_info, "media", sizeof(cap->bus_info));
> 
> +	cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT
> +		| V4L2_CAP_STREAMING | V4L2_CAP_DEVICE_CAPS;

I would align the | under the =. Apart from that,

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> +
>  	if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
> -		cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
> +		cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
>  	else
> -		cap->capabilities = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
> +		cap->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
> 
>  	return 0;
>  }

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2015-01-01 23:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 21:13 [REVIEW PATCH 1/1] omap3isp: Correctly set QUERYCAP capabilities Sakari Ailus
2015-01-01 23:04 ` Laurent Pinchart [this message]
2015-01-02  8:54   ` Sakari Ailus
2015-01-02 11:42     ` Laurent Pinchart

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=17321888.FUCG9ahuk4@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /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.