From: Carl Karsten <carl@personnelware.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: video4linux-list@redhat.com
Subject: Re: minimum v4l2 api - framework
Date: Sat, 15 Nov 2008 16:45:59 -0600 [thread overview]
Message-ID: <491F5127.4090004@personnelware.com> (raw)
In-Reply-To: <200811152307.58719.hverkuil@xs4all.nl>
Hans Verkuil wrote:
> On Saturday 15 November 2008 21:59:44 Carl Karsten wrote:
>> Tomorrow (Nov 16) I will be at a Linuxfest, where I am going to try
>> to find someone up for writing this driver.
>>
>> I am assuming there is some code they should use as a starting point.
>> Either
>> A) "This is the generic/abstract code that can be extended to make a
>> specific/concrete driver" (what I would call a framework)
>> B) "driver foo.c is a good example of how a V4L2 driver should be
>> written; copy it and swap out the hardware specific code."
>> C) "vivi.c is close enough. you should really just work on fixing
>> it."
>>
>> I am hoping the correct answer is:
>> http://linuxtv.org/hg/~hverkuil/v4l-dvb-media2/file/6292505ca617/linu
>> x/Documentation/video4linux/v4l2-framework.txt
>
> Hopefully this will be the correct answer in the near future, but now it
> refers to structs that do not yet exist. I've reserved next weekend to
> continue work on this.
>
> It's probably a good idea for me to create a template driver that can be
> used as a proper starting point, however nothing will be available soon
> enough for you. I don't think we have a 'perfect' driver right now. All
> drivers have their own problems. It's one of the main reasons I'm
> working on a better framework.
>
> In any case, I don't think vivi is a good example, it's not written as a
> template driver, that was never the intention of vivi.
How's this sound: I'll hold off putting any effort into this this weekend. Let
me know how things go next weekend, and if everything worked out as you hoped we
can start then. That sounds like a much better use of everyone's time, and it
results in your code being tested in a fairly clean environment (no flaky
hardware that you don't even have, and simple apps that don't do much at all.)
I think you are misunderstanding why I mentioned vivi: All I want at this point
is what vivi is sposed to be, but it fails due to bugs. A few people have
suggested that vivi is poorly coded, so fixing the bugs may be more difficult
than starting over.
I'll document the process of developing a test driver using the framework and
creating unit tests along the way. This doc will be good for anyone developing
a real driver.
Carl K
>
> Regards,
>
> Hans
>
>> If someone can give me a rough stub to start with, that would make
>> tomorrow's work more promising.
>>
>> Carl K
>>
>> Carl Karsten wrote:
>>> Apparently vivi is messed up enough that maybe it makes sense to
>>> write a new test driver.
>>>
>>> What is the minimum interface a v4l2 driver could have?
>>>
>>> Something like: it registers itself as /dev/videoN, and
>>> QueryCaps returns nothing.
>>> It does not return any image. (yeah ?)
>>> It can be unloaded.
>>>
>>> and anything else that someone thinks is required for a well
>>> behaved driver that follows the spec.
>>>
>>> The plan is to start with that, get it and my tester working in
>>> harmony, then start adding things to both sides of the fence. I am
>>> thinking additional features will be enabled via module parameters,
>>> so that it can always be dumbed down back to it's minimum.
>>>
>>> Carl K
>>>
>>>
>>> --
>>> video4linux-list mailing list
>>> Unsubscribe
>>> mailto:video4linux-list-request@redhat.com?subject=unsubscribe
>>> https://www.redhat.com/mailman/listinfo/video4linux-list
>> --
>> video4linux-list mailing list
>> Unsubscribe
>> mailto:video4linux-list-request@redhat.com?subject=unsubscribe
>> https://www.redhat.com/mailman/listinfo/video4linux-list
>
>
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-11-15 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 22:56 minimum v4l2 api Carl Karsten
2008-11-15 20:59 ` minimum v4l2 api - framework Carl Karsten
2008-11-15 22:07 ` Hans Verkuil
2008-11-15 22:45 ` Carl Karsten [this message]
[not found] ` <200811302207.24073.hverkuil@xs4all.nl>
[not found] ` <49334CA0.4070100@personnelware.com>
[not found] ` <200812011429.44616.hverkuil@xs4all.nl>
2008-12-01 17:30 ` Carl Karsten
2008-12-01 22:24 ` CityK
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=491F5127.4090004@personnelware.com \
--to=carl@personnelware.com \
--cc=hverkuil@xs4all.nl \
--cc=video4linux-list@redhat.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