All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea <mariofutire@googlemail.com>
To: linux-dvb@linuxtv.org
Subject: [linux-dvb] How to use a DVB FRONTEND in read only?
Date: Fri, 13 Jun 2008 22:07:44 +0100	[thread overview]
Message-ID: <g2unka$ivi$1@ger.gmane.org> (raw)

Hi,

I have a question about multiple access to the dvb framework.

I would like to open the dvb in readonly and take whatever frequency is currently tuned:

1) I open the frontend in read only
2) query the current frequency to check is there is a lock
3) I open the demux, set some filters and read from the demux.

There is a *big* issue here:

The card streams packets *only* and *as long* as the frontend is opened in read/write (by some other 
application) and tuned.
If my application opens the frontend in readonly and there is no other application running, the 
ioctl FE_GET_INFO still returns FE_HAS_LOCK but no data goes through the demux.
As soon as the frontend is tuned, the data arrives.

Am I correct? How can I detect if the dvb is running or not?

Andrea


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

             reply	other threads:[~2008-06-13 21:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13 21:07 Andrea [this message]
2008-06-14 12:13 ` [linux-dvb] How to use a DVB FRONTEND in read only? Claudio Luck
2008-06-14 12:31   ` Andrea
2008-06-14 15:59     ` Claudio Luck

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='g2unka$ivi$1@ger.gmane.org' \
    --to=mariofutire@googlemail.com \
    --cc=linux-dvb@linuxtv.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 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.