public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Boettcher <pboettcher@kernellabs.com>
To: Richard <tuxbox.guru@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: Linux DVB Explained..
Date: Mon, 19 Nov 2012 11:52:43 +0100	[thread overview]
Message-ID: <1603480.BOCkXrJCoo@dibcom294> (raw)
In-Reply-To: <CAKQROYXaEVasawMTd7XiDOvx_ZxL6H=0MqEds2-C+WFDru0m=Q@mail.gmail.com>

Hi Richard,

I can maybe answer some of your questions with semi-complete answers in the 
hope it helps you further.

On Saturday 17 November 2012 13:35:18 Richard wrote:
> struct dvb_demux :
> This has a start_feed and a stop feed.   What feed is this? ... the
> RAW 188 byte packets from the device perhaps?

start/stop_feed are callbacks in the dvb_demux-device (which is represented 
with dvb/adapterX/demuxX by your driver) which have to be filled in by the 
driver which implements and controls the HW-demux.

E.g: (from dmxdev.c) when a user is issuing the DMX_ADD_PID ioctl (which 
marks the request of a certain PID from the TS currently received) the 
start_feed-callback is called. It tells the driver that the TS-packets 
identified with PID are expected via e.g. the dvrX device. So the driver has 
to instruct its internal demux to have them pass the filter.

> What is the main purpose of this structure?
> 
> struct dmx_demux :
> This structure holds the frontend device struct and contains the .fops
> for read/write.  Is this the main interface when using the
> /dev/dvb/adapterX/demux ? /dvr?

I'm not sure to get what you want to know here.

> adapter = dvb_register_adapter() : Register a new DVB device adapter
> (called once)
> dvb_dmx_init(dvbdemux);  // Called once per Demux chain?
> dvb_dmxdev_init();  // Called once per demux chain ? same as above
> 
> -------------------
> The hardware I am using has 6 TS data inputs, 4 tuners (linked to TS
> inputs)  and hardware PID filters and I am trying to establish the
> relationship of dmx and dmxdev.

Before understanding the relationship you need to know where, in the end, 
you want your TS-packets. In user-space? Sent to a hardware-decoder? 
Somewhere else? All of that?

HTH a litte bit,
--
Patrick 


  parent reply	other threads:[~2012-11-19 10:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 13:35 Linux DVB Explained Richard
2012-11-17 15:52 ` Richard
2012-11-19 10:52 ` Patrick Boettcher [this message]
2012-11-20 11:27   ` Richard

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=1603480.BOCkXrJCoo@dibcom294 \
    --to=pboettcher@kernellabs.com \
    --cc=linux-media@vger.kernel.org \
    --cc=tuxbox.guru@gmail.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