Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: Streaming from hard disk
Gert-Jan van Dijk wrote:
>
> So, finally got the change to write my first (small) device driver, after
> having to do lot's of other jobs....
>
> Okay, so I'm able to load/unload, open/close, write to the device (for me
> as a Linux nitwit already an achievment...). Now I want to make use of the
> dvb_dmx_swfilter() call, and thus copied that one into my source (as it's
> static in dvb_demux.c).
That can't be right. dvb_dmx_swfilter() is not static because it
is meant to be called by drivers.
> Looking at the code, I see that I have to fill the
> dvb_demux struct (Am I right?). But, I haven't got the faintest idea of how
> to proceed.
If you make your code available then others can comment on it.
(If it's not too large then post to the list.)
> Questions:
> 1) Can I just call the dvb_dmx_swfilter() from the write, after setting up
> the dvb_demux structure?
> 2) If so, can somebody point me into the right diection of how to set-up
> the struct?
> 3) To control the playout speed, can I "simply" use kernel timers, and make
> sure that in between triggers enough data is sent to the sw filter? Or is
> this totally the wrong approach?
If you strip the hardware dependent stuff from ttpci/budget-core.c
and budget-ci.c (i.e. the saa7146* and msp3400* stuff) then you
have what you need.
Johannes
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index