Skip to content

Adding ability to use clock block for clock div#83

Open
XMOS-JoeG wants to merge 1 commit intoxmos:developfrom
XMOS-JoeG:feature-clkblk-div
Open

Adding ability to use clock block for clock div#83
XMOS-JoeG wants to merge 1 commit intoxmos:developfrom
XMOS-JoeG:feature-clkblk-div

Conversation

@XMOS-JoeG
Copy link
Contributor

This allows using higher MCLK frequencies for spdif tx.

Addresses issue #56

@XMOS-JoeG XMOS-JoeG requested a review from xross as a code owner November 7, 2025 15:25
@shuchitak
Copy link
Contributor

I've run a sw_usb_audio nightly with this branch of lib_spdif and dont see any regression.
http://srv-bri-jcim0:8080/job/XMOS/job/sw_usb_audio/view/change-requests/job/PR-346/2/

on tile[1]: in port p_mclk_in = XS1_PORT_1D;
on tile[1]: clock clk_audio = XS1_CLKBLK_1;

#define USE_DEDICATED_CLKBLK 0 // This allows larger ratios of MCLK_FREQ/SAMPLE_FREQ (>768) but requires a dedicated clock block.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should move this to the header with prepended with SPDIF_ (inside an ifndef)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants