From: Takashi Iwai Subject: Re: [PATCH 4/4] ASoC: firmware core: Add core support to create and destroy firmware components. Date: Tue, 20 Nov 2012 13:05:50 +0100 Message-ID: References: <1353348765-6238-1-git-send-email-lrg@ti.com> <1353348765-6238-4-git-send-email-lrg@ti.com> <50AB718D.10207@ti.com> 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 47FEE2615DF for ; Tue, 20 Nov 2012 13:05:50 +0100 (CET) In-Reply-To: <50AB718D.10207@ti.com> 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: Liam Girdwood Cc: alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org At Tue, 20 Nov 2012 12:03:25 +0000, Liam Girdwood wrote: > > On 19/11/12 18:46, Takashi Iwai wrote: > > > I find the idea is great. Looking through the patch, a few things > > came to my mind: > > > > - Endianness and alignment > > - Forward-compatibility > > - Avoid the bitfield usages > > > > About endianness: the firmware is usually provided as > > endian-independent. That is, the driver is supposed to convert to CPU > > endianness properly, or check and reject the invalid firmware, at > > least. > > > > Yeah, that's something we don't convert atm, but we do check with a u32 magic > number in each header (and will reject that object if the header is missing or > incorrect). That's what I expected. Then it'd be helpful if the driver checks about the wrong endian, too, instead of some unknown error. Takashi