topology: Parse HW configurations of physical DAI links in text conf file

Users can configure the runtime supported HW configurations of a physical
link by SectionHWConfig. A physical link can refer multiple HW config
sections in SectionLink.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Mengdong Lin 2016-11-06 13:14:04 +08:00 committed by Takashi Iwai
parent 6b4d775b97
commit f7bf8b0cc8
5 changed files with 236 additions and 0 deletions

View file

@ -631,10 +631,31 @@ extern "C" {
*
* id "0" # used for binding to the link
*
* hw_configs [ # runtime supported HW configurations, optional
* "config1"
* "config2"
* ...
* ]
*
* default_hw_conf_id "1" #default HW config ID for init
*
* data "name" # optional private data
* }
* </pre>
*
* A physical link can refer to multiple runtime supported hardware
* configurations, which is defined by SectionHWConfig.
*
* <pre>
* SectionHWConfig."name" {
*
* id "1" # used for binding to the config
* format "I2S" # physical audio format.
* bclk "master" # Platform is master of bit clock
* fsync "slave" # Platform is slave of fsync
* }
* </pre>
*
* <h4>Manifest Private Data</h4>
* Manfiest may have private data. Users need to define a manifest section
* and add the references to 1 or multiple data sections. Please refer to
@ -706,6 +727,7 @@ enum snd_tplg_type {
SND_TPLG_TYPE_TOKEN, /*!< Vendor tokens */
SND_TPLG_TYPE_TUPLE, /*!< Vendor tuples */
SND_TPLG_TYPE_LINK, /*!< Physical DAI link */
SND_TPLG_TYPE_HW_CONFIG, /*!< Link HW config */
};
/**