public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <snjw23@gmail.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Scott Jiang <scott.jiang.linux@gmail.com>,
	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] v4l2: add blackfin capture bridge driver
Date: Sat, 01 Oct 2011 12:03:00 +0200	[thread overview]
Message-ID: <4E86E554.1040400@gmail.com> (raw)
In-Reply-To: <201109261625.03748.hverkuil@xs4all.nl>

Hello Hans,

On 09/26/2011 04:25 PM, Hans Verkuil wrote:
> On Wednesday, September 14, 2011 16:30:47 Sylwester Nawrocki wrote:
>> On 09/14/2011 09:10 AM, Scott Jiang wrote:
>>>>> +static int bcap_qbuf(struct file *file, void *priv,
>>>>> +                     struct v4l2_buffer *buf)
>>>>> +{
>>>>> +     struct bcap_device *bcap_dev = video_drvdata(file);
>>>>> +     struct v4l2_fh *fh = file->private_data;
>>>>> +     struct bcap_fh *bcap_fh = container_of(fh, struct bcap_fh, fh);
>>>>> +
>>>>> +     if (!bcap_fh->io_allowed)
>>>>> +             return -EACCES;
>>>>
>>>> I suppose -EBUSY would be more appropriate here.
>>>>
>>> no, io_allowed is to control which file instance has the right to do I/O.
>>
>> Looks like you are doing here what the v4l2 priority mechanism is meant for.
>> Have you considered the access priority (VIDIOC_G_PRIORITY/VIDIOC_S_PRIORITY
>> and friends)? Does it have any shortcomings?
> 
> Sylwester, the priority handling doesn't take care of this particular case.
> 
> When it comes to streaming you need to administrate which filehandle started
> the streaming and block any other filehandle from interfering with that.
> 
> This check should really be done in vb2.

True, I've noticed QBUF/DQBUF are not touched by the priority handling.
Perhaps I didn't follow the discussions in this topic carefully enough.

Then we seem to have another feature request for vb2.

--
Thanks,
Sylwester

  reply	other threads:[~2011-10-01 10:03 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13 18:34 [PATCH 1/4] v4l2: add vb2_get_unmapped_area in vb2 core Scott Jiang
2011-09-13  8:17 ` Guennadi Liakhovetski
2011-09-13  8:36   ` Scott Jiang
2011-09-13 18:34 ` [PATCH 2/4] v4l2: add adv7183 decoder driver Scott Jiang
2011-09-14  3:05   ` [uclinux-dist-devel] " Mike Frysinger
2011-09-13 18:34 ` [PATCH 3/4] v4l2: add vs6624 sensor driver Scott Jiang
2011-09-13  7:42   ` Guennadi Liakhovetski
2011-09-13  8:20     ` Scott Jiang
2011-09-13  8:22       ` Guennadi Liakhovetski
2011-09-14  3:28   ` [uclinux-dist-devel] " Mike Frysinger
2011-09-14  7:28     ` Scott Jiang
2011-09-18  2:52       ` Mike Frysinger
2011-09-13 18:34 ` [PATCH 4/4] v4l2: add blackfin capture bridge driver Scott Jiang
2011-09-13  8:11   ` Guennadi Liakhovetski
2011-09-13  9:56     ` Scott Jiang
2011-09-13 11:15       ` Guennadi Liakhovetski
2011-09-14  6:14         ` Scott Jiang
2011-09-16  8:11         ` Scott Jiang
2011-09-16  8:46           ` Guennadi Liakhovetski
2011-09-15  6:37     ` Scott Jiang
2011-09-15  8:49       ` Sylwester Nawrocki
2011-09-13 21:19   ` Sylwester Nawrocki
2011-09-14  7:10     ` Scott Jiang
2011-09-14 14:30       ` Sylwester Nawrocki
2011-09-15  2:40         ` Scott Jiang
2011-09-15  6:35           ` Guennadi Liakhovetski
2011-09-15  6:48             ` Scott Jiang
2011-09-15  7:14               ` Guennadi Liakhovetski
2011-09-15  7:26                 ` Scott Jiang
2011-09-15  7:32                   ` Guennadi Liakhovetski
2011-09-15 21:17           ` Sylwester Nawrocki
2011-09-16  2:34             ` Scott Jiang
2011-09-16  6:48               ` Guennadi Liakhovetski
2011-09-26 14:25         ` Hans Verkuil
2011-10-01 10:03           ` Sylwester Nawrocki [this message]
2011-09-14  3:19   ` [uclinux-dist-devel] " Mike Frysinger
2011-09-14  7:16     ` Scott Jiang
2011-09-14  7:22       ` Guennadi Liakhovetski
2011-09-17 20:54   ` 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=4E86E554.1040400@gmail.com \
    --to=snjw23@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=s.nawrocki@samsung.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox