Skip to content
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

[DNM]: drivers: imx: Move SAI MCLK enablement to sai_config() #7410

Closed

Conversation

LaurentiuM1234
Copy link
Contributor

Due to the fact that MCLK is enabled after I2C's SCLK signal, the WM8962 codec seems to reach a wrong state, leading to "DC servo timeout" issue on first playback. This was observed on i.MX93 and i.MX8MP with WM8962. This commit attempts to fix this by simply moving the MCLK enablement to sai_config().

Due to the fact that MCLK signal comes after I2C's SCLK signal
with an introlerable delay, the WM8962 codec seems to reach a
bad state, leading to "DC servo timeout" issue on first playback.
This was observed on i.MX93 and i.MX8MP with WM8962.
This commit attempts to fix this by simply moving the MCLK
enablement to sai_config().

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
@LaurentiuM1234
Copy link
Contributor Author

Made commit description and comment a bit more clearer.

VERY IMPORTANT: this patch was only tested on i.MX93 with simple playback, simple capture and playback with PAUSE/RESUME.

Copy link
Collaborator

@paulstelian97 paulstelian97 left a comment

Choose a reason for hiding this comment

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

The change looks good. Once it's tested on 8MP with WM8962 as well I'd say it's good to merge.

@LaurentiuM1234 LaurentiuM1234 changed the title drivers: imx: Move SAI MCLK enablement to sai_config() [DNM]: drivers: imx: Move SAI MCLK enablement to sai_config() Apr 6, 2023
@LaurentiuM1234
Copy link
Contributor Author

Marked as [DNM] until it can also be tested on 8MP.

@sys-pt1s
Copy link

sys-pt1s commented Apr 6, 2023

Can one of the admins verify this patch?

@LaurentiuM1234 LaurentiuM1234 marked this pull request as draft April 7, 2023 08:15
@LaurentiuM1234
Copy link
Contributor Author

Marked this as a draft because it doesn't solve the issue on 8MP with WM8962.

@LaurentiuM1234
Copy link
Contributor Author

Will close this and let @iuliana-prodan handle it as this seems to be more problematic for 8MP with WM8962.

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.

4 participants