diff options
| author | Mark Brown <broonie@kernel.org> | 2023-11-13 17:08:49 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2023-11-13 17:08:49 +0300 |
| commit | 8aa49ba73384e5c2587ece090fe98d439261c388 (patch) | |
| tree | 3b58d2484d2b659161bc4572ca070e8d8837b974 /include | |
| parent | 696e2d9bf35b6e5304ab734fe47a82fb1c330e71 (diff) | |
| parent | 89ef42088b3ba884a007ad10bd89ce8a81b9dedd (diff) | |
| download | linux-8aa49ba73384e5c2587ece090fe98d439261c388.tar.xz | |
ASoC: SOF: Add support for MICFIL PDM interface
Merge series from Daniel Baluta <daniel.baluta@oss.nxp.com>:
This is used for configuring MICFIL PDM with i.MX8MPlus. Tested
with 8MIC-RPI-MX8 microphone array.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/sof/dai-imx.h | 7 | ||||
| -rw-r--r-- | include/sound/sof/dai.h | 2 | ||||
| -rw-r--r-- | include/uapi/sound/sof/tokens.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/include/sound/sof/dai-imx.h b/include/sound/sof/dai-imx.h index ca8325353d41..6bc987bd4761 100644 --- a/include/sound/sof/dai-imx.h +++ b/include/sound/sof/dai-imx.h @@ -51,4 +51,11 @@ struct sof_ipc_dai_sai_params { uint16_t tdm_slot_width; uint16_t reserved2; /* alignment */ } __packed; + +/* MICFIL Configuration Request - SOF_IPC_DAI_MICFIL_CONFIG */ +struct sof_ipc_dai_micfil_params { + uint32_t pdm_rate; + uint32_t pdm_ch; +} __packed; + #endif diff --git a/include/sound/sof/dai.h b/include/sound/sof/dai.h index 3041f5805b7b..4773a5f616a4 100644 --- a/include/sound/sof/dai.h +++ b/include/sound/sof/dai.h @@ -88,6 +88,7 @@ enum sof_ipc_dai_type { SOF_DAI_AMD_HS, /**< Amd HS */ SOF_DAI_AMD_SP_VIRTUAL, /**< AMD ACP SP VIRTUAL */ SOF_DAI_AMD_HS_VIRTUAL, /**< AMD ACP HS VIRTUAL */ + SOF_DAI_IMX_MICFIL, /** < i.MX MICFIL PDM */ }; /* general purpose DAI configuration */ @@ -117,6 +118,7 @@ struct sof_ipc_dai_config { struct sof_ipc_dai_acpdmic_params acpdmic; struct sof_ipc_dai_acp_params acphs; struct sof_ipc_dai_mtk_afe_params afe; + struct sof_ipc_dai_micfil_params micfil; }; } __packed; diff --git a/include/uapi/sound/sof/tokens.h b/include/uapi/sound/sof/tokens.h index 453cab2a1209..0fb39780f9bd 100644 --- a/include/uapi/sound/sof/tokens.h +++ b/include/uapi/sound/sof/tokens.h @@ -213,4 +213,8 @@ #define SOF_TKN_AMD_ACPI2S_CH 1701 #define SOF_TKN_AMD_ACPI2S_TDM_MODE 1702 +/* MICFIL PDM */ +#define SOF_TKN_IMX_MICFIL_RATE 2000 +#define SOF_TKN_IMX_MICFIL_CH 2001 + #endif |
