xmos / lib_spdif

S/PDIF Library
Other
10 stars 16 forks source link

Preamble counting to handle change of sample rate on incoming stream #64

Closed danielpieczko closed 9 months ago

danielpieczko commented 9 months ago

Authored by Joe.

Manually tested with the spdif_to_analogue example app and can no longer reproduce any situations where the receiver fails to select the correct sample rate after a change of sample rate on the incoming stream.

Also I've run lots of repeats of the USB Audio spdif_input test on the xcore-200 MCAB and can't reproduce the "zero channels" failures (the assumption being that the Mac host was reporting the device as having no channels because the clock wasn't valid - because the S/PDIF receiver had locked onto the wrong sample rate).