-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test_i2s_basic_master and test_basic_master_external_clock #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, assuming they all pass!
@@ -21,7 +21,7 @@ def uncollect_if(bitdepth, num_in, num_out): | |||
if bitdepth == 16 and num_in == 4 and num_out == 4: | |||
return True | |||
|
|||
@pytest.mark.uncollect_if(func=uncollect_if) | |||
#@pytest.mark.uncollect_if(func=uncollect_if) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may wish to consider removing this mark and the uncollect_if function altogether if we no longer need to skip these tests
@@ -16,6 +16,9 @@ set(APP_LINK_OPTIONS | |||
-target=XCORE-AI-EXPLORER | |||
) | |||
|
|||
# Compile main.c which contains the i2s_callback_group_t functions in O3 mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah same comment as last time - would be good to be able to put actual numbers on "how many ticks can I actually use in the callbacks", since it's obviously lower than we thought it was
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to look at the back pressure test next. Hopefully it does that.
Yes! Passing consistently on my Mac. |
https://xmosjira.atlassian.net/browse/AP-403
Changes in this PR:
pytest lib_i2s/test_i2s_basic_master.py
pytest lib_i2s/test_basic_master_external_clock.py
pytest lib_i2s/test_i2s_basic_master.py --nightly
pytest lib_i2s/test_basic_master_external_clock.py --nightly
Note that the mclk frequency is set such that the mclk_bclk_ratio is atleast 2 for the worst case (192KHz). I could not get the test to pass reliably if testing with mclk_bclk_ratio set to 1. Sometimes, the bclk clock block would start with a falling edge instead of a rising edge, causing the LR clk to start before the bclk.
With mclk_bclk_ratio of 2 or more, I couldn't recreate this issue.