]> git.alsa-project.org Git - alsa-lib.git/commit
topology: Store number of strings of a text section
authorMengdong Lin <mengdong.lin@linux.intel.com>
Thu, 24 Nov 2016 01:34:00 +0000 (09:34 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Nov 2016 13:20:22 +0000 (14:20 +0100)
commitf53ff68562d68057860562dc63ad80b4ffa191e1
treeea94e15d169baa0679ee736f44a61d44782a9c1f
parentf9633ed8520dd9a4cce81337173087d03521da6d
topology: Store number of strings of a text section

Enum controls may use text elements and need the number of strings.

This patch adds a text child object for a generic element. When parsing
a text section from the configuation file, store the text strings and
number of strings (num_items) in the text child object of the element.

Reported-by: G Kranthi <gudishax.kranthikumar@intel.com>
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/ctl.c
src/topology/elem.c
src/topology/text.c
src/topology/tplg_local.h