From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH - UCM 2/2] ucm: add binary configure file parse Date: Wed, 14 Jan 2015 11:29:54 +0000 Message-ID: <1421234994.11933.17.camel@loki> References: <1421118039-8075-1-git-send-email-han.lu@intel.com> <1421118039-8075-2-git-send-email-han.lu@intel.com> <1421173578.6402.72.camel@loki> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id DE5A5261647 for ; Wed, 14 Jan 2015 12:30:01 +0100 (CET) In-Reply-To: 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: Takashi Iwai Cc: han.lu@intel.com, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 2015-01-13 at 20:50 +0100, Takashi Iwai wrote: > At Tue, 13 Jan 2015 18:26:18 +0000, > Liam Girdwood wrote: > > > > On Tue, 2015-01-13 at 17:52 +0100, Takashi Iwai wrote: > > > At Tue, 13 Jan 2015 11:00:39 +0800, > > > han.lu@intel.com wrote: > > > > > > > > From: "Lu, Han" > > > > > > > > with cset command, UCM set kcontrol parameters directly: > > > > cset "name='' 1,2<,3,...>" > > > > This patch enables UCM to set kcontrol with parameters from > > > > configure file: > > > > bcsetf "name='' " > > > > where "bcsetf" is a newly added keyword alongside of "cset", to > > > > indicate binary cset with file; and is the > > > > configure file storing parameters in bytes array, up to 512 Bytes > > > > (the maxim value that struct snd_ctl_elem_value can hold). > > > > > > Why binary? It's not portable. You can't carry it to a different > > > architecture. > > > > > > > The intention here is that the binary data is not meant for the host but > > for audio DSPs so it's just passed by UCM/ALSA as raw data. > > In that case, we should limit to certain element data types. > Otherwise people would abuse it for passing data even to integer or > enum ctls. > > And of course it'd be better to clarify the reason in the patch > description :) > > BTW, I'm still not so convinced by bcsetf... Can't it be more verbose > or readable? > Yeah, we should probably make it more readable :) Lu Han will probably have some naming suggestions shortly.... Liam