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() to XUA_AudioHub()
* CHANGE: NO_USB define renamed to XUA_USB_EN * CHANGE: NO_USB define renamed to XUA_USB_EN
* CHANGE: XUA_AudioHub() no longer pars S/PDIF transmitter task * 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 0.1.2
----- -----

View File

@@ -7,8 +7,8 @@
#include "xua.h" #include "xua.h"
#include "xua_commands.h" #include "xua_commands.h"
#if (SPDIF_RX == 1) #if (SPDIF_RX)
#include "SpdifReceive.h" #include "spdif.h"
#endif #endif
#define LOCAL_CLOCK_INCREMENT 166667 #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) switch(tmp2)
{ {
/* LEFT */ /* LEFT */
case FRAME_X: case SPDIF_FRAME_X:
case FRAME_Z: case SPDIF_FRAME_Z:
spdifLeft = tmp << 4; spdifLeft = tmp << 4;
break; break;
/* RIGHT */ /* RIGHT */
case FRAME_Y: case SPDIF_FRAME_Y:
/* Only store sample if not in overflow and stream is reasonably valid */ /* Only store sample if not in overflow and stream is reasonably valid */
if(!spdifOverflow && clockValid[CLOCK_SPDIF_INDEX]) if(!spdifOverflow && clockValid[CLOCK_SPDIF_INDEX])