
USB Audio Design Guide 54/61
Define Description Default
MIXER Define to enable the MIXER. not defined
MIN_VOLUME
The minimum volume setting above -inf.
This is a signed 8.8 fixed point number that
must be strictly greater than -128 (0x8000).
0x8100
MAX_VOLUME
The maximum volume setting for the mixer
in db. This is a signed 8.8 fixed point num-
ber.
0
VOLUME_RES
The resolution of the volume control in db
as a 8.8 fixed point number.
0x100
MIN_MIXER_VOLUME
The minimum volume setting for the mixer
unit above -inf. This is a signed 8.8 fixed
point number that must be strictly greater
than -128 (0x8000).
0x8080
MAX_MIXER_VOLUME
The maximum volume setting for the mixer.
This is a signed 8.8 fixed point number.
0x0600
VOLUME_RES_MIXER
The resolution of the volume control in db
as a 8.8 fixed point number.
0x080
5.1.2 USB Device Configuration Options
Define Description Default
VENDOR_ID Vendor ID (0x20B1)
PID_AUDIO_2 Product ID (Audio Class 2) N/A
PID_AUDIO_1 Product ID (Audio Class 1) N/A
BCD_DEVICE Device release number in BCD form N/A
VENDOR_STR String identifying vendor XMOS
SERIAL_STR String identifying serial number “0000”
5.2 Required User Function Definitions
The following functions need to be defined by an application using the USB audio framework.
5.2.1 Codec Configuration Functions
void CodecInit(chanend ?c_codec)
This function is called when the audio core starts after the device boots up and
should initialize the CODEC.
This function has the following parameters:
c_codec
An optional chanend that was original passed into audio() that can
be used to communicate with other cores.
REV 6.1
Kommentare zu diesen Handbüchern