14483151eSLiam Girdwood /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 24483151eSLiam Girdwood /* 34483151eSLiam Girdwood * This file is provided under a dual BSD/GPLv2 license. When using or 44483151eSLiam Girdwood * redistributing this file, you may do so under either license. 54483151eSLiam Girdwood * 64483151eSLiam Girdwood * Copyright(c) 2018 Intel Corporation. All rights reserved. 74483151eSLiam Girdwood * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> 84483151eSLiam Girdwood * Keyon Jie <yang.jie@linux.intel.com> 94483151eSLiam Girdwood */ 104483151eSLiam Girdwood 114483151eSLiam Girdwood /* 124483151eSLiam Girdwood * Topology IDs and tokens. 134483151eSLiam Girdwood * 144483151eSLiam Girdwood * ** MUST BE ALIGNED WITH TOPOLOGY CONFIGURATION TOKEN VALUES ** 154483151eSLiam Girdwood */ 164483151eSLiam Girdwood 174483151eSLiam Girdwood #ifndef __INCLUDE_UAPI_SOF_TOPOLOGY_H__ 184483151eSLiam Girdwood #define __INCLUDE_UAPI_SOF_TOPOLOGY_H__ 194483151eSLiam Girdwood 204483151eSLiam Girdwood /* 214483151eSLiam Girdwood * Kcontrol IDs 224483151eSLiam Girdwood */ 234483151eSLiam Girdwood #define SOF_TPLG_KCTL_VOL_ID 256 244483151eSLiam Girdwood #define SOF_TPLG_KCTL_ENUM_ID 257 254483151eSLiam Girdwood #define SOF_TPLG_KCTL_BYTES_ID 258 264483151eSLiam Girdwood #define SOF_TPLG_KCTL_SWITCH_ID 259 27783560d0SDharageswari R #define SOF_TPLG_KCTL_BYTES_VOLATILE_RO 260 28783560d0SDharageswari R #define SOF_TPLG_KCTL_BYTES_VOLATILE_RW 261 29783560d0SDharageswari R #define SOF_TPLG_KCTL_BYTES_WO_ID 262 304483151eSLiam Girdwood 314483151eSLiam Girdwood /* 324483151eSLiam Girdwood * Tokens - must match values in topology configurations 334483151eSLiam Girdwood */ 344483151eSLiam Girdwood 354483151eSLiam Girdwood /* buffers */ 364483151eSLiam Girdwood #define SOF_TKN_BUF_SIZE 100 374483151eSLiam Girdwood #define SOF_TKN_BUF_CAPS 101 384483151eSLiam Girdwood 394483151eSLiam Girdwood /* DAI */ 404483151eSLiam Girdwood /* Token retired with ABI 3.2, do not use for new capabilities 414483151eSLiam Girdwood * #define SOF_TKN_DAI_DMAC_CONFIG 153 424483151eSLiam Girdwood */ 434483151eSLiam Girdwood #define SOF_TKN_DAI_TYPE 154 444483151eSLiam Girdwood #define SOF_TKN_DAI_INDEX 155 454483151eSLiam Girdwood #define SOF_TKN_DAI_DIRECTION 156 464483151eSLiam Girdwood 474483151eSLiam Girdwood /* scheduling */ 484483151eSLiam Girdwood #define SOF_TKN_SCHED_PERIOD 200 494483151eSLiam Girdwood #define SOF_TKN_SCHED_PRIORITY 201 504483151eSLiam Girdwood #define SOF_TKN_SCHED_MIPS 202 514483151eSLiam Girdwood #define SOF_TKN_SCHED_CORE 203 524483151eSLiam Girdwood #define SOF_TKN_SCHED_FRAMES 204 534483151eSLiam Girdwood #define SOF_TKN_SCHED_TIME_DOMAIN 205 542c28ecadSRanjani Sridharan #define SOF_TKN_SCHED_DYNAMIC_PIPELINE 206 55*bd10cd5eSRanjani Sridharan #define SOF_TKN_SCHED_LP_MODE 207 56*bd10cd5eSRanjani Sridharan #define SOF_TKN_SCHED_MEM_USAGE 208 574483151eSLiam Girdwood 584483151eSLiam Girdwood /* volume */ 594483151eSLiam Girdwood #define SOF_TKN_VOLUME_RAMP_STEP_TYPE 250 604483151eSLiam Girdwood #define SOF_TKN_VOLUME_RAMP_STEP_MS 251 614483151eSLiam Girdwood 62*bd10cd5eSRanjani Sridharan #define SOF_TKN_GAIN_RAMP_TYPE 260 63*bd10cd5eSRanjani Sridharan #define SOF_TKN_GAIN_RAMP_DURATION 261 64*bd10cd5eSRanjani Sridharan #define SOF_TKN_GAIN_VAL 262 65*bd10cd5eSRanjani Sridharan 664483151eSLiam Girdwood /* SRC */ 674483151eSLiam Girdwood #define SOF_TKN_SRC_RATE_IN 300 684483151eSLiam Girdwood #define SOF_TKN_SRC_RATE_OUT 301 694483151eSLiam Girdwood 70433363e7SSeppo Ingalsuo /* ASRC */ 71433363e7SSeppo Ingalsuo #define SOF_TKN_ASRC_RATE_IN 320 72433363e7SSeppo Ingalsuo #define SOF_TKN_ASRC_RATE_OUT 321 73433363e7SSeppo Ingalsuo #define SOF_TKN_ASRC_ASYNCHRONOUS_MODE 322 74433363e7SSeppo Ingalsuo #define SOF_TKN_ASRC_OPERATION_MODE 323 75433363e7SSeppo Ingalsuo 764483151eSLiam Girdwood /* PCM */ 774483151eSLiam Girdwood #define SOF_TKN_PCM_DMAC_CONFIG 353 784483151eSLiam Girdwood 794483151eSLiam Girdwood /* Generic components */ 804483151eSLiam Girdwood #define SOF_TKN_COMP_PERIOD_SINK_COUNT 400 814483151eSLiam Girdwood #define SOF_TKN_COMP_PERIOD_SOURCE_COUNT 401 824483151eSLiam Girdwood #define SOF_TKN_COMP_FORMAT 402 834483151eSLiam Girdwood /* Token retired with ABI 3.2, do not use for new capabilities 844483151eSLiam Girdwood * #define SOF_TKN_COMP_PRELOAD_COUNT 403 854483151eSLiam Girdwood */ 86d1c6c4a9SGuennadi Liakhovetski #define SOF_TKN_COMP_CORE_ID 404 8743fbb086SKeyon Jie #define SOF_TKN_COMP_UUID 405 88*bd10cd5eSRanjani Sridharan #define SOF_TKN_COMP_CPC 406 89*bd10cd5eSRanjani Sridharan #define SOF_TKN_COMP_IS_PAGES 409 90*bd10cd5eSRanjani Sridharan #define SOF_TKN_COMP_NUM_AUDIO_FORMATS 410 914483151eSLiam Girdwood 924483151eSLiam Girdwood /* SSP */ 934483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_CLKS_CONTROL 500 944483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_MCLK_ID 501 954483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_SAMPLE_BITS 502 964483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_FRAME_PULSE_WIDTH 503 974483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_QUIRKS 504 984483151eSLiam Girdwood #define SOF_TKN_INTEL_SSP_TDM_PADDING_PER_SLOT 505 996298b787SJanusz Jankowski #define SOF_TKN_INTEL_SSP_BCLK_DELAY 506 1004483151eSLiam Girdwood 1014483151eSLiam Girdwood /* DMIC */ 1024483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_DRIVER_VERSION 600 1034483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_CLK_MIN 601 1044483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_CLK_MAX 602 1054483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_DUTY_MIN 603 1064483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_DUTY_MAX 604 1074483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_NUM_PDM_ACTIVE 605 1084483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_SAMPLE_RATE 608 1094483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_FIFO_WORD_LENGTH 609 1107df43911SSeppo Ingalsuo #define SOF_TKN_INTEL_DMIC_UNMUTE_RAMP_TIME_MS 610 1114483151eSLiam Girdwood 1124483151eSLiam Girdwood /* DMIC PDM */ 1134483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_CTRL_ID 700 1144483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_MIC_A_Enable 701 1154483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_MIC_B_Enable 702 1164483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_POLARITY_A 703 1174483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_POLARITY_B 704 1184483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_CLK_EDGE 705 1194483151eSLiam Girdwood #define SOF_TKN_INTEL_DMIC_PDM_SKEW 706 1204483151eSLiam Girdwood 1214483151eSLiam Girdwood /* Tone */ 1224483151eSLiam Girdwood #define SOF_TKN_TONE_SAMPLE_RATE 800 1234483151eSLiam Girdwood 1244483151eSLiam Girdwood /* Processing Components */ 1254483151eSLiam Girdwood #define SOF_TKN_PROCESS_TYPE 900 1264483151eSLiam Girdwood 1274483151eSLiam Girdwood /* for backward compatibility */ 1284483151eSLiam Girdwood #define SOF_TKN_EFFECT_TYPE SOF_TKN_PROCESS_TYPE 1294483151eSLiam Girdwood 130f59b16efSDaniel Baluta /* SAI */ 1319c1d4cf6SGuido Roncarolo #define SOF_TKN_IMX_SAI_MCLK_ID 1000 132f59b16efSDaniel Baluta 133f59b16efSDaniel Baluta /* ESAI */ 134b4be4276SDaniel Baluta #define SOF_TKN_IMX_ESAI_MCLK_ID 1100 135f59b16efSDaniel Baluta 1364a949409SKeyon Jie /* Stream */ 1374a949409SKeyon Jie #define SOF_TKN_STREAM_PLAYBACK_COMPATIBLE_D0I3 1200 1384a949409SKeyon Jie #define SOF_TKN_STREAM_CAPTURE_COMPATIBLE_D0I3 1201 1394a949409SKeyon Jie 1405d43001aSJaska Uimonen /* Led control for mute switches */ 1415d43001aSJaska Uimonen #define SOF_TKN_MUTE_LED_USE 1300 1425d43001aSJaska Uimonen #define SOF_TKN_MUTE_LED_DIRECTION 1301 1435d43001aSJaska Uimonen 144c7fc96dfSBard Liao /* ALH */ 145c7fc96dfSBard Liao #define SOF_TKN_INTEL_ALH_RATE 1400 146c7fc96dfSBard Liao #define SOF_TKN_INTEL_ALH_CH 1401 147c7fc96dfSBard Liao 14818aaab64SBard Liao /* HDA */ 14918aaab64SBard Liao #define SOF_TKN_INTEL_HDA_RATE 1500 15018aaab64SBard Liao #define SOF_TKN_INTEL_HDA_CH 1501 15118aaab64SBard Liao 152e6feefa5SYC Hung /* AFE */ 153e6feefa5SYC Hung #define SOF_TKN_MEDIATEK_AFE_RATE 1600 154e6feefa5SYC Hung #define SOF_TKN_MEDIATEK_AFE_CH 1601 155e6feefa5SYC Hung #define SOF_TKN_MEDIATEK_AFE_FORMAT 1602 156e6feefa5SYC Hung 157*bd10cd5eSRanjani Sridharan /* MIXER */ 158*bd10cd5eSRanjani Sridharan #define SOF_TKN_MIXER_TYPE 1700 159*bd10cd5eSRanjani Sridharan 160*bd10cd5eSRanjani Sridharan /* CAVS AUDIO FORMAT */ 161*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_RATE 1900 162*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_BIT_DEPTH 1901 163*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_VALID_BIT 1902 164*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_CHANNELS 1903 165*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_CH_MAP 1904 166*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_CH_CFG 1905 167*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_INTERLEAVING_STYLE 1906 168*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_FMT_CFG 1907 169*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IN_SAMPLE_TYPE 1908 170*bd10cd5eSRanjani Sridharan /* intentional token numbering discontinuity, reserved for future use */ 171*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_RATE 1930 172*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_BIT_DEPTH 1931 173*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_VALID_BIT 1932 174*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_CHANNELS 1933 175*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_CH_MAP 1934 176*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_CH_CFG 1935 177*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_INTERLEAVING_STYLE 1936 178*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_FMT_CFG 1937 179*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OUT_SAMPLE_TYPE 1938 180*bd10cd5eSRanjani Sridharan /* intentional token numbering discontinuity, reserved for future use */ 181*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_IBS 1970 182*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_OBS 1971 183*bd10cd5eSRanjani Sridharan #define SOF_TKN_CAVS_AUDIO_FORMAT_DMA_BUFFER_SIZE 1972 184*bd10cd5eSRanjani Sridharan 185*bd10cd5eSRanjani Sridharan /* COPIER */ 186*bd10cd5eSRanjani Sridharan #define SOF_TKN_INTEL_COPIER_NODE_TYPE 1980 187*bd10cd5eSRanjani Sridharan 1884483151eSLiam Girdwood #endif 189