From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: hdsp on big-endian Date: Tue, 21 May 2002 19:04:54 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: 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 Hi Paul, i converted b_swap's to cpu_to_xxx and xxx_to_cpu macros, and during that, found that the following part may not work correctly on BE. static inline unsigned long long hdsp_read64 (hdsp_t *hdsp, int reg) { unsigned long long val; val = hdsp_read(hdsp, reg); val = (val<<32)|hdsp_read(hdsp, reg + 4); return le64_to_cpu(val); } since hdsp_read returns the already converted 32bit word, the resultant 64bit word will be flipped again badly. i think we don't need here any endian conversion here. could you confirm this? ciao, 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