Files
android/sound/soc/codecs/aw87xxx/awinic_dsp.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

38 lines
822 B
C

#ifndef __AWINIC_DSP_H__
#define __AWINIC_DSP_H__
/*#define AW_MTK_OPEN_DSP_PLATFORM*/
/**********************************************************
* aw87xxx dsp
***********************************************************/
#define AWINIC_DSP_MSG_HDR_VER (1)
/*dsp params id*/
#define AFE_PARAM_ID_AWDSP_RX_VMAX_L (0X10013D17)
#define AFE_PARAM_ID_AWDSP_RX_VMAX_R (0X10013D18)
enum aw_channel {
AW_CHANNEL_LEFT = 0,
AW_CHANNEL_RIGHT = 1,
};
enum aw_dsp_msg_type {
DSP_MSG_TYPE_DATA = 0,
DSP_MSG_TYPE_CMD = 1,
};
struct aw_dsp_msg_hdr {
int32_t type;
int32_t opcode_id;
int32_t version;
int32_t reserver[3];
};
bool aw87xx_platform_init(void);
int aw_get_vmax_from_dsp(uint32_t *vmax, int32_t channel);
int aw_set_vmax_to_dsp(uint32_t vmax, int32_t channel);
#endif