[alsa-devel] [RFC 1/4] ASoC: topology: Add topology UAPI header.

Mark Brown broonie at kernel.org
Tue Apr 21 18:35:02 CEST 2015


On Tue, Apr 21, 2015 at 05:23:36PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > That's sounding like an awfully small number if we're trying to be
> > infititely future proof (obviously the default value for that is 640k!).
> > We'd also need to go through and give *all* the structures padding.  How
> > about just adding length fields instead with a rule that if the
> > structure is bigger than you know about just ignore anything at the end?

> In theory, having only "abi" field should be enough, as we can know
> the size predefined for each ABI version.  But I agree that it'd be
> friendlier for a parser if the header itself declares its size,
> e.g. via a header_size field or embedding the size into some check
> field like ioctl.

The trouble with the ABI version information is that it tells new
kernels how to handle old tables but old kernels will have no idea what
to do with new firmwares.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150421/45f03cb4/attachment.sig>


More information about the Alsa-devel mailing list