1 /* 2 * Driver for USB Audio Device Class devices. 3 * Copyright (c) 2009-13 S.Zharski <imker@gmx.li> 4 * Distributed under the terms of the MIT license. 5 * 6 */ 7 #ifndef _USB_AUDIO_SETTINGS_H_ 8 #define _USB_AUDIO_SETTINGS_H_ 9 10 #include <SupportDefs.h> 11 12 enum { 13 ERR = 0x00000001, 14 INF = 0x00000002, 15 MIX = 0x00000004, 16 API = 0x00000008, 17 DTA = 0x00000010, 18 ISO = 0x00000020, 19 UAC = 0x00000040 20 }; 21 22 void load_settings(); 23 void release_settings(); 24 25 void usb_audio_trace(uint32 bits, const char* func, const char* fmt, ...); 26 27 #define TRACE_USB_AUDIO 28 29 #ifdef TRACE 30 #undef TRACE 31 #endif 32 33 #ifdef TRACE_USB_AUDIO 34 #define TRACE(__mask__, x...) usb_audio_trace(__mask__, __func__, x) 35 #else 36 #define TRACE(__mask__, x...) // nothing 37 #endif 38 39 #endif // _USB_AUDIO_SETTINGS_H_ 40 41