Add TDM DAI and DMA support for the AMD ACP 7X platform with three instances.#10963
Open
DINESHKUMARK1 wants to merge 4 commits into
Open
Add TDM DAI and DMA support for the AMD ACP 7X platform with three instances.#10963DINESHKUMARK1 wants to merge 4 commits into
DINESHKUMARK1 wants to merge 4 commits into
Conversation
Add SOF_DAI_AMD_TDM to the sof_ipc_dai_type enum. Add format field to sof_ipc_dai_acp_params to carry the sample format (16/24/32-bit) from topology to the DAI driver. Add SOF_DMA_CAP_TDM (BIT(16)) and SOF_DMA_DEV_TDM (BIT(16)) capability/device bitmasks for the ACP TDM DMA controller. Signed-off-by: Sneha Voona <sneha.voona@amd.com> Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Route SOF_DAI_AMD_TDM through the DAI and DMA layer: - dai-zephyr.c: add SOF_DAI_AMD_TDM -> DAI_AMD_TDM / acptdm params - lib/dai.c: map SOF_DAI_AMD_TDM -> DAI_AMD_TDM in type conversion and set SOF_DMA_DEV_TDM/SOF_DMA_CAP_TDM in dai_set_device_params() - ipc3/dai.c: add SOF_DAI_AMD_TDM to dai_config_dma_channel(); handle TDM context allocation with struct tdm_context for CONFIG_SOC_ACP_7_X, propagating frame_fmt, pin_dir and dma_channel - zephyr/lib/dma.c: add amd_acp_tdm_dma DMA array entry guarded by DT_HAS_COMPAT_STATUS_OKAY(amd_acp_tdm_dma) Signed-off-by: Sneha Voona <sneha.voona@amd.com> Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Enable CONFIG_DMA_AMD_ACP_TDM and CONFIG_DAI_AMD_TDM for the ACP 7.X ADSP board to activate TDM audio support. Signed-off-by: Sneha Voona <sneha.voona@amd.com> Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Add TDM I2S topology templates for ACP 7.X: - platform/common/acp-tdm.m4: TDM DAI and pipeline macros - sof-acp_7_x_i2s.m4: default 16-bit TDM topology - sof-acp_7_x_i2s_24bit.m4: 24-bit TDM topology - dai.m4: add SOF_DAI_AMD_TDM token - tokens.m4: add SOF_TKN_AMD_ACP_I2S_BITDEPTH token Signed-off-by: Sneha Voona <sneha.voona@amd.com> Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
d9062d2 to
47cd55c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds TDM DAI and DMA support for the AMD ACP 7X platform with three I2S instances.