From: Paul Davis Subject: Re: Re: hdsp on big-endian Date: Thu, 23 May 2002 10:20:38 -0400 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Return-path: In-Reply-To: Your message of "Thu, 23 May 2002 11:58:49 +0200." Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org >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. No, this switches *only* the byte order of audio data. The registers are always little endian. --p _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm