kernel_samsung_a34x-permissive/sound/soc/mediatek/scp_ultra/mtk-scp-ultra-mem-control.h

30 lines
699 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2018 MediaTek Inc.
*/
#ifndef _MTK_SCP_ULTRA_MEM_CONTROL_H
#define _MTK_SCP_ULTRA_MEM_CONTROL_H
#include <linux/types.h>
#include <sound/soc.h>
struct snd_pcm_substream;
struct snd_soc_dai;
struct mtk_base_afe;
#define ULTRA_BUF_OFFSET (0xC000)
int mtk_scp_ultra_reserved_dram_init(void);
int mtk_scp_ultra_free_mem(struct snd_pcm_substream *substream,
struct mtk_base_afe *afe);
int mtk_scp_ultra_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