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

drivers: imx: sai: Fix frame size computation #8200

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Sep 14, 2023

When I2S-like interface is enabled we must have
2 words in a frame because this is how I2S works (it has 2 channels)!

So, even if the user plays a mono file we must configure 2 words per slot and the second slot will be masked so the users will get silence on the second channel.

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@iuliana-prodan pls review

src/drivers/imx/sai.c Outdated Show resolved Hide resolved
When I2S-like interface is enabled we must have
2 words in a frame because this is how I2S works (it has 2 channels)!

So, even if the user plays a mono file we must configure 2 words per
slot and the second slot will be masked so the users will get silence
on the second channel.

Signed-off-by: Daniel Baluta <[email protected]>
@dbaluta
Copy link
Collaborator Author

dbaluta commented Sep 15, 2023

@btian1 @TangleZ @iuliana-prodan addressed all your comments.

@TangleZ TangleZ self-requested a review September 15, 2023 11:13
@dbaluta
Copy link
Collaborator Author

dbaluta commented Sep 18, 2023

SOFCI TEST

@dbaluta dbaluta merged commit 57cb19e into thesofproject:main Sep 18, 2023
39 of 41 checks passed
@dbaluta dbaluta deleted the fix_slot branch September 18, 2023 09:01
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.

5 participants