diff options
author | Brent Lu <brent.lu@intel.com> | 2024-03-26 01:10:39 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-03-26 01:44:49 +0300 |
commit | b020aff0ec6ec089bd3e07bd6b58623826752ff7 (patch) | |
tree | 4b6042917f53a18eabea07669c2ee47a2b68c526 /tools/perf/scripts/python/task-analyzer.py | |
parent | 885dd75f41f9fff5b277bc6ab28ad798f98a37b4 (diff) | |
download | linux-b020aff0ec6ec089bd3e07bd6b58623826752ff7.tar.xz |
ASoC: Intel: board_helpers: support DAI link ID customization
Add an new field link_id_overwrite to sof_card_private structure to
support machine drivers which DAI link ID is fixed number or
discontinue (i.e. no-codec boards). If this field is zero, DAI array
index will be used as link ID. Otherwise the value extracted from
link_id_overwrite will be used.
The field link_id_overwrite is supposed to be initialized by
SOF_LINK_IDS macro like following example.
ctx->link_id_overwrite = SOF_LINK_IDS(HEADPHONE_BE_ID, \
DMIC01_BE_ID, \
DMIC16K_BE_ID, \
IDISP_HDMI_BE_ID, \
SPK_BE_ID, \
BT_OFFLOAD_BE_ID, \
HDMI_IN_BE_ID)
An exception is that, if you use link_order_overwrite to overwrite
DAI link order, then you need to use the same order to build
link_id_overwrite variable as well.
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240325221059.206042-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions