#include <linux/io.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <sound/soc.h>
#include "mtk-afe-platform-driver.h"
#include <sound/pcm_params.h>
#include "mtk-afe-fe-dai.h"
#include "mtk-base-afe.h"
#define AFE_BASE_END_OFFSET …
static int mtk_regmap_update_bits(struct regmap *map, int reg,
unsigned int mask,
unsigned int val, int shift)
{ … }
static int mtk_regmap_write(struct regmap *map, int reg, unsigned int val)
{ … }
int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
EXPORT_SYMBOL_GPL(…);
const struct snd_soc_dai_ops mtk_afe_fe_ops = …;
EXPORT_SYMBOL_GPL(…);
int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_suspend(struct snd_soc_component *component)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_afe_resume(struct snd_soc_component *component)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_enable(struct mtk_base_afe *afe, int id)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_disable(struct mtk_base_afe *afe, int id)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_addr(struct mtk_base_afe *afe, int id,
unsigned char *dma_area,
dma_addr_t dma_addr,
size_t dma_bytes)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_channel(struct mtk_base_afe *afe,
int id, unsigned int channel)
{ … }
EXPORT_SYMBOL_GPL(…);
static int mtk_memif_set_rate_fs(struct mtk_base_afe *afe,
int id, int fs)
{ … }
int mtk_memif_set_rate(struct mtk_base_afe *afe,
int id, unsigned int rate)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
int id, unsigned int rate)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_format(struct mtk_base_afe *afe,
int id, snd_pcm_format_t format)
{ … }
EXPORT_SYMBOL_GPL(…);
int mtk_memif_set_pbuf_size(struct mtk_base_afe *afe,
int id, int pbuf_size)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;