* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 8:46 ` Hans Verkuil
@ 2010-03-19 8:50 ` Laurent Pinchart
2010-03-19 9:03 ` Markus Rechberger
` (3 subsequent siblings)
4 siblings, 0 replies; 19+ messages in thread
From: Laurent Pinchart @ 2010-03-19 8:50 UTC (permalink / raw)
To: Hans Verkuil; +Cc: v4l-dvb
On Friday 19 March 2010 09:46:02 Hans Verkuil wrote:
> > On Friday 19 March 2010 08:59:08 Hans Verkuil wrote:
> >> Hi all,
> >>
> >> V4L1 support has been marked as scheduled for removal for a long time.
> >> The deadline for that in the feature-removal-schedule.txt file was July
> >> 2009.
> >>
> >> I think it is time that we remove the V4L1 compatibility support from
> >> V4L2 drivers for 2.6.35.
> >
> > Do you mean just removing V4L1-specific code from V4L2 drivers, or
> > removing the V4L1 compatibility layer completely ?
>
> The compat layer as well. So the only V4L1 code left is that for V4L1-only
> drivers.
>
> This means that V4L2 drivers can only be used by V4L2-aware applications
> and can no longer be accessed by V4L1-only applications.
>
> >> It would help with the videobuf cleanup as well, but that's just a bonus.
> >
> > Do we still have V4L1-only drivers that use videobuf ?
>
> No V4L1-only drivers use videobuf, but videobuf has support for the V4L1
> compat support in V4L2 drivers (the cgmbuf ioctl). So when we remove the
> compat support, then that videobuf code can be removed as well.
In that case, please go for it :-)
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 8:46 ` Hans Verkuil
2010-03-19 8:50 ` Laurent Pinchart
@ 2010-03-19 9:03 ` Markus Rechberger
2010-03-19 13:47 ` Mauro Carvalho Chehab
` (2 subsequent siblings)
4 siblings, 0 replies; 19+ messages in thread
From: Markus Rechberger @ 2010-03-19 9:03 UTC (permalink / raw)
To: Hans Verkuil; +Cc: Laurent Pinchart, v4l-dvb
On Fri, Mar 19, 2010 at 9:46 AM, Hans Verkuil <hverkuil@xs4all.nl> wrote:
>
>> On Friday 19 March 2010 08:59:08 Hans Verkuil wrote:
>>> Hi all,
>>>
>>> V4L1 support has been marked as scheduled for removal for a long time.
>>> The
>>> deadline for that in the feature-removal-schedule.txt file was July
>>> 2009.
>>>
>>> I think it is time that we remove the V4L1 compatibility support from
>>> V4L2
>>> drivers for 2.6.35.
>>
>> Do you mean just removing V4L1-specific code from V4L2 drivers, or
>> removing
>> the V4L1 compatibility layer completely ?
>
> The compat layer as well. So the only V4L1 code left is that for V4L1-only
> drivers.
>
I'm against this we have customers using the compat layer.
Aside of that the compat layer doesn't hurt anyone, newer more serious
applications
are written with v4l2 only actually.
> This means that V4L2 drivers can only be used by V4L2-aware applications
> and can no longer be accessed by V4L1-only applications.
>
>>> It would help with the videobuf cleanup as well, but that's just a
>>> bonus.
>>
>> Do we still have V4L1-only drivers that use videobuf ?
>
> No V4L1-only drivers use videobuf, but videobuf has support for the V4L1
> compat support in V4L2 drivers (the cgmbuf ioctl). So when we remove the
> compat support, then that videobuf code can be removed as well.
>
that's just a bad implementation then and just should be fixed up the compat
layer can handle this quite elegant.
-Markus
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 8:46 ` Hans Verkuil
2010-03-19 8:50 ` Laurent Pinchart
2010-03-19 9:03 ` Markus Rechberger
@ 2010-03-19 13:47 ` Mauro Carvalho Chehab
2010-03-19 15:49 ` David Ellingsworth
2010-03-19 15:17 ` Andy Walls
2010-03-19 19:02 ` Hans de Goede
4 siblings, 1 reply; 19+ messages in thread
From: Mauro Carvalho Chehab @ 2010-03-19 13:47 UTC (permalink / raw)
To: Hans Verkuil; +Cc: Laurent Pinchart, v4l-dvb
Hans Verkuil wrote:
>> Do we still have V4L1-only drivers that use videobuf ?
>
> No V4L1-only drivers use videobuf, but videobuf has support for the V4L1
> compat support in V4L2 drivers (the cgmbuf ioctl). So when we remove the
> compat support, then that videobuf code can be removed as well.
We shouldn't justify the removal of an userspace API due to an internal
code cleanup.
The original reason for the V4L1 API removal is that its design were never
extended to support all world video standards (yet, its non-RDS radio
support is just as fine as V4L2 API).
The fact is that V4L1 API stopped in the time, while V4L2 is live. So,
V4L1 didn't followed 10 years of evolution that happened on media devices.
It would be probably simpler to just extend V4L1 API than to replace it to
a new one, but now we have to deal with both API's.
Due to the lack of features, the V4L1 drivers were gradually converted to V4L2.
This makes sense, since they can provide more features to userspace, like
the support for read/mmap/user mmap streaming, the fine-grained video format
support, the video format and fps enumeration and more userspace controls.
The V4L1 drivers that lasts are the ones without maintainers and probably without
a large users base. So, basically legacy hardware. So, their removals make sense.
After the driver removal, the last V4L1 vestige is the V4L1 compat layer removal.
So, what are the reasons to remove this layer?
I can think on a few technical reasons:
- V4L1 API emulation in kernel is not perfect. There are some known bugs, basically due to
the lack of a stateful layer emulation. So, it is possible, for example, that userspace
selects one video standard on a set and receive another on a get. For example, if userspace
tries to set VIDEO_PALETTE_YUV422, a subsequent get will return VIDEO_PALETTE_YUYV.
- V4L1 API lacks functionality. So, userspace applications using it would have a limited
control of the driver;
- Code cleanup;
- Lack of developers interested on maintaining V4L1 compat layer.
On the other hand, removing it may break applications that works fine with V4L1 emulation.
IMO, none of the above reasons are strong enough to justify prevent users to properly
use the hardware.
So, in order to remove this feature, we should be sure that the existing open-source
V4L2 applications will cover all usage cases: teletext, radio, vbi, tv, webcam, stream
capture, text UI, graphical UI's (qt/gtk), .... If something is not covered, someone
has to port an existing application to V4L2 or to write/maintain a replacement application.
So, the main issue to remove V4L1 compat is: are all cases properly covered?
Comments?
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 13:47 ` Mauro Carvalho Chehab
@ 2010-03-19 15:49 ` David Ellingsworth
2010-03-19 17:43 ` Mauro Carvalho Chehab
2010-03-19 19:06 ` Hans de Goede
0 siblings, 2 replies; 19+ messages in thread
From: David Ellingsworth @ 2010-03-19 15:49 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Hans Verkuil, Laurent Pinchart, v4l-dvb
On Fri, Mar 19, 2010 at 9:47 AM, Mauro Carvalho Chehab
<mchehab@redhat.com> wrote:
> The V4L1 drivers that lasts are the ones without maintainers and probably without
> a large users base. So, basically legacy hardware. So, their removals make sense.
>
In many ways the above statement is a catch 22. Most, if not all the
v4l1 drivers are currently broken or unmaintained. However, this does
not mean there are users who would not be using these drivers if they
actually worked or had been properly maintained. I know this to be a
fact of the ibmcam driver. It is both broken and unmaintained. Because
of this I'm sure no one is currently using it. I happen to have a USB
camera which is supposedly supported by the ibmcam driver.
Unfortunately, I have not the time nor expertise needed to
update/fix/replace this driver, though I have previously tried. If
someone on this list is willing to collaborate with me to make a
functional v4l2 driver to replace the existing ibmcam driver, I'd be
more than willing to expend more time and energy in doing so.
Hopefully someday I'll actually be able to use the camera that I own,
considering as is it barely works under Windows.
Regards,
David Ellingsworth
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 15:49 ` David Ellingsworth
@ 2010-03-19 17:43 ` Mauro Carvalho Chehab
2010-03-19 18:00 ` David Ellingsworth
2010-03-19 19:06 ` Hans de Goede
1 sibling, 1 reply; 19+ messages in thread
From: Mauro Carvalho Chehab @ 2010-03-19 17:43 UTC (permalink / raw)
To: David Ellingsworth; +Cc: Hans Verkuil, Laurent Pinchart, v4l-dvb
David Ellingsworth wrote:
> On Fri, Mar 19, 2010 at 9:47 AM, Mauro Carvalho Chehab
> <mchehab@redhat.com> wrote:
>> The V4L1 drivers that lasts are the ones without maintainers and probably without
>> a large users base. So, basically legacy hardware. So, their removals make sense.
>>
>
> In many ways the above statement is a catch 22. Most, if not all the
> v4l1 drivers are currently broken or unmaintained. However, this does
> not mean there are users who would not be using these drivers if they
> actually worked or had been properly maintained. I know this to be a
> fact of the ibmcam driver. It is both broken and unmaintained. Because
> of this I'm sure no one is currently using it.
It makes sense. However, considering that no new V4L1 driver is committed
since 2006, this means that those are old drivers for old hardware.
> I happen to have a USB
> camera which is supposedly supported by the ibmcam driver.
In the specific case of ibmcam, we had only 10 commits on -hg since its
addition, back in 2006.
Just using it as an example about the remaining drivers, for today's hardware,
an ibmusb model 3 webcam has 640x480x3fps, according to his driver. Other models
have QCIF or QVGA as their maximum resolution. I can easily buy a 640x480x30fps
camera (or even something better than that) for US$12,00 on a close shopping.
So, even if the driver would be 100% functional, I doubt that you would find too
many users of this webcam, simply because people would need a faster frame rate
or wanted a higher resolution.
> Unfortunately, I have not the time nor expertise needed to
> update/fix/replace this driver, though I have previously tried. If
> someone on this list is willing to collaborate with me to make a
> functional v4l2 driver to replace the existing ibmcam driver, I'd be
> more than willing to expend more time and energy in doing so.
> Hopefully someday I'll actually be able to use the camera that I own,
> considering as is it barely works under Windows.
I agree that it would be interesting to port it to V4L2, instead of just
dropping it. Maybe Hans Geode or someone else with some spare time
could help you on this task.
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 17:43 ` Mauro Carvalho Chehab
@ 2010-03-19 18:00 ` David Ellingsworth
2010-03-19 18:12 ` Devin Heitmueller
2010-03-19 19:57 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 19+ messages in thread
From: David Ellingsworth @ 2010-03-19 18:00 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Hans Verkuil, Laurent Pinchart, v4l-dvb
On Fri, Mar 19, 2010 at 1:43 PM, Mauro Carvalho Chehab
<mchehab@redhat.com> wrote:
> David Ellingsworth wrote:
>> On Fri, Mar 19, 2010 at 9:47 AM, Mauro Carvalho Chehab
>> <mchehab@redhat.com> wrote:
>>> The V4L1 drivers that lasts are the ones without maintainers and probably without
>>> a large users base. So, basically legacy hardware. So, their removals make sense.
>>>
>>
>> In many ways the above statement is a catch 22. Most, if not all the
>> v4l1 drivers are currently broken or unmaintained. However, this does
>> not mean there are users who would not be using these drivers if they
>> actually worked or had been properly maintained. I know this to be a
>> fact of the ibmcam driver. It is both broken and unmaintained. Because
>> of this I'm sure no one is currently using it.
>
> It makes sense. However, considering that no new V4L1 driver is committed
> since 2006, this means that those are old drivers for old hardware.
>
>> I happen to have a USB
>> camera which is supposedly supported by the ibmcam driver.
>
> In the specific case of ibmcam, we had only 10 commits on -hg since its
> addition, back in 2006.
>
> Just using it as an example about the remaining drivers, for today's hardware,
> an ibmusb model 3 webcam has 640x480x3fps, according to his driver. Other models
> have QCIF or QVGA as their maximum resolution. I can easily buy a 640x480x30fps
> camera (or even something better than that) for US$12,00 on a close shopping.
The limitation on the frame rate within the driver is not an issue
with the camera itself per-say. The camera I have supports
640x480x30fps but the ibmcam driver lacks support for the video mode
used to achieve that rate. Specifically speaking, the camera uses a
proprietary compressed image format that the current v4l1 ibmcam
driver does not support for several reasons. First and foremost, the
original author stated that he did not have time to reverse engineer
the compressed format. Second even if he had, the code to do so
doesn't belong in the driver itself.
Yes it is an old camera, but that does not mean there aren't people
out there who still own cameras which would otherwise be usable if the
driver worked. And sure people could just buy another camera.. but why
replace hardware that's obviously not broken?
>
> So, even if the driver would be 100% functional, I doubt that you would find too
> many users of this webcam, simply because people would need a faster frame rate
> or wanted a higher resolution.
>
>> Unfortunately, I have not the time nor expertise needed to
>> update/fix/replace this driver, though I have previously tried. If
>> someone on this list is willing to collaborate with me to make a
>> functional v4l2 driver to replace the existing ibmcam driver, I'd be
>> more than willing to expend more time and energy in doing so.
>> Hopefully someday I'll actually be able to use the camera that I own,
>> considering as is it barely works under Windows.
>
> I agree that it would be interesting to port it to V4L2, instead of just
> dropping it. Maybe Hans Geode or someone else with some spare time
> could help you on this task.
>
> --
>
> Cheers,
> Mauro
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 18:00 ` David Ellingsworth
@ 2010-03-19 18:12 ` Devin Heitmueller
2010-03-19 19:04 ` VDR User
2010-03-19 19:57 ` Mauro Carvalho Chehab
1 sibling, 1 reply; 19+ messages in thread
From: Devin Heitmueller @ 2010-03-19 18:12 UTC (permalink / raw)
To: David Ellingsworth
Cc: Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart, v4l-dvb
On Fri, Mar 19, 2010 at 2:00 PM, David Ellingsworth
<david@identd.dyndns.org> wrote:
> Yes it is an old camera, but that does not mean there aren't people
> out there who still own cameras which would otherwise be usable if the
> driver worked. And sure people could just buy another camera.. but why
> replace hardware that's obviously not broken?
Because of the cost of keeping a driver in the tree for an old piece
of hardware that almost nobody has, where there is no developer
willing to maintain it, at the cost of preventing removal of a bunch
of old common infrastructure which increases the maintenance cost of
all the drivers that people do care about.
In a perfect world, it would be great to support every piece of
hardware under the sun until the end of time. In reality though, with
limited developer resources, we sometimes have to decided that
supporting certain archaic hardware that isn't popular "just isn't
worth it".
Removing all the old V4L1 cruft will make currently maintained drivers
cleaner, faster and simpler to understand and implement, and less
likely to have bugs.
Devin
--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 18:12 ` Devin Heitmueller
@ 2010-03-19 19:04 ` VDR User
2010-03-20 1:01 ` hermann pitton
0 siblings, 1 reply; 19+ messages in thread
From: VDR User @ 2010-03-19 19:04 UTC (permalink / raw)
To: v4l-dvb
Keeping v4l1 because some guys are still using some ancient setup is
not a good reason. Keeping v4l1 because some app devs still haven't
bothered to update their apps is not a good reason, especially given
the amount of time they've had to complete this task. Keeping v4l1
because package maintainers haven't bothered to update their packages
is not a good reason.
To put it simply, v4l1 is just dragging along dead weight. It has
been replaced by something better and there's no reasonable excuse to
keep dragging it along. There will always be someone complaining
because there will always be someone neglecting to make the transition
until the last possible second or resisting change even when it's for
the better.
App devs that haven't bothered to update -- you've had plenty of time
to get it done. If you app breaks, it's not v4l's fault at this
point.
Users still on ancient hardware -- consider updating to cheap newer
alternatives but don't expect v4l to be held back because you refuse
to move forward. Or politely request old drivers be converted.
Package maintainers -- if it's too much of a hassle to keep your
package(s) updated, consider giving that responsibility to someone
else.
The points made in this thread make it pretty obvious that dumping
v4l1 altogether is easily for the best and has only very minimal
negative impact. And the negatives aren't anything that can't be
resolved completely with a little commitment to do so.
Best regards,
Derek
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 19:04 ` VDR User
@ 2010-03-20 1:01 ` hermann pitton
0 siblings, 0 replies; 19+ messages in thread
From: hermann pitton @ 2010-03-20 1:01 UTC (permalink / raw)
To: VDR User; +Cc: v4l-dvb
Am Freitag, den 19.03.2010, 12:04 -0700 schrieb VDR User:
> Keeping v4l1 because some guys are still using some ancient setup is
> not a good reason. Keeping v4l1 because some app devs still haven't
> bothered to update their apps is not a good reason, especially given
> the amount of time they've had to complete this task. Keeping v4l1
> because package maintainers haven't bothered to update their packages
> is not a good reason.
>
> To put it simply, v4l1 is just dragging along dead weight. It has
> been replaced by something better and there's no reasonable excuse to
> keep dragging it along. There will always be someone complaining
> because there will always be someone neglecting to make the transition
> until the last possible second or resisting change even when it's for
> the better.
>
> App devs that haven't bothered to update -- you've had plenty of time
> to get it done. If you app breaks, it's not v4l's fault at this
> point.
>
> Users still on ancient hardware -- consider updating to cheap newer
> alternatives but don't expect v4l to be held back because you refuse
> to move forward. Or politely request old drivers be converted.
>
> Package maintainers -- if it's too much of a hassle to keep your
> package(s) updated, consider giving that responsibility to someone
> else.
>
> The points made in this thread make it pretty obvious that dumping
> v4l1 altogether is easily for the best and has only very minimal
> negative impact. And the negatives aren't anything that can't be
> resolved completely with a little commitment to do so.
>
> Best regards,
> Derek
If you are so clear and up to date on all,
please share your knowledge with us and tell at least, which vbi/cc and
radio app would still work after your proposal?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 18:00 ` David Ellingsworth
2010-03-19 18:12 ` Devin Heitmueller
@ 2010-03-19 19:57 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 19+ messages in thread
From: Mauro Carvalho Chehab @ 2010-03-19 19:57 UTC (permalink / raw)
To: David Ellingsworth; +Cc: Hans Verkuil, Laurent Pinchart, v4l-dvb
David Ellingsworth wrote:
> On Fri, Mar 19, 2010 at 1:43 PM, Mauro Carvalho Chehab
> <mchehab@redhat.com> wrote:
>> David Ellingsworth wrote:
>>> On Fri, Mar 19, 2010 at 9:47 AM, Mauro Carvalho Chehab
>>> <mchehab@redhat.com> wrote:
>>>> The V4L1 drivers that lasts are the ones without maintainers and probably without
>>>> a large users base. So, basically legacy hardware. So, their removals make sense.
>>>>
>>> In many ways the above statement is a catch 22. Most, if not all the
>>> v4l1 drivers are currently broken or unmaintained. However, this does
>>> not mean there are users who would not be using these drivers if they
>>> actually worked or had been properly maintained. I know this to be a
>>> fact of the ibmcam driver. It is both broken and unmaintained. Because
>>> of this I'm sure no one is currently using it.
>> It makes sense. However, considering that no new V4L1 driver is committed
>> since 2006, this means that those are old drivers for old hardware.
>>
>>> I happen to have a USB
>>> camera which is supposedly supported by the ibmcam driver.
>> In the specific case of ibmcam, we had only 10 commits on -hg since its
>> addition, back in 2006.
>>
>> Just using it as an example about the remaining drivers, for today's hardware,
>> an ibmusb model 3 webcam has 640x480x3fps, according to his driver. Other models
>> have QCIF or QVGA as their maximum resolution. I can easily buy a 640x480x30fps
>> camera (or even something better than that) for US$12,00 on a close shopping.
>
> The limitation on the frame rate within the driver is not an issue
> with the camera itself per-say. The camera I have supports
> 640x480x30fps but the ibmcam driver lacks support for the video mode
> used to achieve that rate. Specifically speaking, the camera uses a
> proprietary compressed image format that the current v4l1 ibmcam
> driver does not support for several reasons.
Ah, ok.
> First and foremost, the
> original author stated that he did not have time to reverse engineer
> the compressed format. Second even if he had, the code to do so
> doesn't belong in the driver itself.
As we're just talking about V4L1->V4L2 conversion, even if someone convert
or fix the driver, this issue will remain. Only finding someone to maintain
it, this issue will be fixed.
>
> Yes it is an old camera, but that does not mean there aren't people
> out there who still own cameras which would otherwise be usable if the
> driver worked. And sure people could just buy another camera.. but why
> replace hardware that's obviously not broken?
If you want/need a webcam in Linux, have a broken driver, an old hardware
and a new hardware costs less than 15 bucks, why not just buy a new camera?
Many users likely did it already with the remaining V4L1 drivers. With less
users/developers running Linux with this hardware, less chances that someone
would take the maintainership of the driver and fix/convert it.
We're talking about removal of those drivers for about two years, and nobody,
except for the existing developers that found some way to buy legacy used
hardware sent patches.
Anyway, I see your point.
The better alternative would be if someone could borrow or donate hardware
to Hans de Goede and/or another developers that may be interested and let
them convert the driver and hopefully break the proprietary protocols,
implementing them at libv4l.
Cheers,
Mauro
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 15:49 ` David Ellingsworth
2010-03-19 17:43 ` Mauro Carvalho Chehab
@ 2010-03-19 19:06 ` Hans de Goede
1 sibling, 0 replies; 19+ messages in thread
From: Hans de Goede @ 2010-03-19 19:06 UTC (permalink / raw)
To: David Ellingsworth
Cc: Mauro Carvalho Chehab, Hans Verkuil, Laurent Pinchart, v4l-dvb
Hi,
On 03/19/2010 04:49 PM, David Ellingsworth wrote:
> On Fri, Mar 19, 2010 at 9:47 AM, Mauro Carvalho Chehab
> <mchehab@redhat.com> wrote:
>> The V4L1 drivers that lasts are the ones without maintainers and probably without
>> a large users base. So, basically legacy hardware. So, their removals make sense.
>>
>
> In many ways the above statement is a catch 22. Most, if not all the
> v4l1 drivers are currently broken or unmaintained.
Ack, which is why I've been working actively on moving them all over to
gspca, but I need hardware access for that, see below.
However this thread is about removing support for v4l1 applications, and
there are actually still quite a few v4l1 apps out there, so we should
not do that!
> However, this does
> not mean there are users who would not be using these drivers if they
> actually worked or had been properly maintained. I know this to be a
> fact of the ibmcam driver. It is both broken and unmaintained. Because
> of this I'm sure no one is currently using it. I happen to have a USB
> camera which is supposedly supported by the ibmcam driver.
> Unfortunately, I have not the time nor expertise needed to
> update/fix/replace this driver, though I have previously tried. If
> someone on this list is willing to collaborate with me to make a
> functional v4l2 driver to replace the existing ibmcam driver, I'd be
> more than willing to expend more time and energy in doing so.
Great! I've bene looking for someone with such a cam. As you may know
I've been slowly porting over all the remaining v4l1 usb webcam drivers
to gspca (removing a lot of code duplication and making them v4l2 drivers).
By far the easiest way to get the driver for this camera converted to
a gspca using v4l2 driver is to send it to me, would you be willing to
do that ?
Regards,
Hans
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 8:46 ` Hans Verkuil
` (2 preceding siblings ...)
2010-03-19 13:47 ` Mauro Carvalho Chehab
@ 2010-03-19 15:17 ` Andy Walls
2010-03-19 19:02 ` Hans de Goede
4 siblings, 0 replies; 19+ messages in thread
From: Andy Walls @ 2010-03-19 15:17 UTC (permalink / raw)
To: Hans Verkuil; +Cc: Laurent Pinchart, v4l-dvb
On Fri, 2010-03-19 at 09:46 +0100, Hans Verkuil wrote:
> > On Friday 19 March 2010 08:59:08 Hans Verkuil wrote:
> >> Hi all,
> >>
> >> V4L1 support has been marked as scheduled for removal for a long time.
> >> The
> >> deadline for that in the feature-removal-schedule.txt file was July
> >> 2009.
> >>
> >> I think it is time that we remove the V4L1 compatibility support from
> >> V4L2
> >> drivers for 2.6.35.
> >
> This means that V4L2 drivers can only be used by V4L2-aware applications
> and can no longer be accessed by V4L1-only applications.
>From user reports I've seen lately, it looks like Debian (or some Debian
derivative) is not packaging v4l2-ctl, etc. but only the older v4lctl
and related utilities. Can anyone verify this?
If that is so, I anticipate end user complaints coming in. I wouldn't
cut the V4L1 inetrface out until we've got v4l2-ctl and friends in a
repository that is easily packaged as stand alone utils - separate from
the v4l-dvb driver tree. And perhaps a link on the webpage for
packagers and end users to find the v4l2 utils would head off some
complaints.
Regards,
Andy
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: RFC: Drop V4L1 support in V4L2 drivers
2010-03-19 8:46 ` Hans Verkuil
` (3 preceding siblings ...)
2010-03-19 15:17 ` Andy Walls
@ 2010-03-19 19:02 ` Hans de Goede
4 siblings, 0 replies; 19+ messages in thread
From: Hans de Goede @ 2010-03-19 19:02 UTC (permalink / raw)
To: Hans Verkuil; +Cc: Laurent Pinchart, v4l-dvb
Hi,
On 03/19/2010 09:46 AM, Hans Verkuil wrote:
>
>> On Friday 19 March 2010 08:59:08 Hans Verkuil wrote:
>>> Hi all,
>>>
>>> V4L1 support has been marked as scheduled for removal for a long time.
>>> The
>>> deadline for that in the feature-removal-schedule.txt file was July
>>> 2009.
>>>
>>> I think it is time that we remove the V4L1 compatibility support from
>>> V4L2
>>> drivers for 2.6.35.
>>
>> Do you mean just removing V4L1-specific code from V4L2 drivers, or
>> removing
>> the V4L1 compatibility layer completely ?
>
> The compat layer as well. So the only V4L1 code left is that for V4L1-only
> drivers.
>
> This means that V4L2 drivers can only be used by V4L2-aware applications
> and can no longer be accessed by V4L1-only applications.
>
I'm fine with removing the v4l1 compat code inside the drivers, but please
let the compat code live for a while, there are apps out there depending
on it.
Now most of those apps should be using libv4l1, but libv4l depends on
the compat layer! (but not on the driver specific v4l1 compat bits, only
on the generic compat layer).
>>> It would help with the videobuf cleanup as well, but that's just a
>>> bonus.
>>
>> Do we still have V4L1-only drivers that use videobuf ?
>
> No V4L1-only drivers use videobuf, but videobuf has support for the V4L1
> compat support in V4L2 drivers (the cgmbuf ioctl). So when we remove the
> compat support, then that videobuf code can be removed as well.
Removing that bit is fine (from a libv4l1 pov). libv4l1 is written to
work with v4l2 drivers which offer no assistance what so ever (such as
uvcvideo), but it does depend on the generic ioctl compatibility stuff.
Fixing this in libv4l1 is not hard but:
1) Requires me to have some time for it
2) Takes a while to get picked up by distros
So may I suggest that:
1) If not done already v4l1 compat gets turned into a clearly marked
kernel config option
2) This option gets marked as deprecated
3) It gets scheduled for removal (so added to the feature removal schedule
txt file.
Regards,
Hans
^ permalink raw reply [flat|nested] 19+ messages in thread