Files
android/sound/soc/mediatek/scp_ultra/mtk-base-scp-ultra.h
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

72 lines
1.5 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* mtk-base-dsp.h -- Mediatek ADSP dsp base
*
* Copyright (c) 2018 MediaTek Inc.
* Author: Chipeng <Chipeng.chang@mediatek.com>
*/
#ifndef _MTK_SCP_ULTRA_BASE_H_
#define _MTK_SCP_ULTRA_BASE_H_
#include <sound/soc.h>
struct device;
struct snd_pcm_substream;
struct snd_dma_buffer;
#define MAX_PAYLOAD_SIZE (32)
struct audio_ultra_dram {
unsigned long long phy_addr;
unsigned long long va_addr;
unsigned long long size;
unsigned char *vir_addr;
};
struct mtk_base_scp_ultra_dump {
bool dump_flag;
struct audio_ultra_dram dump_resv_mem;
};
struct mtk_base_scp_ultra_mem {
struct snd_dma_buffer ultra_dl_dma_buf;
struct snd_dma_buffer ultra_ul_dma_buf;
int ultra_ul_memif_id;
int ultra_dl_memif_id;
};
struct mtk_base_scp_ultra {
struct device *dev;
const struct snd_pcm_hardware *mtk_scp_hardware;
const struct snd_soc_component_driver *component_driver;
struct mtk_base_scp_ultra_mem ultra_mem;
struct mtk_base_scp_ultra_dump ultra_dump;
struct audio_ultra_dram ultra_reserve_dram;
unsigned int usnd_state;
unsigned int scp_ultra_dl_memif_id;
unsigned int scp_ultra_ul_memif_id;
};
struct ultra_param_config {
unsigned int rate_in;
unsigned int rate_out;
unsigned int channel_in;
unsigned int channel_out;
unsigned int format_in;
unsigned int format_out;
unsigned int period_in_size;
unsigned int period_out_size;
unsigned int target_out_channel;
};
struct ultra_gain_config {
int mic_gain;
int receiver_gain;
};
#endif