From: Shuah Khan <shuahkh@osg.samsung.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
"Mauro Carvalho Chehab (m.chehab@samsung.com)"
<m.chehab@samsung.com>
Cc: linux-media@vger.kernel.org, Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: v4l2_fops - poll and open
Date: Mon, 15 Sep 2014 08:15:17 -0600 [thread overview]
Message-ID: <5416F475.7090001@osg.samsung.com> (raw)
In-Reply-To: <5414021A.3000401@xs4all.nl>
On 09/13/2014 02:36 AM, Hans Verkuil wrote:
> On 09/13/2014 02:34 AM, Shuah Khan wrote:
>> Mauro/Hans,
>>
>> It turns out au0828 driver does init tuner from its
>> v4l2_fops read and poll. If an analog app comes in
>> and does a read or poll, digital could get disrupted.
>> Do you recommend adding token access to these??
>
> Yes. read() and poll() are effectively the same as STREAMON.
>
> But rather than doing this for read, poll, streamon, streamoff
> and when the filehandle is closed you should think of integrating
> this in vb2 and do it in start_streaming and stop_streaming.
> Those are really the only two streaming-related places where you
> need to take and release the tuner token.
>
> As I mentioned before, I think it is a good idea to convert
> au0828 to vb2. Since vb2 makes resource management so much easier
> than vb1 I think it will only help you.
>
> Also, requiring vb2 support for tuner ownership to work correctly
> is a good incentive to keep on converting drivers to vb2.
>
Right we discussed it a few weeks at LinuxCon. My thinking is
getting the tuner ownership work done is higher priority as it benefits
several drivers. Even if au0828 gets converted to vb2, the tuner
work still have to deal with other drivers that aren't converted to
vb2. i.e I might still end up adding acquiring tuner at open, poll
etc.
Mauro! What are your thoughts on this idea?? I would like to get
the media sharing work done since it will benefit PM scenarios.
-- Shuah
--
Shuah Khan
Sr. Linux Kernel Developer
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978
prev parent reply other threads:[~2014-09-15 14:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-13 0:34 v4l2_fops - poll and open Shuah Khan
2014-09-13 8:36 ` Hans Verkuil
2014-09-15 14:15 ` Shuah Khan [this message]
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=5416F475.7090001@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/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).