From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Re: hdsp on big-endian Date: Thu, 23 May 2002 11:58:49 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 22 May 2002 09:56:28 -0400, Paul Davis wrote: > > >basically PCI bus is accessed as LE. that's why in_le32 is used > > OK, well apparently on OS X, either RME didn't use standard macros for > this (most likely), or there are no standard macros for this. > > >there. we can access to io without considration of endianess as long > >as using readX/writeX. > > Sounds like it, yes. Very nice. ok, then we can erase stuffs cpu_to_xxx and vice versa. but still one thing is not certain. what does the following (in snd_hdsp_initialize_firmware) set? #ifdef SNDRV_BIG_ENDIAN hdsp_write(hdsp, HDSP_jtagReg, HDSP_BIGENDIAN_MODE); #endif does it switch the access to big-endian? if yes, then we need cpu_to_xxx things there (to revert the conversion in readX/writeX), or use __raw_readX/writeX for access. well, anyway a tester with ppc machine is wanted to confirm this... Takashi _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm