From: Takashi Iwai Subject: Re: [PATCH 03/19] ALSA: ymu831: add B-DSP driver Date: Wed, 16 Jan 2013 12:49:37 +0100 Message-ID: References: <20130116172530.857b627ef3303fb6fe43f603@linux-mips.org> <20130116172832.7339f01ca4557727fdc3883f@linux-mips.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A2DA92625FE for ; Wed, 16 Jan 2013 12:49:37 +0100 (CET) In-Reply-To: <20130116172832.7339f01ca4557727fdc3883f@linux-mips.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Yoichi Yuasa Cc: alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org At Wed, 16 Jan 2013 17:28:32 +0900, Yoichi Yuasa wrote: > > +static void bdsp_check_sin_control_sel(struct aec_bdsp_info *bdsp, u8 *data) > +{ > + u32 addr; > + u32 size; > + > + addr = htonl(*(u32 *) data); > + size = htonl(*(u32 *) (data + 5)); It's an unaligned access. And normally we use cpu_to_xxx() or xxx_to_cpu() macros for endian conversions. Takashi