forked from PAWPAW-Mirror/lib_xua
Move check for XUA_USB_EN after include of xua.h
This commit is contained in:
@@ -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.
|
/* 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.
|
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
|
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)
|
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 */
|
/* Check for DSD - note we only move into DoP mode if valid DoP Freq */
|
||||||
|
|||||||
@@ -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.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
#if XUA_USB_EN
|
|
||||||
#include "xua.h"
|
#include "xua.h"
|
||||||
|
#if XUA_USB_EN
|
||||||
#include "hostactive.h"
|
#include "hostactive.h"
|
||||||
#include "audiostream.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) __attribute__ ((weak));
|
||||||
void XUD_UserSuspend(void)
|
void XUD_UserSuspend(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user