Files
android/sound/soc/mediatek/scp_spk/mtk-scp-spk-mem-control.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

33 lines
841 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2018 MediaTek Inc.
*/
#ifndef _MTK_SCP_SPK_MEM_CONTROL_H
#define _MTK_SCP_SPK_MEM_CONTROL_H
#include <linux/types.h>
#include <sound/soc.h>
struct snd_pcm_substream;
struct snd_soc_dai;
struct mtk_base_afe;
#define SPK_BUF_OFFSET (0xC000)
int mtk_scp_spk_reserved_dram_init(void);
int mtk_scp_spk_allocate_tcm_iv_buf(void);
void mtk_scp_spk_allocate_platform_buf(unsigned int size,
dma_addr_t *phys_addr,
unsigned char **virt_addr);
int mtk_scp_spk_free_mem(struct snd_pcm_substream *substream,
struct mtk_base_afe *afe);
int mtk_scp_spk_allocate_mem(struct snd_pcm_substream *substream,
dma_addr_t *phys_addr, unsigned char **virt_addr,
unsigned int size,
snd_pcm_format_t format,
struct mtk_base_afe *afe);
#endif