From: Shuah Khan <shuahkh@osg.samsung.com>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: v4l2 ioctls
Date: Mon, 15 Sep 2014 18:23:34 -0600 [thread overview]
Message-ID: <54178306.2010203@osg.samsung.com> (raw)
In-Reply-To: <20140915205324.1eb58ca8.m.chehab@samsung.com>
On 09/15/2014 05:53 PM, Mauro Carvalho Chehab wrote:
> Em Mon, 15 Sep 2014 17:15:52 -0600
> Shuah Khan <shuahkh@osg.samsung.com> escreveu:
>
>> On 09/15/2014 05:54 AM, Mauro Carvalho Chehab wrote:
>>> Hi Shuah,
>>>
>>> Em Fri, 12 Sep 2014 18:37:13 -0600
>>> Shuah Khan <shuahkh@osg.samsung.com> escreveu:
>>>
>>>> Mauro/Hans,
>>>>
>>>> Thanks for both for your replies. I finally have it working with
>>>> the following:
>>>
>>> One additional info: While in DVB mode, opening the device in
>>> readonly mode should not take the tuner locking.
>>
>> That's what the code does for dvb. It gets the tuner lock in
>> dvb_frontend_start() which is called from dvb_frontend_open()
>> when dvb is opened in R/W mode.
>
> Yeah, I think that the FE kthread is only started in R/W mode,
> but it doesn't hurt to double-check it and to do some tests to
> avoid regressions.
Here is the code snippet:
if ((file->f_flags & O_ACCMODE) != O_RDONLY) {
/* normal tune mode when opened R/W */
fepriv->tune_mode_flags &= ~FE_TUNE_MODE_ONESHOT;
fepriv->tone = -1;
fepriv->voltage = -1;
ret = dvb_frontend_start (fe);
if (ret)
goto err2;
/* empty event queue */
fepriv->events.eventr = fepriv->events.eventw = 0;
}
I can do some testing to make sure
-- 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-16 0:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-12 1:26 v4l2 ioctls Shuah Khan
2014-09-12 8:07 ` Hans Verkuil
2014-09-12 15:19 ` Mauro Carvalho Chehab
2014-09-13 0:37 ` Shuah Khan
2014-09-13 8:49 ` Hans Verkuil
2014-09-15 11:54 ` Mauro Carvalho Chehab
2014-09-15 23:15 ` Shuah Khan
2014-09-15 23:53 ` Mauro Carvalho Chehab
2014-09-16 0:23 ` 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=54178306.2010203@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).