Skip to content

Commit 886c158

Browse files
ASoC: SOF: amd: add ACPTDM format field and topology token
Add format field to sof_ipc_dai_acp_params for I2S format selection. Add SOF_TKN_AMD_ACPI2S_FORMAT token (1703) and wire it into the acpi2s_tokens[] IPC3 topology parsing array. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
1 parent f49d30d commit 886c158

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

include/sound/sof/dai-amd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct sof_ipc_dai_acp_params {
1818
uint32_t fsync_rate; /* FSYNC frequency in Hz */
1919
uint32_t tdm_slots;
2020
uint32_t tdm_mode;
21+
u32 format;
2122
} __packed;
2223

2324
/* ACPDMIC Configuration Request - SOF_IPC_DAI_AMD_CONFIG */

include/uapi/sound/sof/tokens.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@
223223
#define SOF_TKN_AMD_ACPI2S_RATE 1700
224224
#define SOF_TKN_AMD_ACPI2S_CH 1701
225225
#define SOF_TKN_AMD_ACPI2S_TDM_MODE 1702
226+
#define SOF_TKN_AMD_ACPI2S_FORMAT 1703
226227

227228
/* MICFIL PDM */
228229
#define SOF_TKN_IMX_MICFIL_RATE 2000

sound/soc/sof/ipc3-topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ static const struct sof_topology_token acpi2s_tokens[] = {
289289
offsetof(struct sof_ipc_dai_acp_params, tdm_slots)},
290290
{SOF_TKN_AMD_ACPI2S_TDM_MODE, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
291291
offsetof(struct sof_ipc_dai_acp_params, tdm_mode)},
292+
{SOF_TKN_AMD_ACPI2S_FORMAT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
293+
offsetof(struct sof_ipc_dai_acp_params, format)},
292294
};
293295

294296
/* MICFIL PDM */

0 commit comments

Comments
 (0)