[alsa-devel] [PATCH 03/19] ALSA: ymu831: add B-DSP driver
Takashi Iwai
tiwai at suse.de
Wed Jan 16 12:49:37 CET 2013
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
More information about the Alsa-devel
mailing list