From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Helen Koike <helen.koike@collabora.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, jgebben@codeaurora.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH 2/2] [media] docs-rst: add V4L2_INPUT_TYPE_DEFAULT
Date: Fri, 31 Mar 2017 06:47:59 -0300 [thread overview]
Message-ID: <20170331064759.4dbab034@vento.lan> (raw)
In-Reply-To: <20170330202626.GM16657@valkosipuli.retiisi.org.uk>
Em Thu, 30 Mar 2017 23:26:26 +0300
Sakari Ailus <sakari.ailus@iki.fi> escreveu:
> Hi Helen and others,
>
> On Thu, Mar 30, 2017 at 01:02:18PM -0300, Helen Koike wrote:
> > add documentation for V4L2_INPUT_TYPE_DEFAULT
> >
> > Signed-off-by: Helen Koike <helen.koike@collabora.com>
> > ---
> > Documentation/media/uapi/v4l/vidioc-enuminput.rst | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/media/uapi/v4l/vidioc-enuminput.rst b/Documentation/media/uapi/v4l/vidioc-enuminput.rst
> > index 17aaaf9..0237e10 100644
> > --- a/Documentation/media/uapi/v4l/vidioc-enuminput.rst
> > +++ b/Documentation/media/uapi/v4l/vidioc-enuminput.rst
> > @@ -112,6 +112,9 @@ at index zero, incrementing by one until the driver returns ``EINVAL``.
> > :stub-columns: 0
> > :widths: 3 1 4
> >
> > + * - ``V4L2_INPUT_TYPE_DEFAULT``
> > + - 0
> > + - This is the default value returned when no input is supported.
Input *IS* supported. The device has one input. So, the description is wrong ;)
> > * - ``V4L2_INPUT_TYPE_TUNER``
> > - 1
> > - This input uses a tuner (RF demodulator).
>
> What would you think of calling this input as "unknown" instead of
> "default"? That's what an input which isn't really specified actually is.
Yeah, default seems a bad name to me, too.
Actually, I think that the best here would be to not create a new type.
just use V4L2_INPUT_TYPE_CAMERA. That's actually the default for the
embedded drivers. If a driver is providing input for something else,
then it should implement vidioc_enuminput method.
Thanks,
Mauro
next prev parent reply other threads:[~2017-03-31 9:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 16:02 [PATCH RFC 1/2] [media] v4l2: add V4L2_INPUT_TYPE_DEFAULT Helen Koike
2017-03-30 16:02 ` [PATCH 2/2] [media] docs-rst: " Helen Koike
2017-03-30 20:26 ` Sakari Ailus
2017-03-31 9:47 ` Mauro Carvalho Chehab [this message]
2017-03-30 19:56 ` [PATCH RFC 1/2] [media] v4l2: " Laurent Pinchart
2017-03-31 2:39 ` Helen Koike
2017-03-31 3:55 ` Helen Koike
2017-03-31 9:42 ` Mauro Carvalho Chehab
2017-03-31 9:51 ` Hans Verkuil
2017-03-31 8:41 ` Laurent Pinchart
2017-03-31 9:33 ` Mauro Carvalho Chehab
2017-03-31 8:29 ` Hans Verkuil
2017-03-31 8:41 ` Laurent Pinchart
2017-03-31 9:08 ` Hans Verkuil
2017-03-31 9:57 ` Mauro Carvalho Chehab
2017-04-03 15:11 ` Helen Koike
2017-04-04 13:22 ` Sakari Ailus
2017-04-07 9:46 ` Hans Verkuil
2017-04-07 9:53 ` Laurent Pinchart
2017-06-06 16:22 ` Helen Koike
2017-06-12 9:26 ` Hans Verkuil
2017-06-30 11:03 ` Sakari Ailus
2017-06-30 11:13 ` Hans Verkuil
2017-06-30 13:49 ` Sakari Ailus
2017-04-07 9:36 ` Hans Verkuil
2017-06-14 4:50 ` [PATCH v2] [media] v4l2: add V4L2_CAP_IO_MC Helen Koike
2017-06-19 11:15 ` Hans Verkuil
2017-06-19 17:49 ` Helen Koike
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=20170331064759.4dbab034@vento.lan \
--to=mchehab@s-opensource.com \
--cc=helen.koike@collabora.com \
--cc=hverkuil@xs4all.nl \
--cc=jgebben@codeaurora.org \
--cc=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.