forked from PAWPAW-Mirror/lib_xua
Include xua.h to pick up the NUM_USB_CHAN_IN and NUM_USB_CHAN_OUT pre-processor symbols.
They're used further down in the file. If not present through an #include of xua_h outside of and before the #include of descriptor_defs.h or through definition in the Make file, the enumeration of interface numbers silently mis-assigns values.
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
#ifndef __DESCRIPTOR_DEFS_H__
|
#ifndef __DESCRIPTOR_DEFS_H__
|
||||||
#define __DESCRIPTOR_DEFS_H__
|
#define __DESCRIPTOR_DEFS_H__
|
||||||
|
|
||||||
|
/*
|
||||||
|
Include xua.h to pick up the #defines of NUM_USB_CHAN_IN and NUM_USB_CHAN_OUT.
|
||||||
|
*/
|
||||||
|
#include "xua.h"
|
||||||
|
|
||||||
#if (NUM_USB_CHAN_IN > 0) && (NUM_USB_CHAN_OUT > 0)
|
#if (NUM_USB_CHAN_IN > 0) && (NUM_USB_CHAN_OUT > 0)
|
||||||
#define AUDIO_INTERFACE_COUNT 3
|
#define AUDIO_INTERFACE_COUNT 3
|
||||||
#elif (NUM_USB_CHAN_IN > 0) || (NUM_USB_CHAN_OUT > 0)
|
#elif (NUM_USB_CHAN_IN > 0) || (NUM_USB_CHAN_OUT > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user