Skip to content

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

Closed
LaurentiuM1234 wants to merge 1 commit into
thesofproject:mainfrom
LaurentiuM1234:mclk_issue_fix
Closed

LaurentiuM1234 wants to merge 1 commit into
thesofproject:mainfrom
LaurentiuM1234:mclk_issue_fix

Conversation

@LaurentiuM1234

Copy link
Copy Markdown
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
Copy Markdown
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.

@paulstelian97 paulstelian97 left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

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

@sys-pt1s

sys-pt1s commented Apr 6, 2023

Copy link
Copy Markdown

Can one of the admins verify this patch?

@LaurentiuM1234
LaurentiuM1234 marked this pull request as draft April 7, 2023 08:15
@LaurentiuM1234

Copy link
Copy Markdown
Contributor Author

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

@LaurentiuM1234

Copy link
Copy Markdown
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