From: Anatolij Gustschin <agust@denx.de>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-media@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@infradead.org>,
dzu@denx.de
Subject: Re: [PATCH v2] V4L: soc_camera: allow reading from video device if supported
Date: Fri, 24 Aug 2012 13:48:55 +0200 [thread overview]
Message-ID: <20120824134855.1026c417@wker> (raw)
In-Reply-To: <Pine.LNX.4.64.1208241331550.20710@axis700.grange>
Hi Guennadi,
On Fri, 24 Aug 2012 13:37:20 +0200 (CEST)
Guennadi Liakhovetski <g.liakhovetski@gmx.de> wrote:
...
> How about a slightly simpler
>
> > + struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
> > - int err = -EINVAL;
> >
> > - dev_err(icd->pdev, "camera device read not implemented\n");
> > + dev_dbg(icd->pdev, "read called, buf %p\n", buf);
> >
> > - return err;
> > + if (ici->ops->init_videobuf2 && icd->vb2_vidq.io_modes & VB2_READ)
> > + return vb2_read(&icd->vb2_vidq, buf, count, ppos,
> > + file->f_flags & O_NONBLOCK);
> > +
> > + dev_err(icd->pdev, "camera device read not implemented\n");
> > + return -EINVAL;
Ok, I'll simplify as suggested and resubmit.
Thanks,
Anatolij
next prev parent reply other threads:[~2012-08-24 11:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-18 11:45 [PATCH] V4L: soc_camera: allow reading from video device if supported Anatolij Gustschin
2012-08-24 9:13 ` [PATCH v2] " Anatolij Gustschin
2012-08-24 11:37 ` Guennadi Liakhovetski
2012-08-24 11:48 ` Anatolij Gustschin [this message]
2012-08-24 14:36 ` [PATCH v3] " Anatolij Gustschin
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=20120824134855.1026c417@wker \
--to=agust@denx.de \
--cc=dzu@denx.de \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.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;
as well as URLs for NNTP newsgroup(s).