jamesh wrote:towolf wrote:What I meant was: There's a proper driver in the making where we don't know how long it will be until it is available.
Dr Hastings has a stop-gap driver that is more or less working and now in light of the news he is wondering how much more work he should put into it.
I was suggesting to drhastings to release what he's got now so that people needing V4L device node have something to play with until the proper driver appears.
More or less working? Are you sure? As far as I can tell (and I did look in to it) for someone with V4L experience, it's still a multiple man week job to get something like this in a usable state. Would be interesting to know how far DrHasting has got, i.e. can it be installed and recover a video or stills to a userland app, if so that very prompt good work indeed.
Its definitely on the lesser end of working at the moment. I've had enough success with reading streams to think its possible to get it to the state I hope. The streams come out with some weird padding, but right now that is more based on how the userland tool feeds them in than anything else, and so far I've only implemented read and not mmap for getting data out although it is in the plan. So far I have nothing done as far as changing formats, which includes reading jpegs, and I'm trying to track down a null dereference which brings the whole thing down occasionally. Part of the reason this started with the userspace tool is because I don't have the information needed to activate and initialize the device from the kernel. So all in all it doesn't quite work yet for anything but there is a light at the end of the tunnel.
I'll probably look at it a bit this weekend, and I'll put it out there if I can stop if from crashing on occasion. The one advantage from keeping the video capture in a userland program is that it remove much of the complexity from the driver. There are no hardware events to respond to and much of the complexity gets pushed into the event passing and the userspace portion.
Oh by the way, I'm no Dr, I just put my initials there to look smart.