[Alsa-devel] [RFC] alsa integer control ranges
Jaroslav Kysela
perex at suse.cz
Wed May 17 16:41:47 EST 2006
On Wed, 17 May 2006, Benjamin Herrenschmidt wrote:
> On Tue, 2006-05-16 at 14:31 +0200, Jaroslav Kysela wrote:
> > On Tue, 16 May 2006, Johannes Berg wrote:
> >
> > > Apparently all alsa userspace programs including alsamixer suck. Hence,
> > > this patch is required to make them work properly. Why is it so hard to
> > > do these additions/subtractions in the program or maybe even in the alsa
> > > library? The alsa libraries already think they know better and mess up
> > > all kinds of things.
> >
> > It's better to fix apps, if they are broken.
>
> Problem is, they are currently all broken (pretty much) and thus unless
> we want to release a driver that won't work with any current distros,
> we'll have to whack the ranges :(
It's better to have problematic values by default and define a module
(driver) option to enable the "compatible" behaviour. Otherwise the apps
will be never fixed. Also, ideally, you can fix apps and send patches to
authors and/or create problematic controls in the dummy driver
(drivers/dummy.c) and send a notice to app developers that they have
broken apps and ask to fix them refering to the dummy driver test case.
Jaroslav
-----
Jaroslav Kysela <perex at suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
More information about the Linuxppc-dev
mailing list