-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Restore RockPI-S audio again #8360
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
Conversation
After mainline kernel commit 21cfbeae7d7c54a6cdea4b00096150f438f4fbde rockchip i2s requires that soc codecs call set_sysclk to explicity select a rate. This patch simply reverts to the old behavior if the codec does call set_sysclk. (rather that failing in that case with a bogus rate of 0hz) Also adds rk3308 vendor ASoC support to 6.16 kernel
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (5)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the ✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Good. I'll test this patch on my board later. |
Description
Another batch of kernel changes broke Rockchip's RK3308 ASoC
See:
https://forum.armbian.com/topic/51825-no-audio-on-kernel-61215-and-armbian-2522-bookworm-minimal/
Documentation summary for feature / change
The main reason culprit was an ABI change caused by mainline kernel commit:
21cfbeae7d7c54a6cdea4b00096150f438f4fbde
That required clients to explicitly set sampling frequency, where it had defaulted before. This patch enhances the i2s driver such that it supplies the default sampling frequency whenever the client has not overridden it.
On 6.16, some long deprecated aliases, on which the RK3308 ASoC driver relied, were finally removed, requiring some symbols be renamed.
@paolosabatino had added an overlay to optionally enable the pcm5102a CODEC some time ago, but it didn't really work because the pcm5102a was included in the base DTC fixes patch for the PI-S. So, this patch also removes the pcm5102a support from the DTC fixes patch. The very few folks that have a pcm5102a CODEC must now enable the overlay for it.
How Has This Been Tested?
Tested on RockPI-S running current and edge branches with Debian Minimal.
With ROCK Pi S PoE HAT
playback: speaker-test, mpg321 of various mp3 tunes out headphone jack
record: Only the test described in the forum. I have no audio recording capability.
Checklist: