mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
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:
parent
6b4d775b97
commit
f7bf8b0cc8
5 changed files with 236 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ struct snd_tplg {
|
|||
struct list_head manifest_list;
|
||||
struct list_head pcm_config_list;
|
||||
struct list_head pcm_caps_list;
|
||||
struct list_head hw_cfg_list;
|
||||
|
||||
/* type-specific control lists */
|
||||
struct list_head mixer_list;
|
||||
|
|
@ -148,6 +149,7 @@ struct tplg_elem {
|
|||
struct snd_soc_tplg_dapm_graph_elem *route;
|
||||
struct snd_soc_tplg_stream *stream_cfg;
|
||||
struct snd_soc_tplg_stream_caps *stream_caps;
|
||||
struct snd_soc_tplg_hw_config *hw_cfg;
|
||||
|
||||
/* these do not map to UAPI structs but are internal only */
|
||||
struct snd_soc_tplg_ctl_tlv *tlv;
|
||||
|
|
@ -226,6 +228,9 @@ int tplg_parse_link(snd_tplg_t *tplg,
|
|||
int tplg_parse_cc(snd_tplg_t *tplg,
|
||||
snd_config_t *cfg, void *private ATTRIBUTE_UNUSED);
|
||||
|
||||
int tplg_parse_hw_config(snd_tplg_t *tplg, snd_config_t *cfg,
|
||||
void *private ATTRIBUTE_UNUSED);
|
||||
|
||||
int tplg_build_data(snd_tplg_t *tplg);
|
||||
int tplg_build_manifest_data(snd_tplg_t *tplg);
|
||||
int tplg_build_controls(snd_tplg_t *tplg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue