topology: Parse physical DAIs in text conf file

Add support for parsing physical DAIs in the text configuration file.
The syntax of physical DAIs is described in document in topology.h

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-16 14:42:33 +08:00 committed by Takashi Iwai
parent 50c77cdc7f
commit 0b6bd6c19a
6 changed files with 166 additions and 0 deletions

View file

@ -46,6 +46,10 @@ struct snd_soc_tplg_private *get_priv_data(struct tplg_elem *elem)
priv = &elem->widget->priv;
break;
case SND_TPLG_TYPE_DAI:
priv = &elem->dai->priv;
break;
default:
SNDERR("error: '%s': no support for private data for type %d\n",
elem->id, elem->type);