From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Trying again with cross compile Date: Fri, 07 Apr 2006 16:41:56 +0200 Message-ID: References: <1144413234.9653.16.camel@localhost.localdomain> <1144419331.9653.22.camel@localhost.localdomain> <1144420643.9653.25.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1144420643.9653.25.camel@localhost.localdomain> 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: Adrian McMenamin Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 07 Apr 2006 15:37:23 +0100, Adrian McMenamin wrote: > > On Fri, 2006-04-07 at 16:31 +0200, Takashi Iwai wrote: > > At Fri, 07 Apr 2006 15:15:31 +0100, > > Adrian McMenamin wrote: > > > > > > On Fri, 2006-04-07 at 14:41 +0200, Takashi Iwai wrote: > > > > At Fri, 07 Apr 2006 13:33:54 +0100, > > > > Adrian McMenamin wrote: > > > > > > > > > > I've downloaded the cvs alsa-driver. > > > > > I've added an sh directory - > > > > > > > > > > adrian@bossclass:~/alsa-driver/sh$ ls -l > > > > > total 32 > > > > > -rw-r--r-- 1 adrian adrian 2156 2006-04-07 12:34 aica.h > > > > > -rw-r--r-- 1 adrian adrian 356 2006-04-07 12:34 Kconfig > > > > > -rw-r--r-- 1 adrian adrian 65 2006-04-07 12:34 Makefile > > > > > -rw-r--r-- 1 adrian adrian 18262 2006-04-07 12:34 snd_aica.c > > > > > > > > > > and then I run cvscompile (as configured below) and get this... what do > > > > > I do next? > > > > > > > > Edit configure.in to add sh arch support. Add the corresponding > > > > directory alsa-driver/Makefile (there are multiple places you need to > > > > add there). > > > > > > > well, I think I've added this and it still breaks - will this build > > > against a 2.6.15 kernel? > > > > > > > > > > > > make ARCH=sh > > > > > > ... > > > make -C /home/adrian/linux-2.6.15.2 SUBDIRS=/home/adrian/alsa-driver > > > O=/home/adrian/linux-2.6.15.2 modules > > > make[1]: Entering directory `/home/adrian/linux-2.6.15.2' > > > CC [M] /home/adrian/alsa-driver/acore/hwdep.o > > > CC [M] /home/adrian/alsa-driver/acore/memalloc.o > > > CC [M] /home/adrian/alsa-driver/acore/sgbuf.o > > > CC [M] /home/adrian/alsa-driver/acore/memory_wrapper.o > > > CC [M] /home/adrian/alsa-driver/acore/pcm.o > > > CC [M] /home/adrian/alsa-driver/acore/pcm_native.o > > > /home/adrian/alsa-driver/acore/pcm_native.c: In function `snd_pcm_xrun': > > > /home/adrian/alsa-driver/acore/pcm_native.c:1205: error: too few > > > arguments to function `snd_power_wait' > > > > It's a bug fixed recently. Update your CVS tree. > > I downloaded this about three hours ago - how recently was it fixed? Is > it just busted sf anon cvs? Maybe not yet? The fix is simple as below. Takashi diff -r fd751f7a6395 -r 6cddb34dad21 include/core.h --- a/include/core.h Thu Apr 6 15:23:55 2006 +0200 +++ b/include/core.h Thu Apr 6 15:26:05 2006 +0200 @@ -176,7 +176,7 @@ int snd_power_wait(struct snd_card *card #define snd_power_lock(card) do { (void)(card); } while (0) #define snd_power_unlock(card) do { (void)(card); } while (0) -static inline int snd_power_wait(struct snd_card *card, unsigned int state, struct file *file) { return 0; } +static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } #define snd_power_get_state(card) SNDRV_CTL_POWER_D0 #define snd_power_change_state(card, state) do { (void)(card); } while (0) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642