libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
audio.c
Go to the documentation of this file.
1#include <audio.h>
2void audio_init(void){};
3void audio_select_input(int input){};
4void write_audio_reg(unsigned char u8RegAddr, unsigned char u8Data, int iic_fd){};
5void config_audio_pll(void){};
6void config_audio_codec(void){};
7void select_line_in(void){};
8void select_mic(void){};
9void deselect(void){};
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){};
16void audio_repeat_play(unsigned int audio_mmap_size, unsigned int *BufAddr,
17 unsigned int nsamples, unsigned int volume,
18 unsigned int repetitions){};
19void audio_generate_tone(unsigned int frequency, uint32_t time_ms,
20 unsigned int volume){};
21
void audio_generate_tone(unsigned int frequency, uint32_t time_ms, unsigned int volume)
Definition audio.c:570
void deselect(void)
Function to deselect input, either LINE_IN, or MIC.
Definition audio.c:286
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:381
void select_mic(void)
Function to select MIC as input.
Definition audio.c:257
void write_audio_reg(unsigned char u8RegAddr, unsigned char u8Data, int iic_fd)
Definition audio.c:90
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:502
void config_audio_codec(void)
Definition audio.c:174
void audio_play(unsigned int audio_mmap_size, unsigned int *BufAddr, unsigned int nsamples, unsigned int volume, int uio_index)
Definition audio.c:430
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:304
void audio_select_input(int input)
selects the audio input channel.
Definition audio.c:77
void audio_init(void)
Initializes the audio register. Sets the sampling frequency. defines several values such as audio rec...
Definition audio.c:72
void config_audio_pll(void)
Definition audio.c:102
void select_line_in(void)
Function to select LINE_IN as input.
Definition audio.c:234