From: "Jon Arne Jørgensen" <jonarne@jonarne.no>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: "Jon Arne Jørgensen" <jonarne@jonarne.no>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
elezegarcia@gmail.com
Subject: Re: [RFC V1 4/8] smi2021: Add smi2021_v4l2.c
Date: Wed, 20 Mar 2013 10:48:42 +0100 [thread overview]
Message-ID: <20130320094842.GL17291@dell.arpanet.local> (raw)
In-Reply-To: <201303180929.07864.hverkuil@xs4all.nl>
On Mon, Mar 18, 2013 at 09:29:07AM +0100, Hans Verkuil wrote:
> On Thu March 14 2013 15:07:00 Jon Arne Jørgensen wrote:
> > This file is responsible for registering the device with the v4l2 subsystem,
> > and the communication with v4l2.
> > Most of the v4l2 ioctls are just passed on to vidbuf2.
> >
> > Signed-off-by: Jon Arne Jørgensen <jonarne@jonarne.no>
> > ---
> > drivers/media/usb/smi2021/smi2021_v4l2.c | 566 +++++++++++++++++++++++++++++++
> > 1 file changed, 566 insertions(+)
> > create mode 100644 drivers/media/usb/smi2021/smi2021_v4l2.c
> >
> > diff --git a/drivers/media/usb/smi2021/smi2021_v4l2.c b/drivers/media/usb/smi2021/smi2021_v4l2.c
> > new file mode 100644
> > index 0000000..d402093
> > --- /dev/null
> > +++ b/drivers/media/usb/smi2021/smi2021_v4l2.c
> > @@ -0,0 +1,566 @@
>
> ...
>
> > +int smi2021_vb2_setup(struct smi2021_dev *dev)
> > +{
> > + int rc;
> > + struct vb2_queue *q;
> > +
> > + q = &dev->vb_vidq;
> > + q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
> > + q->io_modes = VB2_READ | VB2_MMAP | VB2_USERPTR;
> > + q->drv_priv = dev;
> > + q->buf_struct_size = sizeof(struct smi2021_buffer);
> > + q->ops = &smi2021_video_qops;
> > + q->mem_ops = &vb2_vmalloc_memops;
>
> q->timestamp_type isn't filled in.
>
I'll add that
> For that matter, neither the sequence number nor the timestamp are filled in
> in v4l2_buffer during capturing.
>
> You need to add a buf_finish op to fill those in (use v4l2_timestamp() for the
> timestamp).
>
I'm filling these variables in the smi2021_buffer_done function in
smi2021_video.c?
Should I do that somewhere else?
> Regards,
>
> Hans
> --
> 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
next prev parent reply other threads:[~2013-03-20 9:45 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 14:06 [RFC V1 0/8] Add a driver for somagic smi2021 Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 1/8] smi2021: Add the header file Jon Arne Jørgensen
2013-03-15 12:13 ` Ezequiel Garcia
2013-03-17 20:16 ` Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 2/8] smi2021: Add smi2021_main.c Jon Arne Jørgensen
2013-03-15 12:20 ` Ezequiel Garcia
2013-03-17 20:14 ` Jon Arne Jørgensen
2013-03-18 7:58 ` Hans Verkuil
2013-03-20 9:30 ` Jon Arne Jørgensen
2013-03-18 8:30 ` Hans Verkuil
2013-03-20 9:31 ` Jon Arne Jørgensen
2013-03-14 14:06 ` [RFC V1 3/8] smi2021: Add smi2021_i2c.c Jon Arne Jørgensen
2013-03-15 12:27 ` Ezequiel Garcia
2013-03-17 19:59 ` Jon Arne Jørgensen
2013-03-18 8:04 ` Hans Verkuil
2013-03-20 9:32 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 4/8] smi2021: Add smi2021_v4l2.c Jon Arne Jørgensen
2013-03-15 12:33 ` Ezequiel Garcia
2013-03-17 20:27 ` Jon Arne Jørgensen
2013-03-18 8:12 ` Hans Verkuil
2013-03-20 9:43 ` Jon Arne Jørgensen
2013-03-20 10:07 ` Hans Verkuil
2013-03-18 8:29 ` Hans Verkuil
2013-03-20 9:48 ` Jon Arne Jørgensen [this message]
2013-03-20 10:10 ` Hans Verkuil
2013-03-20 10:16 ` Jon Arne Jørgensen
2013-03-20 10:21 ` Hans Verkuil
2013-03-20 11:09 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 5/8] smi2021: Add smi2021_video.c Jon Arne Jørgensen
2013-03-15 12:40 ` Ezequiel Garcia
2013-03-17 20:19 ` Jon Arne Jørgensen
2013-03-18 8:17 ` Hans Verkuil
2013-03-18 8:58 ` Bjørn Mork
2013-03-20 10:06 ` Jon Arne Jørgensen
2013-03-20 10:09 ` Hans Verkuil
2013-03-14 14:07 ` [RFC V1 6/8] smi2021: Add smi2021_audio.c Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 7/8] smi2021: Add smi2021_bl.c Jon Arne Jørgensen
2013-03-18 9:31 ` Bjørn Mork
2013-03-20 8:59 ` Jon Arne Jørgensen
2013-03-14 14:07 ` [RFC V1 8/8] smi2021: Add Kconfig and Makefiles Jon Arne Jørgensen
2013-03-15 12:08 ` [RFC V1 0/8] Add a driver for somagic smi2021 Ezequiel Garcia
2013-03-17 20:01 ` Jon Arne Jørgensen
2013-03-18 0:05 ` Ezequiel Garcia
2013-03-20 10:11 ` Jon Arne Jørgensen
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=20130320094842.GL17291@dell.arpanet.local \
--to=jonarne@jonarne.no \
--cc=elezegarcia@gmail.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®