
USB Audio Design Guide 59/61
c_clk_int Optional chanend connected to the clockGen() thread if present
void mixer(chanend c_to_host, chanend c_to_audio, chanend c_mix_ctl)
Digital sample mixer.
This thread mixes audio streams between the decouple() thread and the audio()
thread.
This function has the following parameters:
c_to_host
a chanend connected to the decouple() thread for receiving/trans-
mitting samples
c_to_audio
a chanend connected to the audio() thread for receiving/transmitting
samples
c_mix_ctl
a chanend connected to the Endpoint0() thread for receiving control
commands
void audio(chanend c_in, chanend ?c_dig, chanend ?c_config, chanend ?c_adc)
The audio driver thread.
This function drives I2S ports and handles samples to/from other digital I/O
threads.
This function has the following parameters:
c_in
Audio sample channel connected to the mixer() thread or the de-
couple() thread
c_dig
channel connected to the clockGen() thread for receiving/transmit-
ting samples
c_config
An optional channel that will be passed on to the CODEC configura-
tion functions.
void clockGen(streaming chanend c_spdif_rx,
chanend c_adat_rx,
out port p,
chanend c_audio,
chanend c_clk_ctl,
chanend c_clk_int)
Clock generation and digital audio I/O handling.
This function has the following parameters:
c_spdif_rx channel connected to S/PDIF receive thread
c_adat_rx channel connect to ADAT receive thread
p port to output clock signal to drive external frequency synthesizer
REV 6.1
Comentários a estes Manuais