summaryrefslogtreecommitdiff
path: root/src/topology/dapm.c
Commit message (Collapse)AuthorAgeFilesLines
* topology: Merge lookup for data reference into tplg_copy_data()Mengdong Lin2016-07-171-5/+4
| | | | | | | | | Code refactor to reduce function calls. Now tplg_copy_data() can look up a referenced data element and merge its data. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: An element can refer to multipe data sections in text conf fileMengdong Lin2016-07-171-5/+3
| | | | | | | | | | | | | | | | | Previously in text conf file, an element can only refer to one data section (SectionData). Now it can also refer to a list of data sections. Thus users can split groups of firmware parameters to multiple data sections, and put them all in the reference list. Finally, data of these data sections will be merged, in the same order as they are in the reference list, as the element's private data for kernel. We still support the original syntax of reference to a single data section. The doc is updated for the syntax extension. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: Add support for widget byte controlsLiam Girdwood2016-03-141-0/+30
| | | | | | | Add support for DAPM widgets to include bytes controls. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: A API calls to directly build topology data from templatesMengdong Lin2015-08-121-14/+169
| | | | | | | | | Add some new API calls so that applications can directly build topology data using template structures. 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>
* topology: rename OBJECT_TYPE_ to SND_TPLG_TYPE_Liam Girdwood2015-08-111-20/+23
| | | | | | | | rename OBJECT_TYPE_ to SND_TPLG_TYPE_ in preparation for exporting via a new public API. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: treat all DAPM controls types the same when copyingMengdong Lin2015-08-071-8/+3
| | | | | | | | Copy all DAPM controls types using the same method. 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>
* topology: Add element ID so we can look up references by name.Jin Yao2015-08-051-1/+1
| | | | | | | | | | Add support to lookup elements by name. This is in preparation for adding some new API calls that will allow building topology data using a C API. This will allow applications to build their own topology data directly. Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* topology: Add DAPM object parserLiam Girdwood2015-07-301-0/+562
Parse DAPM objects including widgets and graph elements. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>