Re: [linux-dvb] [PATCH] Userspace tuner

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jelle Foks <jelle@...>
Cc: Alan Cox <alan@...>, video4linux-list@redhat.com <video4linux-list@...>, linux-dvb@linuxtv.org <linux-dvb@...>, akpm@linux-foundation.org <akpm@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 4:55 am

On 9/18/07, Jelle Foks <jelle@foks.8m.com> wrote:

good statement, the absolute goal should be that enduser applications can
handle videostreams as easy as possible. This is currently not given.
For example I have devices which work with ekiga, and some devices
which don't work with ekiga.
Why so? Ekiga already uses a rather big library for handling videodevices.
Another point is why doesn't tvtime support digital audio?
People have to run sox in the background to get any sound piped from
the corresponding dsp node to the soundcard, and also this is no general
way. So first people have to look up what the correct audio node of their
TV device is... (there are small scripts available which lets the users select)
But I also think this should happen automatically.
There are many devices out there which don't even include all ioctl calls
which are documented in the specs.
And since sometimes the API needs to be updated a library could handle this
in a better way.
I see the whole v4l-dvb project as half way done at the moment because of
the unflexibility of the whole system.


this is just a thought, I think a pluggable mechanism would be nice for that.
The library could query the device about it's capabilities and if it returns a
non standard videoformat just add a mechanism for loading the corresponding
videocodec if available.


yes, this would always be the optimal way


yes I also agree with that.


I would prefer to abstract the ioctl calls from the media applications
if possible.
Sometimes API changes are unavoidable and even make sense instead of
carrying around old crufted mechanisms, and since there's currently not a
single TV application out there which supports all available devices it would
make more sense to work on a better infrastructure for all that.


yes there are many ways. I like the idea of such a library because it could
even allow to integrate complete userspace drivers in certain cases.
I posted a link within that thread that there's a driver which intercepts all
ioctl calls and which is completly done in userspace. By using a library
the LD_PRELOAD hack wouldn't even be needed and that device could be
integrated flawlessly into a video infrastructure.
I know that such a userspace driver would be slower than the inkernel driver
although I think it's up to the developer what he wants to do.


ndiswrapper is quite different, I still nativly compile the code on Linux and
even the sources are available.
I just tried to integrate a newer kind of module, as for me I don't want to
rewrite the algorithms of drivers which I'm able to reuse in userspace,
the example which I have here right now even uses C++ in userspace
and all I do is to use the API of these sample sources and package everything
into such a userspace library which can directly be used by the driver.
It's not my job to reinvent the work of companies (and I'm not even
interested in that) if they agree with delivering code which can be easily
integrated, as for me it's reaching the goal by the shortest path first
approach.

Although there are 2 projects going on at the moment, my one is capable
of pushing some drivers to userspace, the other one is still in progress and
I don't know when it will be finished (since I don't even work on that)
During that time the driver will internally depend on the kernel to userspace
bridge; As soon as the userspace drivers can be plugged to the media library
infront of the devicenodes I intend to remove the kernel-userspace stub..
but this might take a while if not several months.

Markus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Wed Sep 12, 7:10 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Johannes Stezenbach, (Thu Sep 13, 9:13 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Thu Sep 13, 10:12 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Thu Sep 13, 11:50 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Thu Sep 13, 12:08 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Steven Toth, (Thu Sep 13, 4:36 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Alan Cox, (Fri Sep 14, 8:10 am)
Re: [linux-dvb] [PATCH] Userspace tuner, hermann pitton, (Thu Sep 13, 8:49 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Thu Sep 13, 7:17 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Alan Cox, (Fri Sep 14, 9:52 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 12:18 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Jelle Foks, (Tue Sep 18, 4:19 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Tue Sep 18, 6:56 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Alan Cox, (Tue Sep 18, 7:00 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Tue Sep 18, 4:55 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Steven Toth, (Thu Sep 13, 9:03 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 2:38 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Johannes Stezenbach, (Fri Sep 14, 7:38 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 12:36 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Johannes Stezenbach, (Fri Sep 14, 4:43 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 9:49 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Johannes Stezenbach, (Sat Sep 15, 9:34 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Steven Toth, (Sat Sep 15, 10:56 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Sat Sep 15, 4:52 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Fri Sep 14, 11:09 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Sat Sep 15, 8:59 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 9:29 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Johannes Stezenbach, (Sat Sep 15, 9:16 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Sat Sep 15, 9:38 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Sat Sep 15, 10:04 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Bernard Jungen, (Sat Sep 15, 12:58 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Mon Sep 17, 4:46 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Hans Verkuil, (Sun Sep 16, 7:30 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Sat Sep 15, 10:33 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Sat Sep 15, 10:45 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Fri Sep 14, 9:49 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Fri Sep 14, 1:32 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 1:46 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Fri Sep 14, 2:29 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Michael Krufky, (Fri Sep 14, 3:20 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Aidan Thornton, (Fri Sep 14, 5:07 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Fri Sep 14, 5:53 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Mauro Carvalho Chehab, (Fri Sep 14, 5:16 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Fri Sep 14, 3:57 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Joerg Roedel, (Fri Sep 14, 5:15 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Fri Sep 14, 8:00 am)
Re: [linux-dvb] [PATCH] Userspace tuner, Joerg Roedel, (Fri Sep 14, 12:13 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Fri Sep 14, 12:56 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Joerg Roedel, (Fri Sep 14, 1:40 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 12:09 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Alex Deucher, (Fri Sep 14, 2:52 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Fri Sep 14, 2:59 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Alex Deucher, (Fri Sep 14, 3:38 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Thu Sep 13, 12:22 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Markus Rechberger, (Thu Sep 13, 12:32 pm)
Re: [linux-dvb] [PATCH] Userspace tuner, Manu Abraham, (Thu Sep 13, 12:52 pm)