Move check for XUA_USB_EN after include of xua.h (#325)

This commit is contained in:
Ross Owen
2023-05-17 14:55:37 +01:00
committed by GitHub
parent 6d168b3209
commit 9cf931898e
3 changed files with 8 additions and 5 deletions

View File

@@ -5,7 +5,8 @@ UNRELEASED
----------
* FIXED: Memory corruption during initialisation of mixer weights
* FIXED: Exception when entering DSD mode
* FIXED: UserHostActive() not being called as expected (#326)
* FIXED; Exception when entering DSD mode
3.4.0
-----

View File

@@ -1,4 +1,4 @@
// Copyright 2018-2022 XMOS LIMITED.
// Copyright 2018-2023 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#if (DSD_CHANS_DAC != 0)
@@ -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)
{