audio.h 686 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef AUDIO_H
  7. #define AUDIO_H
  8. #include <stdint.h>
  9. #include <lib/mmio.h>
  10. enum mtk_audio_smc_call_op {
  11. MTK_AUDIO_SMC_OP_INIT = 0,
  12. MTK_AUDIO_SMC_OP_DRAM_REQUEST,
  13. MTK_AUDIO_SMC_OP_DRAM_RELEASE,
  14. MTK_AUDIO_SMC_OP_SRAM_REQUEST,
  15. MTK_AUDIO_SMC_OP_SRAM_RELEASE,
  16. MTK_AUDIO_SMC_OP_ADSP_REQUEST,
  17. MTK_AUDIO_SMC_OP_ADSP_RELEASE,
  18. MTK_AUDIO_SMC_OP_DOMAIN_SIDEBANDS,
  19. MTK_AUDIO_SMC_OP_BTCVSD_WRITE,
  20. MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_CLEAR,
  21. MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_UNDERFLOW,
  22. MTK_AUDIO_SMC_OP_NUM,
  23. };
  24. int32_t set_audio_domain_sidebands(void);
  25. #endif /* AUDIO_H */