From: Claudio Luck <cluck@ethz.ch>
To: Andrea <mariofutire@googlemail.com>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] How to use a DVB FRONTEND in read only?
Date: Sat, 14 Jun 2008 14:13:01 +0200 [thread overview]
Message-ID: <4853B5CD.3050906@ethz.ch> (raw)
In-Reply-To: <g2unka$ivi$1@ger.gmane.org>
Andrea wrote:
> 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?
Check for open filehandles on demux device:
root@iptv:~# ls -l /proc/*/fd/* | grep demux
lrwx------ 1 vlc vlc 64 2008-06-14 14:02 /proc/19876/fd/6 ->
/dev/dvb/adapter0/demux0
lrwx------ 1 vlc vlc 64 2008-06-14 14:02 /proc/19892/fd/6 ->
/dev/dvb/adapter1/demux0
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-06-14 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-13 21:07 [linux-dvb] How to use a DVB FRONTEND in read only? Andrea
2008-06-14 12:13 ` Claudio Luck [this message]
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=4853B5CD.3050906@ethz.ch \
--to=cluck@ethz.ch \
--cc=linux-dvb@linuxtv.org \
--cc=mariofutire@googlemail.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.