From: Mikael Magnusson Subject: Re: Compilation problems in adriver.h Date: Fri, 9 Sep 2005 14:10:07 +0200 Message-ID: <20050909121007.GA18991@skinner.hem.za.org> References: <20050908200729.GA27433@skinner.hem.za.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Fri, Sep 09, 2005 at 12:26:35PM +0200, Takashi Iwai wrote: > At Thu, 8 Sep 2005 22:07:29 +0200, > Mikael Magnusson wrote: > > > > Hi, > > > > I'm using a customized kernel based on kernel-source-2.6.11 from Debian, > > and I needed to modify adriver.h to be able to compile the alsa modules > > from current CVS. I moved the definition of __nocast, since the declaration > > of snd_compat_kstrdup causes a compilation error if __nocast is undefined. > > > > I also commented out the definition of CONFIG_ISA_DMA_API, because > > it led to a loop in snd.ko: > > > > WARNING: Loop detected: /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko > > which needs snd.ko again! > > > > It looks like a problem with snd_dma_pointer, snd_dma_disable and > > snd_dma_program: > > > > /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko needs > > "snd_dma_pointer": /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko > > /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko needs > > "snd_dma_disable": /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko > > /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko needs > > "snd_dma_program": /lib/modules/2.6.11-vserver-k7/alsa/acore/snd.ko > > > > I'm using a customized kernel based on kernel-source-2.6.11 (version > > 2.6.11-5) from Debian. > > Try the patch below. > I have tried the patch and it solves the problems. /Mikael Magnusson ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf