All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: hdsp on big-endian
@ 2002-05-21 17:04 Takashi Iwai
  2002-05-21 17:22 ` Paul Davis
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2002-05-21 17:04 UTC (permalink / raw)
  To: Paul Davis; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-05-24 16:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-21 17:04 hdsp on big-endian Takashi Iwai
2002-05-21 17:22 ` Paul Davis
2002-05-22 11:21   ` Takashi Iwai
2002-05-22 12:25     ` Paul Davis
2002-05-22 12:56       ` Takashi Iwai
2002-05-22 13:29         ` Paul Davis
     [not found]         ` <20020522132801.E18131E7CC@Cantor.suse.de>
2002-05-22 13:47           ` Takashi Iwai
2002-05-22 13:56             ` Paul Davis
2002-05-23  9:58               ` Takashi Iwai
2002-05-23 14:20                 ` Paul Davis
2002-05-24 16:34                   ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.