Move check for XUA_USB_EN after include of xua.h

This commit is contained in:
Ross Owen
2023-05-17 13:48:36 +01:00
parent 05dcb8f3ab
commit e9586b59d3
2 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ static inline void DoDsdDop(int &everyOther, unsigned samplesOut[], unsigned &ds
/* When DSD is enabled and streaming is standard PCM, this function checks for a series of DoP markers in the upper byte.
If found it will exit deliver() with the command to restart in DoP mode.
When in DoP mode, this function will check for a single absence of the DoP marker and exit deliver() with the command
to restart in I2S mode. */
to restart in I2S/PCM mode. */
static inline int DoDsdDopCheck(unsigned &dsdMode, int &dsdCount, unsigned curSamFreq, unsigned samplesOut[], unsigned &dsdMarker)
{
/* Check for DSD - note we only move into DoP mode if valid DoP Freq */

View File

@@ -1,10 +1,12 @@
// Copyright 2013-2021 XMOS LIMITED.
// Copyright 2013-2023 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#if XUA_USB_EN
#include "xua.h"
#if XUA_USB_EN
#include "hostactive.h"
#include "audiostream.h"
/* Implementations over-riding empty versions in lib_xud/sec/core/XUD_User.c */
void XUD_UserSuspend(void) __attribute__ ((weak));
void XUD_UserSuspend(void)
{