mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 11:41:29 -04:00
ASoC: SOF: amd: add ACP I2S format field and topology token
Add format field to sof_ipc_dai_acp_params for ACP I2S format selection. Add SOF_TKN_AMD_ACPI2S_FORMAT (1703) to the existing SOF_ACPI2S_TOKENS tuple and wire it into acpi2s_tokens[] so integrators continue using the same ACPI2S token group as earlier ACP I2S topologies, not a separate ACPTDM-specific token set. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20260701095759.1012929-15-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
deb631c3f3
commit
08c5e98b7b
@@ -18,6 +18,7 @@ struct sof_ipc_dai_acp_params {
|
||||
uint32_t fsync_rate; /* FSYNC frequency in Hz */
|
||||
uint32_t tdm_slots;
|
||||
uint32_t tdm_mode;
|
||||
uint32_t format;
|
||||
} __packed;
|
||||
|
||||
/* ACPDMIC Configuration Request - SOF_IPC_DAI_AMD_CONFIG */
|
||||
|
||||
@@ -223,6 +223,7 @@
|
||||
#define SOF_TKN_AMD_ACPI2S_RATE 1700
|
||||
#define SOF_TKN_AMD_ACPI2S_CH 1701
|
||||
#define SOF_TKN_AMD_ACPI2S_TDM_MODE 1702
|
||||
#define SOF_TKN_AMD_ACPI2S_FORMAT 1703
|
||||
|
||||
/* MICFIL PDM */
|
||||
#define SOF_TKN_IMX_MICFIL_RATE 2000
|
||||
|
||||
@@ -281,7 +281,10 @@ static const struct sof_topology_token acpdmic_tokens[] = {
|
||||
offsetof(struct sof_ipc_dai_acpdmic_params, pdm_ch)},
|
||||
};
|
||||
|
||||
/* ACPI2S */
|
||||
/*
|
||||
* ACPI2S tokens fill struct sof_ipc_dai_acp_params; SOF_DAI_AMD_I2S (ACPTDM
|
||||
* on ACP7.B/7.F) reuses this tuple group rather than defining a parallel set.
|
||||
*/
|
||||
static const struct sof_topology_token acpi2s_tokens[] = {
|
||||
{SOF_TKN_AMD_ACPI2S_RATE, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
|
||||
offsetof(struct sof_ipc_dai_acp_params, fsync_rate)},
|
||||
@@ -289,6 +292,8 @@ static const struct sof_topology_token acpi2s_tokens[] = {
|
||||
offsetof(struct sof_ipc_dai_acp_params, tdm_slots)},
|
||||
{SOF_TKN_AMD_ACPI2S_TDM_MODE, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
|
||||
offsetof(struct sof_ipc_dai_acp_params, tdm_mode)},
|
||||
{SOF_TKN_AMD_ACPI2S_FORMAT, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32,
|
||||
offsetof(struct sof_ipc_dai_acp_params, format)},
|
||||
};
|
||||
|
||||
/* MICFIL PDM */
|
||||
|
||||
Reference in New Issue
Block a user