-
Notifications
You must be signed in to change notification settings - Fork 133
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
[BUG] Distorted internal speaker sound on sof-rt5682 #5055
Comments
Most likely you have a setup where firmware/topology isn't aligned with UCM.
but it seems that you are using the public version of the firmware
I would either use all the components from Chrome, or all the components from sof-bin/alsa-ucm-conf. At any rate it's not a firmware issue and it's not clear how to support this configuration. |
Hi @plbossart, thank you for replying back. I was told by one of the senior contributors of the Chrultrabook project that, although the UCMs are based off of ChromeOS, they're actually written from scratch. |
Hi @plbossart. The issue with the crackling internal audio still persists, even with the latest versions of the SOF firmware and Linux 6.10, though I did resolve the volume control issue by switching to Pipewire. Since our last conversation, I've removed I'd greatly appreciate it if you or someone else who's knowledgeable in this area could provide me with some guidance regarding how to analyze these trace logs and hopefully manage to identify what might be the root cause: sof-logger.log |
please add this file Please make sure your console log is larger enough for the verbose logs. |
Here's the requested info: |
the internal microphone is reported by the kernel with a PCM device
if that's not seen by userspace, the UCM file is broken. The start of the log is missing, your buffer is too small, but I can already tell you the topology is not right. You cannot use the HotWording/KPB with the publicly released firmware. This is 3rd party stuff that is only distributed by Google. and then there's a failed IPC
That's probably a bad configuration was well, where you're trying to send information to a non-existing component. In short, you are in a configuration hole. You probably need to use all the firmware and topology from Google, not the latest sof-bin, and verify that the UCM is aligned with topology. |
Describe the bug
I purchased a Chromebook Plus 515 with a 12th gen Intel CPU (i3-1215u) and decided to flash Coreboot (via MrChromebox's firmware utility) to replace ChromeOS with a Linux distro, more specifically Manjaro. Seeing that the sound card wasn't being detected by the system, I ran this script and got it to work. However, while there aren't sound quality issues when using Bluetooth or jack-connected headphones, audio coming from the internal speakers sounds garbled and choppy.
I'm able to confirm that this bug is experienced by at least one other user, so it probably isn't hardware-related, and it's not OS-related either, being also present on EndeavourOS. Switching from WirePlumber to PulseAudio did not resolve the issue. Using PulseAudio didn't help as well.
To Reproduce
This issue may just be limited to Chromebooks running Linux given their use of I2S codecs as opposed to HDA. For that matter, repeating the steps described above on a Chromebook with an sof-rt5682 sound card to install Linux and enable detection of the card will reproduce the issue.
System information
dmesg.log
The current kernel parameters in use are:
An attempt was made to also include the firmware log with
sof-tools-2024.03-1
, yet the package version is seemingly incompatible with the current Linux version, returning anInvalid ldc file signature
when executing:sudo sof-logger -l /sys/kernel/debug/sof/etrace -o sof-logger.log
I'm not sure whether this is relevant, but the information reported by
alsamixer
doesn't match up with what's reported by the display controls. The following is for the headphone audio (the volume control for the internal speakers is missing):The text was updated successfully, but these errors were encountered: