dai-amd.h 935 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2. /*
  3. * This file is provided under a dual BSD/GPLv2 license. When using or
  4. * redistributing this file, you may do so under either license.
  5. *
  6. * Copyright(c) 2021 Advanced Micro Devices, Inc.. All rights reserved.
  7. */
  8. #ifndef __INCLUDE_SOUND_SOF_DAI_AMD_H__
  9. #define __INCLUDE_SOUND_SOF_DAI_AMD_H__
  10. #include <sound/sof/header.h>
  11. /* ACP Configuration Request - SOF_IPC_DAI_AMD_CONFIG */
  12. struct sof_ipc_dai_acp_params {
  13. struct sof_ipc_hdr hdr;
  14. uint32_t fsync_rate; /* FSYNC frequency in Hz */
  15. uint32_t tdm_slots;
  16. uint32_t tdm_mode;
  17. } __packed;
  18. /* ACPDMIC Configuration Request - SOF_IPC_DAI_AMD_CONFIG */
  19. struct sof_ipc_dai_acpdmic_params {
  20. uint32_t pdm_rate;
  21. uint32_t pdm_ch;
  22. } __packed;
  23. /* ACP_SDW Configuration Request - SOF_IPC_DAI_AMD_SDW_CONFIG */
  24. struct sof_ipc_dai_acp_sdw_params {
  25. struct sof_ipc_hdr hdr;
  26. u32 rate;
  27. u32 channels;
  28. } __packed;
  29. #endif