From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: I want to dmix for my MIPS board, how can I do? Date: Mon, 07 Mar 2005 20:51:54 +0100 Message-ID: References: <1110224111.935.5.camel@mindpipe> <1110224854.935.7.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=ISO-2022-JP In-Reply-To: <1110224854.935.7.camel@mindpipe> 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: Lee Revell Cc: li_jiankun@hotmail.com, alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 07 Mar 2005 14:47:33 -0500, Lee Revell wrote: > > On Mon, 2005-03-07 at 20:44 +0100, Takashi Iwai wrote: > > At Mon, 07 Mar 2005 14:35:10 -0500, > > Lee Revell wrote: > > > > > > On Mon, 2005-03-07 at 22:24 +0800, 李建坤 wrote: > > > > alsa-devel, > > > > > > > > I'm an device driver developer for MIPS board. Now, I'm in urgent need of dmix source code for my Achemy board. > > > > I want to dmix on my MIPS Au1x00 board, Segmentation Fault occurs. I look up the code of pcm_dmix.c for possible reason, > > > > it says, > > > > #warning Please, recode mix_areas1() routine to your architecture... > > > > warning Please, recode mix_areas2() routine to your architecture... > > > > Does it mean the dmix can only be used on X86 architecture now? > > > > if I want to use it on my MIPS board, how can I do? > > > > > > > > Looking forward to anyone's reply! Tanks in advance! > > > > > > Yup, that's exactly what it means. Dmix is only implemented for x86 > > > now. If you want to use it on another arch you have to code it > > > yourself. > > > > > > But, isn't there a cleaner way to handle this than segfaulting? Why do > > > we even compile the plugin for non-x86 archs? > > > > Well, segfault is not intended, of course :) > > > > Does the segfault still happen with the CVS version? > > If so, there must be something wrong in another part (e.g. the general > > mmap support on MIPS). > > IIRC someone else reported a segfault trying to use dmix with another > unsupported arch. So this led me to believe the problem was related. Could be. I wanted to make sure of this because I changed/fixed the dmix code recently on CVS. Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click