Skip to content

Fix the IQaudIO handling of 16-bit samples #6215

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

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Jun 10, 2024

Between rpi-6.1.y and rpi-6.6.y the DA7213 codec driver picked up a patch selecting a BCLK ratio of 32 for 16-bit audio. This breaks the CPU DAI if it is expecting a BCLK ratio of 64. Instead of baking the knowledge of the codec's foibles into the soundcard driver, give the codec a set_bclk_ratio method and make the soundcard driver use it.

pelwell added 2 commits June 10, 2024 16:44
Following [1], it becomes harder for the CPU DAI to know the correct
BCLK ratio. We can either bake the same knowledge into the sound card
driver, or implement and use set_bclk_ratio on the codec. This commit
does the latter.

[1] commit c89e652 ("ASoC: da7213: Add support for mono, set
frame width to 32 when possible")

Signed-off-by: Phil Elwell <[email protected]>
To ensure that the CPU DAI and codec agree over the BCLK ratio, impose
a fixed value of 64 on both of them.

Signed-off-by: Phil Elwell <[email protected]>
@pelwell
Copy link
Contributor Author

pelwell commented Jun 10, 2024

This is said patch: c89e652

@timg236
Copy link
Contributor

timg236 commented Jun 10, 2024

LGTM

@pelwell pelwell merged commit be8498e into raspberrypi:rpi-6.6.y Jun 10, 2024
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 12, 2024
kernel: Fix HS400 on CM5
See: raspberrypi/linux#6203

kernel: Reinstate "output format" DRM property
See: raspberrypi/linux#6133

kernel: Fix the IQaudIO handling of 16-bit samples
See: raspberrypi/linux#6215
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jun 12, 2024
kernel: Fix HS400 on CM5
See: raspberrypi/linux#6203

kernel: Reinstate "output format" DRM property
See: raspberrypi/linux#6133

kernel: Fix the IQaudIO handling of 16-bit samples
See: raspberrypi/linux#6215
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.

2 participants