4void write_audio_reg(
unsigned char u8RegAddr,
unsigned char u8Data,
int iic_fd){};
10void audio_bypass(
unsigned int audio_mmap_size,
unsigned int nsamples,
11 unsigned int volume,
int uio_index){};
12void audio_record(
unsigned int audio_mmap_size,
unsigned int *BufAddr,
13 unsigned int nsamples,
int uio_index){};
14void audio_play(
unsigned int audio_mmap_size,
unsigned int *BufAddr,
15 unsigned int nsamples,
unsigned int volume,
int uio_index){};
17 unsigned int nsamples,
unsigned int volume,
18 unsigned int repetitions){};
20 unsigned int volume){};
void audio_generate_tone(unsigned int frequency, uint32_t time_ms, unsigned int volume)
void deselect(void)
Function to deselect input, either LINE_IN, or MIC.
void audio_record(unsigned int audio_mmap_size, unsigned int *BufAddr, unsigned int nsamples, int uio_index)
Function to support audio recording without the audio codec controller.
void select_mic(void)
Function to select MIC as input.
void write_audio_reg(unsigned char u8RegAddr, unsigned char u8Data, int iic_fd)
void audio_repeat_play(unsigned int audio_mmap_size, unsigned int *BufAddr, unsigned int nsamples, unsigned int volume, unsigned int repetitions)
Function to play one audio fragment for multiple repititions.
void config_audio_codec(void)
void audio_play(unsigned int audio_mmap_size, unsigned int *BufAddr, unsigned int nsamples, unsigned int volume, int uio_index)
void audio_bypass(unsigned int audio_mmap_size, unsigned int nsamples, unsigned int volume, int uio_index)
Record and play the audio without storing in DRAM.
void audio_select_input(int input)
selects the audio input channel.
void audio_init(void)
Initializes the audio register. Sets the sampling frequency. defines several values such as audio rec...
void config_audio_pll(void)
void select_line_in(void)
Function to select LINE_IN as input.