public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
	Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Subject: Re: [PATCH v2] v4l: subdev: Add pad config allocator and init
Date: Mon, 25 May 2015 14:21:17 +0300	[thread overview]
Message-ID: <1537709.Z57HprXWZ6@avalon> (raw)
In-Reply-To: <55624FE0.1040307@xs4all.nl>

Hi Hans,

On Monday 25 May 2015 00:25:36 Hans Verkuil wrote:
> On 05/24/2015 11:10 PM, Laurent Pinchart wrote:
> > From: Laurent Pinchart <laurent.pinchart@linaro.org>
> > 
> > Add a new subdev operation to initialize a subdev pad config array, and
> > a helper function to allocate and initialize the array. This can be used
> > by bridge drivers to implement try format based on subdev pad
> > operations.
> > 
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@linaro.org>
> > Acked-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
> 
> Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
> 
> Note that before this goes in there should be at least one subdev driver
> that implements init_cfg(). Perhaps adv7604?

I fully agree, this needs to be used by at least one subdev driver.

I'd go even further, I'd like to see v4l2_subdev_alloc_pad_config() used by a 
bridge driver, to implement VIDIOC_TRY_FMT. I've originally written the patch 
to implement VIDIOC_TRY_FMT (and VIDIOC_ENUM_FRAMESIZES) in a driver I'm 
developing, but it's not ready for submission to mainline yet.

Do you think a subdev driver is enough, or do we need a bridge too in order to 
merge this patch ?

> > ---
> > 
> >  drivers/media/v4l2-core/v4l2-subdev.c | 19 ++++++++++++++++++-
> >  include/media/v4l2-subdev.h           | 10 ++++++++++
> >  2 files changed, 28 insertions(+), 1 deletion(-)
> > 
> > Changes since v1:
> > 
> > - Added v4l2_subdev_free_pad_config

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2015-05-25 11:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24 21:10 [PATCH v2] v4l: subdev: Add pad config allocator and init Laurent Pinchart
2015-05-24 22:25 ` Hans Verkuil
2015-05-25 11:21   ` Laurent Pinchart [this message]
2015-05-25 11:41     ` Hans Verkuil

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=1537709.Z57HprXWZ6@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=vaibhav.hiremath@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox