-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Dev add i2s stm32h5 #72990
Dev add i2s stm32h5 #72990
Conversation
7c63853
to
56f9dff
Compare
56f9dff
to
58960b0
Compare
58960b0
to
93b8e9d
Compare
93b8e9d
to
9ee8354
Compare
Addition of I2S nodes Signed-off-by: Franck Thebault <franck.thebault@st.com> Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Test on STM32H573i disco board , only the Tx transfer is ok. Signed-off-by: Franck Thebault <franck.thebault@st.com> Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
655c2aa
to
efa1a06
Compare
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.
Mostly LGTM.
A few points to review:
efa1a06
to
e708f4b
Compare
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.
We're getting there! A few points to iron out:
e708f4b
to
4430982
Compare
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.
Tiny non-blockers, otherwise LGTM.
Nit: stream->last_block
seems to have become a dead variable, could used to be removed if so.
Add flag STM32_DMA_16BITS as a combination of STM32_DMA_PERIPH_16BITS and STM32_DMA_MEM_16BITS Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
In i2s_stm32_isr, remove the errors from SR register i2s_stm32_configure, enable the rx path for H7 I2S compatible IP Signed-off-by: Franck Thebault <franck.thebault@st.com> Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
In dma_stm32_reload, the size is the number of bytes and not number of elements. Signed-off-by: Franck Thebault <franck.thebault@st.com> Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Add the function ll_func_i2s_dma_busy to be able to check the transmission of all the DMA TX packet. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
4430982
to
9933300
Compare
Correction of the handling of Tx audio samples via DMA Signed-off-by: Franck Thebault <franck.thebault@st.com> Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Add a k_busy_wait to the function tx_stream_disable to be able to complete the drain of the TX queue before disabling. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
9933300
to
1e506b4
Compare
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.
LGTM.
Add the STM32H5 family support for the test I2s_speed.
The driver is updated to handle correctly the commands TRIGGER_DRAIN.