All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Shuah Khan <shuahkh@osg.samsung.com>,
	Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: linux-media@vger.kernel.org
Subject: Re: v4l2 ioctls
Date: Sat, 13 Sep 2014 10:49:13 +0200	[thread overview]
Message-ID: <54140509.7090609@xs4all.nl> (raw)
In-Reply-To: <541391B9.4070708@osg.samsung.com>

On 09/13/2014 02:37 AM, Shuah Khan wrote:
> Mauro/Hans,
> 
> Thanks for both for your replies. I finally have it working with
> the following:
> 
> S_INPUT
> S_OUTPUT

S_OUTPUT is not necessary. It will never be used in combination with a
modulator since we don't support TV modulators at all.

> S_MODULATOR

I think this is unnecessary as well: we only have radio modulators and
those are always stand-alone drivers.

> S_TUNER
> S_STD
> S_FREQUENCY
> S_HW_FREQ_SEEK
> S_FMT
>  - get tuner in shared mode and hold it
>  - i.e return with tuner held
> 
> STREAMON
>  - get tuner in shared mode and hold it
>  - i.e return with tuner held
> STREAMOFF
>  - put tuner (get is done in STREAMON)

I wouldn't do this. Once you start streaming you hold the tuner and it
isn't released until the filehandle closes. The V4L2 API doesn't have
an explicit 'release tuner' ioctl.

> 
> QUERYSTD
> G_TUNER (au0828 does tuner init in its g_tuner ops)
>  - get tuner in shared mode and hold it

Note that G_TUNER should still work if it can't get hold of the tuner.
I.e., it should never return an error.

>  - service request
>  - put tuner
> 
> With these changes now I have digital stream not get
> disrupted as soon as xawtv starts. I am working through
> issues related to unbalanced nature of tuner holds in
> analog mode.

Nice!

Regards,

	Hans


  reply	other threads:[~2014-09-13  8:49 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 [this message]
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

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=54140509.7090609@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    --cc=shuahkh@osg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.