topology: Define hda.m4 for HD-Audio configurations

This patch adds a new file hda.m4.

This file defines macro HDA_DAI_CONFIG(idx, link_id, name) for user to
define configurations for HDA Backend links. The link's data tuple will
carry the HDA type info for kernel driver to check the link type.

Pleae note that there are no HW configurations defined for HDA BE links
because current HW configurations is more suitable for SSP BE links, but
not for HDA. We'll decide what HW configurations are suitable for HDA BE
links later.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
This commit is contained in:
Mengdong Lin 2018-08-07 22:17:38 -04:00
parent d40087fdd4
commit e767798c7f
2 changed files with 23 additions and 0 deletions

View File

@ -1,6 +1,7 @@
EXTRA_DIST = \
buffer.m4 \
dai.m4 \
hda.m4 \
mixer.m4 \
mixercontrol.m4 \
pcm.m4 \

22
topology/m4/hda.m4 Normal file
View File

@ -0,0 +1,22 @@
dnl HDA_DAI_CONFIG(idx, link_id, name)
define(`HDA_DAI_CONFIG',
`SectionVendorTuples."'N_DAI_CONFIG(HDA$1)`_tuples_common" {'
` tokens "sof_dai_tokens"'
` tuples."string" {'
` SOF_TKN_DAI_TYPE "HDA"'
` }'
` tuples."word" {'
` SOF_TKN_DAI_INDEX' STR($1)
` }'
`}'
`SectionData."'N_DAI_CONFIG(HDA$1)`_data_common" {'
` tuples "'N_DAI_CONFIG(HDA$1)`_tuples_common"'
`}'
`'
`SectionBE."'$3`" {'
` id "'$2`"'
` index "0"'
` data ['
` "'N_DAI_CONFIG(HDA$1)`_data_common"'
` ]'
`}')