summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/drivers/audio/audio.h
blob: 1598a92d23ab734161872f286d501ed4290289b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2022, MediaTek Inc. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef AUDIO_H
#define AUDIO_H

#include <stdint.h>
#include <lib/mmio.h>

enum mtk_audio_smc_call_op {
	MTK_AUDIO_SMC_OP_INIT = 0,
	MTK_AUDIO_SMC_OP_DRAM_REQUEST,
	MTK_AUDIO_SMC_OP_DRAM_RELEASE,
	MTK_AUDIO_SMC_OP_SRAM_REQUEST,
	MTK_AUDIO_SMC_OP_SRAM_RELEASE,
	MTK_AUDIO_SMC_OP_ADSP_REQUEST,
	MTK_AUDIO_SMC_OP_ADSP_RELEASE,
	MTK_AUDIO_SMC_OP_DOMAIN_SIDEBANDS,
	MTK_AUDIO_SMC_OP_BTCVSD_WRITE,
	MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_CLEAR,
	MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_UNDERFLOW,
	MTK_AUDIO_SMC_OP_NUM,
};

int32_t set_audio_domain_sidebands(void);

#endif /* AUDIO_H */