Merge commit 'ad91d19f94758702402dc0313273385d4aa432d5' into fetaure/multi_interface

This commit is contained in:
Ed
2024-05-09 15:02:29 +01:00
2 changed files with 10 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ UNRELEASED
----------
* FIXED: Device fails to enumerate when ADAT and S/PDIF transmit are enabled
* FIXED: Update software PLL at the correct rate for ADAT SMUX
* CHANGED: Enable only the minimum number of ADAT input formats based for the
supported sample frequencies
* FIXED: Incorrect internal input EP count for input only devices

View File

@@ -723,7 +723,14 @@ void clockGen ( streaming chanend ?c_spdif_rx,
}
}
}
if(adatChannel == 4 || adatChannel == 8)
/* An edge needs to be recorded/toggled in the following cases:
* smux = 0: adatChannel = 4, 8
* smux = 1: adatChannel = 2, 4, 6, 8
* smux = 2: adatChannel = 1, 2, 3, 4, 5, 6, 7, 8
* This is simplified to a shift-and-mask in the if-condition below.
*/
if ((adatChannel != 0) && ((adatChannel << smux) & 3) == 0)
{
adatCounters.samples += 1;
@@ -764,7 +771,7 @@ void clockGen ( streaming chanend ?c_spdif_rx,
adatChannel = 0;
}
break;
#endif
#endif // XUA_ADAT_RX_EN
#if (XUA_SPDIF_RX_EN || XUA_ADAT_RX_EN)
/* AudioHub requests data */