libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
audio.c
Go to the documentation of this file.
1 #include <audio.h>
2 void audio_init(void){};
3 void audio_select_input(int input){};
4 void write_audio_reg(unsigned char u8RegAddr, unsigned char u8Data, int iic_fd){};
5 void config_audio_pll(void){};
6 void config_audio_codec(void){};
7 void select_line_in(void){};
8 void select_mic(void){};
9 void deselect(void){};
10 void audio_bypass(unsigned int audio_mmap_size, unsigned int nsamples,
11  unsigned int volume, int uio_index){};
12 void audio_record(unsigned int audio_mmap_size, unsigned int *BufAddr,
13  unsigned int nsamples, int uio_index){};
14 void audio_play(unsigned int audio_mmap_size, unsigned int *BufAddr,
15  unsigned int nsamples, unsigned int volume, int uio_index){};
16 void audio_repeat_play(unsigned int audio_mmap_size, unsigned int *BufAddr,
17  unsigned int nsamples, unsigned int volume,
18  unsigned int repetitions){};
19 void audio_generate_tone(unsigned int frequency, uint32_t time_ms,
20  unsigned int volume){};
21 
audio_select_input
void audio_select_input(int input)
selects the audio input channel.
Definition: audio.c:77
audio_record
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.
Definition: audio.c:419
write_audio_reg
void write_audio_reg(unsigned char u8RegAddr, unsigned char u8Data, int iic_fd)
Definition: audio.c:90
config_audio_pll
void config_audio_pll(void)
Definition: audio.c:118
config_audio_codec
void config_audio_codec(void)
Definition: audio.c:208
audio_generate_tone
void audio_generate_tone(unsigned int frequency, uint32_t time_ms, unsigned int volume)
Definition: audio.c:608
select_line_in
void select_line_in(void)
Function to select LINE_IN as input.
Definition: audio.c:268
audio_init
void audio_init(void)
Initializes the audio register. Sets the sampling frequency. defines several values such as audio rec...
Definition: audio.c:72
audio_bypass
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.
Definition: audio.c:338
audio_play
void audio_play(unsigned int audio_mmap_size, unsigned int *BufAddr, unsigned int nsamples, unsigned int volume, int uio_index)
Definition: audio.c:468
deselect
void deselect(void)
Function to deselect input, either LINE_IN, or MIC.
Definition: audio.c:320
audio.h
select_mic
void select_mic(void)
Function to select MIC as input.
Definition: audio.c:291
audio_repeat_play
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.
Definition: audio.c:540