Sound Open Firmware
Loading...
Searching...
No Matches
afe-drv.h File Reference

Go to the source code of this file.

Data Structures

struct  mtk_base_memif_data
struct  mtk_base_irq_data
struct  mtk_base_afe_memif
struct  mtk_base_afe_dai
struct  mtk_base_afe_irq
struct  mtk_base_afe
struct  mtk_base_afe_platform

Functions

struct mtk_base_afe * afe_get (void)
int afe_probe (struct mtk_base_afe *afe)
void afe_remove (struct mtk_base_afe *afe)
int afe_dai_get_config (struct mtk_base_afe *afe, int id, unsigned int *channel, unsigned int *rate, unsigned int *format)
int afe_dai_set_config (struct mtk_base_afe *afe, int id, unsigned int channel, unsigned int rate, unsigned int format)
int afe_memif_set_params (struct mtk_base_afe *afe, int id, unsigned int channel, unsigned int rate, unsigned int format)
int afe_memif_set_addr (struct mtk_base_afe *afe, int id, unsigned int dma_addr, unsigned int dma_bytes)
int afe_memif_set_enable (struct mtk_base_afe *afe, int id, int enable)
unsigned int afe_memif_get_cur_position (struct mtk_base_afe *afe, int id)
int afe_memif_get_direction (struct mtk_base_afe *afe, int id)
int afe_irq_get_status (struct mtk_base_afe *afe, int id)
int afe_irq_clear (struct mtk_base_afe *afe, int id)
int afe_irq_config (struct mtk_base_afe *afe, int id, unsigned int rate, unsigned int period)
int afe_irq_enable (struct mtk_base_afe *afe, int id)
int afe_irq_disable (struct mtk_base_afe *afe, int id)

Variables

struct mtk_base_afe_platform mtk_afe_platform

Function Documentation

◆ afe_dai_get_config()

int afe_dai_get_config ( struct mtk_base_afe * afe,
int id,
unsigned int * channel,
unsigned int * rate,
unsigned int * format )

◆ afe_dai_set_config()

int afe_dai_set_config ( struct mtk_base_afe * afe,
int id,
unsigned int channel,
unsigned int rate,
unsigned int format )

◆ afe_get()

struct mtk_base_afe * afe_get ( void )

◆ afe_irq_clear()

int afe_irq_clear ( struct mtk_base_afe * afe,
int id )

◆ afe_irq_config()

int afe_irq_config ( struct mtk_base_afe * afe,
int id,
unsigned int rate,
unsigned int period )

◆ afe_irq_disable()

int afe_irq_disable ( struct mtk_base_afe * afe,
int id )

◆ afe_irq_enable()

int afe_irq_enable ( struct mtk_base_afe * afe,
int id )

◆ afe_irq_get_status()

int afe_irq_get_status ( struct mtk_base_afe * afe,
int id )

◆ afe_memif_get_cur_position()

unsigned int afe_memif_get_cur_position ( struct mtk_base_afe * afe,
int id )

◆ afe_memif_get_direction()

int afe_memif_get_direction ( struct mtk_base_afe * afe,
int id )

◆ afe_memif_set_addr()

int afe_memif_set_addr ( struct mtk_base_afe * afe,
int id,
unsigned int dma_addr,
unsigned int dma_bytes )

◆ afe_memif_set_enable()

int afe_memif_set_enable ( struct mtk_base_afe * afe,
int id,
int enable )

◆ afe_memif_set_params()

int afe_memif_set_params ( struct mtk_base_afe * afe,
int id,
unsigned int channel,
unsigned int rate,
unsigned int format )

◆ afe_probe()

int afe_probe ( struct mtk_base_afe * afe)

◆ afe_remove()

void afe_remove ( struct mtk_base_afe * afe)

Variable Documentation

◆ mtk_afe_platform

struct mtk_base_afe_platform mtk_afe_platform
extern