diff options
author | Mengdong Lin <mengdong.lin@linux.intel.com> | 2016-11-06 13:14:15 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-11-08 16:33:21 +0100 |
commit | 2894c318163bf8b0c577569e14d54cb72ce843cd (patch) | |
tree | 6119f1c3790689547ccad94c7b38022ce24ed7a7 /include/topology.h | |
parent | f7bf8b0cc8600c0e09409cb5dadda585c349b36c (diff) | |
download | alsa-lib-2894c318163bf8b0c577569e14d54cb72ce843cd.tar.gz |
topology: Parse link flags of physical DAI links
Parse physical DAI link flags defined by text conf file or C API.
The flag mask and flags are added to C API template for physical DAI
links.
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/topology.h')
-rw-r--r-- | include/topology.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/topology.h b/include/topology.h index 85818aca..3692da4b 100644 --- a/include/topology.h +++ b/include/topology.h @@ -639,6 +639,11 @@ extern "C" { * * default_hw_conf_id "1" #default HW config ID for init * + * # Optional boolean flags + * symmetric_rates "true" + * symmetric_channels "false" + * symmetric_sample_bits "true" + * * data "name" # optional private data * } * </pre> @@ -988,6 +993,9 @@ struct snd_tplg_link_template { struct snd_tplg_hw_config_template *hw_config; /*!< supported HW configs */ int num_hw_configs; /* number of hw configs */ int default_hw_config_id; /* default hw config ID for init */ + + unsigned int flag_mask; /* bitmask of flags to configure */ + unsigned int flags; /* SND_SOC_TPLG_LNK_FLGBIT_* flag value */ }; /** \struct snd_tplg_obj_template |