From: Gerd Knorr <kraxel@bytesex.org>
To: Luca Risolia <luca.risolia@studio.unibo.it>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, video4linux-list@redhat.com
Subject: Re: [PATCH 2.6.9-rc1-mm1] Disable colour conversion in the CPiA Video Camera driver
Date: Tue, 31 Aug 2004 19:52:36 +0200 [thread overview]
Message-ID: <20040831175235.GA21130@bytesex> (raw)
In-Reply-To: <20040830203117.5acca627.luca.risolia@studio.unibo.it>
On Mon, Aug 30, 2004 at 08:31:17PM +0200, Luca Risolia wrote:
> On Mon, 30 Aug 2004 15:32:05 +0200
> Gerd Knorr <kraxel@bytesex.org> wrote:
>
> > First: there should be a reasonable warning time for the current users.
> > Some printk message telling them they are using a depricated feature.
> > Maybe even a insmod option to enable/disable it, with the default being
> > software conversion disabled.
> >
> > Second: IMHO it would be a very good idea to port the driver to the v4l2
> > API before ripping the in-kernel colorspace conversion support. v4l2
> > provides a sane API to get a list of supported color formats, whereas
> > with v4l1 it is dirty trial-and-error + guesswork for the applications.
>
> I don't see why porting the driver to the V4L2 API has to precede the
> software conversion removal I was talking about. I think that the
> negotiation of the color formats is not the point here...
It's a suggestion, not a requirement. The point simply is that due to
the lack of a sane negotiation of the color formats in the v4l1 API
you'll get warning printk's even if there is no real problem. xawtv for
example doesn't depend on RGB formats being available, but will try to
use them (which then generates a warning printk), and failing that
fallback to yuv and software conversion. With v4l2 you don't get those
bogous and confusing warnings as the app can simply ask the driver for a
list of supported formats instead of depending on trial-and-error games.
> For many years no one has ever cancelled deprecated code yet both
> users and developers know that software conversion should be made
> in userspace.
That isn't true. I can remember that at least one usb webcam driver
stopped working with xawtv because in-kernel software conversion was
dropped and xawtv had no support the specific color format used by
that webcam at that time.
> It is worth to state that those who have preached this rule and have
> always, for instance, been opposed to optional decoders in kernel
> space, have never lifted a finger to correct already existing code.
> Now, I do not expect that these people wake up and even provide a V4L2
> driver.
>
> In addition, aside from software conversion, it is enough to take a
> quick look at the code to understand that it is no longer maintained.
Oh. That sounds like you don't even remotely intend to care about that
driver? Why do you mail patches for it then?
> Having seen the recent occurrences, non-maintained drivers should be
> altogether removed.
What is the point in removing a working driver? If a driver is broken
and nobody cares fixing it -- fine, rip it, user base likely is close to
zero anyway then. But that isn't true for cpia as far I know.
> Nevertheless, there is below a new patch that adds a parameter to the
> module and warnings for users, as suggested by you.
> + LOG("Palette %u not available by default. Set colorspace_conv "
> + "module parameter to 1 to enable it", (unsigned)(palette));
The message should be rate limited as suggested in the previous message
(because otherwise the log may be flooded with bogous warnings due to
the v4l1 API issues mentioned above). Maybe a single message at insmod
time is even better.
In any case the message should make clear the intention of this, i.e.
that it is planned to drop in-kernel conversion altogether by -- say --
sept 2005 (should be enougth warning time), that is disabled by default
now to catch problem cases, and that the users should fix the apps in
case they don't work without conversion reenabled via insmod option.
Gerd
--
return -ENOSIG;
next prev parent reply other threads:[~2004-08-31 18:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040830013201.7d153288.akpm@osdl.org>
2004-08-30 13:32 ` [PATCH 2.6.9-rc1-mm1] Disable colour conversion in the CPiA Video Camera driver Gerd Knorr
2004-08-30 18:31 ` Luca Risolia
2004-08-31 17:52 ` Gerd Knorr [this message]
2004-08-31 18:05 ` Alan Cox
2004-09-01 6:07 ` Luca Risolia
2004-08-31 15:10 ` Bill Davidsen
2004-08-30 8:10 Luca Risolia
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=20040831175235.GA21130@bytesex \
--to=kraxel@bytesex.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.risolia@studio.unibo.it \
--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