[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hod0jfuhv.wl%tiwai@suse.de>
Date: Thu, 13 Nov 2008 17:42:04 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Pavel Machek <pavel@...e.cz>
Cc: Andres Salomon <dilinger@...ued.net>,
Jeremy Katz <katzj@...hat.com>, Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
Jordan Crouse <jordan.crouse@....com>,
linux-kernel@...r.kernel.org, dsaxena@...top.org
Subject: Re: [PATCH] ALSA: cs5535audio: only build OLPC support if MGEODE_LX is defined
At Thu, 13 Nov 2008 17:38:02 +0100,
Pavel Machek wrote:
>
> On Thu 2008-11-13 11:14:28, Andres Salomon wrote:
> > On Thu, 13 Nov 2008 16:54:19 +0100
> > Takashi Iwai <tiwai@...e.de> wrote:
> >
> > > At Thu, 13 Nov 2008 16:37:14 +0100,
> > > Pavel Machek wrote:
> > [...]
> > > >
> > > > > IMO, the basic problem is rather that the platform and the CPU
> > > > > selection is mixed up. The geode GPIO stuff shouldn't belong to
> > > > > CPU selection.
> > > >
> > > > ACK... and suggested patch makes it worse.
> > > >
> > > > There should be option 'support OLPC' somewhere, and that should
> > > > enable the gpio bits. Alsa driver should depend on that one.
> > >
> > > Any better fix patch is welcome, of course :)
> > > This would make save a lot time than writing mails...
>
> >
> > Okay, how about something like the following?
>
> It is wrong. It is valid & useful to compile kernel for i386 and
> expect all the features on OLPC (with small performance hit).
Pavel, the background story is that we have some OLPC-specific
features currently depending on geode GPIO.
Thus, it can't be built for i386, unless GPIO stuff is separated from
the CPU selection.
Takashi
> Pavel
>
> > This is a temporary work-around until the geode_gpio* calls are moved out
> > into a separate config option. We don't want to force generic kernel
> > maintainers to have to build a specific OLPC kernel.
> >
> > Signed-off-by: Andres Salomon <dilinger@...ian.org>
> > ---
> > sound/pci/cs5535audio/Makefile | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/sound/pci/cs5535audio/Makefile b/sound/pci/cs5535audio/Makefile
> > index ccc6422..fda7a94 100644
> > --- a/sound/pci/cs5535audio/Makefile
> > +++ b/sound/pci/cs5535audio/Makefile
> > @@ -4,7 +4,9 @@
> >
> > snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
> > snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o
> > +ifdef CONFIG_MGEODE_LX
> > snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
> > +endif
> >
> > # Toplevel Module Dependency
> > obj-$(CONFIG_SND_CS5535AUDIO) += snd-cs5535audio.o
>
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists