]> git.alsa-project.org Git - alsa-lib.git/commit
topology: update ABI to improve support for different TLV object types.
authorMengdong Lin <mengdong.lin@intel.com>
Wed, 5 Aug 2015 13:41:50 +0000 (14:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Aug 2015 15:52:27 +0000 (17:52 +0200)
commit8c8372cc060ec16776db28f927c9402dcc09b001
tree63793d35b6d3524fffe6c3e8fae75ee52bab3e84
parentd5e7e8bb38681c2cbf3777314c422130a740810e
topology: update ABI to improve support for different TLV object types.

Currently the TLV topology structure is targeted at only supporting the
DB scale data. This patch extends support for the other TLV types so they
can be easily added at a later stage.

TLV structure is moved to common topology control header since it's a
common field for controls and can be processed in a general way.

Users must set a proper access flag for a control since it's used to decide
if the TLV field is valid and if a TLV callback is needed.

Removed the following fields from topology TLV struct:
 - size/count: type can decide the size.
 - numid: not needed to initialize TLV for kcontrol.
 - data: replaced by the type specific struct.

Added TLV structure to generic control header and removed TLV structure from
mixer control.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asoc.h
src/topology/ctl.c