Moved to lib_spdif for S/PDIF Rx

This commit is contained in:
xross
2018-03-29 16:21:37 +01:00
parent d1681dc37f
commit dc62349472
2 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ lib_xua Change Log
to XUA_AudioHub()
* CHANGE: NO_USB define renamed to XUA_USB_EN
* CHANGE: XUA_AudioHub() no longer pars S/PDIF transmitter task
* CHANGE: Moved to using lib_spdif (from module_spdif_tx)
* CHANGE: Moved to lib_spdif (from module_spdif_tx & module_spdif_rx)
0.1.2
-----

View File

@@ -7,8 +7,8 @@
#include "xua.h"
#include "xua_commands.h"
#if (SPDIF_RX == 1)
#include "SpdifReceive.h"
#if (SPDIF_RX)
#include "spdif.h"
#endif
#define LOCAL_CLOCK_INCREMENT 166667
@@ -506,14 +506,14 @@ void clockGen (streaming chanend ?c_spdif_rx, chanend ?c_adat_rx, out port p, ch
switch(tmp2)
{
/* LEFT */
case FRAME_X:
case FRAME_Z:
case SPDIF_FRAME_X:
case SPDIF_FRAME_Z:
spdifLeft = tmp << 4;
break;
/* RIGHT */
case FRAME_Y:
case SPDIF_FRAME_Y:
/* Only store sample if not in overflow and stream is reasonably valid */
if(!spdifOverflow && clockValid[CLOCK_SPDIF_INDEX])