Remove unnecessary runtime initialization.
This commit is contained in:
@@ -1404,10 +1404,13 @@ unsigned char cfgDesc_Audio2[] =
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define STR_USENG 0x0409
|
||||||
|
|
||||||
static unsigned char strDescs[][40] =
|
static unsigned char strDescs[][40] =
|
||||||
{
|
{
|
||||||
"Langids", // 0 LangIDs place holder
|
{ STR_USENG & 0xff, STR_USENG >> 8, '\0'}, // 0 LangID
|
||||||
APPEND_VENDOR_STR(), // 1 iManufacturer (at MANUFACTURER_STRING_INDEX)
|
APPEND_VENDOR_STR(), // 1 iManufacturer (at MANUFACTURER_STRING_INDEX)
|
||||||
|
|
||||||
"",//SERIAL_STR, // 2 iSerialNumber (at SERIAL_STR_INDEX)
|
"",//SERIAL_STR, // 2 iSerialNumber (at SERIAL_STR_INDEX)
|
||||||
|
|
||||||
|
|||||||
@@ -100,24 +100,11 @@ unsigned g_curUsbSpeed = 0;
|
|||||||
extern unsigned g_iap_reset;
|
extern unsigned g_iap_reset;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define STR_USENG 0x0409
|
|
||||||
|
|
||||||
#define DESC_STR_LANGIDS \
|
|
||||||
{ \
|
|
||||||
STR_USENG & 0xff, /* 2 wLangID[0] */ \
|
|
||||||
STR_USENG>>8, /* 3 wLangID[0] */ \
|
|
||||||
'\0' \
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef NATIVE_DSD
|
#ifdef NATIVE_DSD
|
||||||
/* We remember if we are in DSD mode to avoid Configuring the DAC too often - thus avoiding pops and clicks */
|
/* We remember if we are in DSD mode to avoid Configuring the DAC too often - thus avoiding pops and clicks */
|
||||||
unsigned g_dsdMode = 0;
|
unsigned g_dsdMode = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* String descriptors */
|
|
||||||
static unsigned char strDesc_langIDs[] = DESC_STR_LANGIDS;
|
|
||||||
|
|
||||||
void VendorAudioRequestsInit(chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl);
|
void VendorAudioRequestsInit(chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl);
|
||||||
|
|
||||||
/* Endpoint 0 function. Handles all requests to the device */
|
/* Endpoint 0 function. Handles all requests to the device */
|
||||||
@@ -193,8 +180,6 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
safememcpy(strDescs[0], strDesc_langIDs, sizeof(strDesc_langIDs));
|
|
||||||
|
|
||||||
/* Build up channel string table - By default all channels are marked as analogue
|
/* Build up channel string table - By default all channels are marked as analogue
|
||||||
* TODO We really want to do this an build time... */
|
* TODO We really want to do this an build time... */
|
||||||
#if defined(SPDIF_RX) && (SPDIF_RX_INDEX != 0)
|
#if defined(SPDIF_RX) && (SPDIF_RX_INDEX != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user