-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
I2s loopback config #83718
I2s loopback config #83718
Conversation
9c76380
to
e92a8c4
Compare
@Raymond0225 add an update to this PR the west.yml to point to the needed HAL PR. |
To my understanding, we need merge the HAL PR firstly then update the full SHA in west.yml, right? |
fa92417
to
a005850
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Resolve conflict with last main source code, rebase to latest code of upstream. |
a005850
to
2cd7196
Compare
baa6fb3
to
793c180
Compare
drivers/i2s/i2s_mcux_sai.c
Outdated
@@ -308,11 +308,23 @@ static void i2s_dma_tx_callback(const struct device *dma_dev, void *arg, uint32_ | |||
/* TX queue has drained */ | |||
strm->state = I2S_STATE_READY; | |||
LOG_DBG("TX stream has stopped"); | |||
goto disabled_exit_no_drop; | |||
} else { |
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 think the else might not be necessary, should we remove it to reduce nesting since you're adding a new conditional within this block?
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.
yes, we can remove it.
793c180
to
872df4f
Compare
tests/drivers/i2s/i2s_speed/boards/mimxrt1170_evk_mimxrt1176_cm7.overlay
Show resolved
Hide resolved
tests/drivers/i2s/i2s_speed/boards/mimxrt1170_evk_mimxrt1176_cm7_B.overlay
Show resolved
Hide resolved
4b81cb6
to
fedd352
Compare
Use TX and RX blocks on SAI for i2s speed test, by this way we can avoid HW reworking. Update Readme file and DMA channel configuration in overlay file to avoid DMA channel conflict with other peripherals like UART. Signed-off-by: Raymond Lei <[email protected]>
In previous implementions, when there is no buffers in TX queue in a TX callback context, TX will be stopped immediately. It is not correct because there may still TX blocks in DMA TX transfer queue. TX should only be stopped when DMA queue is empty and no more in I2S TX queue. Another modification is to set correct TX water FIFO level. Signed-off-by: Raymond Lei <[email protected]>
fedd352
to
4da6bf8
Compare
@anangl , can you help review. |
require this HAL patch to pass the test:
zephyrproject-rtos/hal_nxp#490