All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Scott Jiang <scott.jiang.linux@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	linux-media@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org
Subject: Re: [PATCH 4/4 v2][FOR 3.1] v4l2: add blackfin capture bridge driver
Date: Tue, 27 Sep 2011 12:18:10 +0200	[thread overview]
Message-ID: <201109271218.10534.hverkuil@xs4all.nl> (raw)
In-Reply-To: <CAHG8p1DO9qYf8rbToqFXZ=mpbksJHJbieZRVv9NbEQOz7iy98g@mail.gmail.com>

On Tuesday, September 27, 2011 12:00:03 Scott Jiang wrote:
> >
> > What you would typically do in a case like this (if I understand it
> > correctly) is that in the s_input ioctl you first select the input in the
> > subdev, and then you can call the subdev to determine the standard and
> > format and use that information to set up the bridge. This requires that
> > the subdev is able to return a proper standard/format after an input
> > change.
> >
> > By also selecting an initial input at driver load you will ensure that
> > you always have a default std/fmt available from the very beginning.
> >
> The default input is 0. So you mean I ask the subdev std and fmt in
> probe instead of open?

Yes. In general that's the best place. There are cases where you want to do
such initialization on the first open, but that's when you need to do e.g. a
slow firmware upload. If you do not have such special requirements, then
setting up the hardware to a sane state is best done in probe.

Regards,

	Hans

> > It also looks like the s_input in the bridge driver allows for inputs that
> > return a subdev format that can't be supported by the bridge. Is that correct?
> > If so, then the board code should disallow such inputs. Frankly, that's a
> > WARN_ON since that is something that is never supposed to happen.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2011-09-27 10:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 20:59 [PATCH 1/4 v2][FOR 3.1] v4l2: add vb2_get_unmapped_area in vb2 core Scott Jiang
2011-09-19 20:59 ` [PATCH 2/4 v2][FOR 3.1] v4l2: add adv7183 decoder driver Scott Jiang
2011-09-26 13:37   ` Hans Verkuil
2011-09-19 20:59 ` [PATCH 3/4 v2][FOR 3.1] v4l2: add vs6624 sensor driver Scott Jiang
2011-09-26 13:39   ` Hans Verkuil
2011-09-19 20:59 ` [PATCH 4/4 v2][FOR 3.1] v4l2: add blackfin capture bridge driver Scott Jiang
2011-09-26 14:09   ` Hans Verkuil
2011-09-27  8:23     ` Scott Jiang
2011-09-27  9:42       ` Hans Verkuil
2011-09-27 10:00         ` Scott Jiang
2011-09-27 10:18           ` Hans Verkuil [this message]
2011-09-30 15:07   ` Guennadi Liakhovetski

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=201109271218.10534.hverkuil@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=g.liakhovetski@gmx.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=scott.jiang.linux@gmail.com \
    --cc=uclinux-dist-devel@blackfin.uclinux.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.