From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: han.lu@intel.com, alsa-devel@alsa-project.org
Subject: Re: [PATCH - UCM 2/2] ucm: add binary configure file parse
Date: Wed, 14 Jan 2015 11:29:54 +0000 [thread overview]
Message-ID: <1421234994.11933.17.camel@loki> (raw)
In-Reply-To: <s5hwq4q1muh.wl-tiwai@suse.de>
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" <han.lu@intel.com>
> > > >
> > > > with cset command, UCM set kcontrol parameters directly:
> > > > cset "name='<KCONTROL_NAME>' 1,2<,3,...>"
> > > > This patch enables UCM to set kcontrol with parameters from
> > > > configure file:
> > > > bcsetf "name='<KCONTROL_NAME>' <path/to/file>"
> > > > where "bcsetf" is a newly added keyword alongside of "cset", to
> > > > indicate binary cset with file; and <path/to/file> 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
next prev parent reply other threads:[~2015-01-14 11:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 3:00 [PATCH - UCM 1/2] control: enable octal and hexadecimal parse han.lu
2015-01-13 3:00 ` [PATCH - UCM 2/2] ucm: add binary configure file parse han.lu
2015-01-13 16:52 ` Takashi Iwai
2015-01-13 18:26 ` Liam Girdwood
2015-01-13 19:50 ` Takashi Iwai
2015-01-14 11:29 ` Liam Girdwood [this message]
2015-01-13 16:53 ` [PATCH - UCM 1/2] control: enable octal and hexadecimal parse Takashi Iwai
2015-01-13 18:21 ` Liam Girdwood
2015-01-13 20:01 ` Takashi Iwai
2015-01-14 1:28 ` Lu, Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421234994.11933.17.camel@loki \
--to=liam.r.girdwood@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=han.lu@intel.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.