forked from PAWPAW-Mirror/lib_xua
Removed uses of XUD_Error
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
#include "usbaudio20.h"
|
#include "usbaudio20.h"
|
||||||
#include "dbcalc.h"
|
#include "dbcalc.h"
|
||||||
#include "devicedefines.h"
|
#include "devicedefines.h"
|
||||||
#include "common.h"
|
|
||||||
#include "clockcmds.h"
|
#include "clockcmds.h"
|
||||||
#include "xc_ptr.h"
|
#include "xc_ptr.h"
|
||||||
#ifdef MIXER
|
#ifdef MIXER
|
||||||
@@ -246,8 +245,8 @@ void updateVol(int unitID, int channel, chanend ?c_mix_ctl)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
/* Don't hit */
|
/* Don't hit - We hope */
|
||||||
XUD_Error_hex("Vol: No such unit: ", unitID);
|
//"Vol: No such unit: unitID;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -258,7 +257,7 @@ void updateVol(int unitID, int channel, chanend ?c_mix_ctl)
|
|||||||
* <0 for device reset suspend
|
* <0 for device reset suspend
|
||||||
* else 1
|
* else 1
|
||||||
*/
|
*/
|
||||||
int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, SetupPacket &sp, chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl
|
int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp, chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned char buffer[128];
|
unsigned char buffer[128];
|
||||||
@@ -916,9 +915,9 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, SetupPacket &sp, chanend
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//default:
|
default:
|
||||||
// XUD_Error_hex("Unknown Control Selector in Clock Source Range Request: ", sp.wValue);
|
//Unknown Control Selector in Clock Source Range Request
|
||||||
// break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -942,9 +941,9 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, SetupPacket &sp, chanend
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//default:
|
default:
|
||||||
//XUD_Error_hex("Unknown control selector for FU: ", sp.wValue);
|
//Unknown control selector for FU: ", sp.wValue);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -964,9 +963,9 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, SetupPacket &sp, chanend
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//default:
|
default:
|
||||||
//XUD_Error_hex("Unknown Unit ID in Range Request selector for FU: ", sp.wIndex >> 8);
|
//XUD_Error_hex("Unknown Unit ID in Range Request selector for FU: ", sp.wIndex >> 8);
|
||||||
//break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1085,7 +1084,7 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, SetupPacket &sp, chanend
|
|||||||
|
|
||||||
#if defined (AUDIO_CLASS_FALLBACK) || (AUDIO_CLASS==1)
|
#if defined (AUDIO_CLASS_FALLBACK) || (AUDIO_CLASS==1)
|
||||||
/* Handles the Audio Class 1.0 specific requests */
|
/* Handles the Audio Class 1.0 specific requests */
|
||||||
int AudioClassRequests_1(XUD_ep c_ep0_out, XUD_ep c_ep0_in, SetupPacket &sp, chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl
|
int AudioClassRequests_1(XUD_ep c_ep0_out, XUD_ep c_ep0_in, USB_SetupPacket_t &sp, chanend c_audioControl, chanend ?c_mix_ctl, chanend ?c_clk_ctl
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned char buffer[1024];
|
unsigned char buffer[1024];
|
||||||
|
|||||||
Reference in New Issue
Block a user