chromebook-linux-audio icon indicating copy to clipboard operation
chromebook-linux-audio copied to clipboard

Internal speaker is exteremly distorted on MARASOV/ASUS Chromebook Plus CX34

Open jort93 opened this issue 1 year ago • 61 comments

Describe the bug The internal speaker has very distorted audio(completely unusable). #136 only provided a partial fix, fixing the headphone jack, the speaker is still broken.

Boardname MARASOV

Logs debug-logs-Marasov-2024-10-08_23h50m.tar.gz

jort93 avatar Oct 08 '24 14:10 jort93

Can you record what it sounds like?

WeirdTreeThing avatar Oct 19 '24 21:10 WeirdTreeThing

Can you record what it sounds like?

I have the same Chromebook and the audio from the speakers sounds like this: https://drive.google.com/file/d/1bU_UF6Qy83NznR5K_PjlWeTW6ZBSOm_E/view?usp=sharing

I found the link on this unresolved thread about a similar issue on a different board: https://forum.chrultrabook.com/t/audio-issues-running-manjaro-with-pulseaudio-on-omnigul/1744

Yippy284 avatar Oct 20 '24 13:10 Yippy284

Sorry i didn't get back earlier, but the audio sounds like the recording Yippy send. I don't use Manjaro, I use endeavouros(which is arch based too), sounds like a similar issue. Down to the audible pop after playback that is mentioned there, which i have too sometimes(but i wasn't sure if that was the same issue).

jort93 avatar Oct 22 '24 01:10 jort93

I'm guessing this is due to the mixer settings for the speaker amps being incorrectly configured, I'll see if I can find out what might be wrong.

WeirdTreeThing avatar Oct 26 '24 12:10 WeirdTreeThing

So actually, this device uses a "dumb" speaker amp with no controls other than on/off, so there is nothing to configure incorrectly. My next guess is the kernel driver being broken in some way.

WeirdTreeThing avatar Oct 26 '24 13:10 WeirdTreeThing

Same issue here, Laptop speakers are strangely quiet while also very loud (ASUS Chromebook plus CX34)

potential1energy avatar Oct 27 '24 06:10 potential1energy

Same here with Asus chromebook plus cx34 / MARASOV. Latest Fedora 41 Workstation release (6.11.8-300.fc41.x86_64)

I get lots of errors like this:

[   46.735546] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   46.735552] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   46.735554] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   46.736283] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   46.736287] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   46.736289] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   46.737015] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   46.737017] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   46.737019] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22
[   46.737896] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -22
[   46.737900] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[   46.737901] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -22

alinmear avatar Nov 19 '24 17:11 alinmear

Not something I need fixed but it's definitely a decent bit annoying that I can't use my speakers or internal mic (Main problem for me). I tried looking into the issue myself but I don't really know what I'm doing and after trying to dig around in through the few repos and scripts of the (to me) very confusing and hard to follow build process, couldn't find anywhere to begin. So idk

potential1energy avatar Jan 11 '25 17:01 potential1energy

I'm in the same boat with this issue, has anyone found any potential fixes? ASUS CX3402 "Marasov", I also get the same errors in dmesg logs as alinmear posted.

Also using EndeavourOS, kernel 6.13.2-arch1-1

scottstamp avatar Feb 11 '25 03:02 scottstamp

I've also encountered this issue. Asus CX34, "Marasov" on Fedora 41.

akuehntopf avatar Mar 10 '25 11:03 akuehntopf

Unfortunately, trying to debug this type of issue without having the device myself is not really possible.

WeirdTreeThing avatar Mar 10 '25 16:03 WeirdTreeThing

Unfortunately, trying to debug this type of issue without having the device myself is not really possible.

I'll try to figure it out myself and see if I can find a fix for it, last time I tried to do this I couldn't figure out where to begin. I'll try again.

potential1energy avatar Mar 14 '25 03:03 potential1energy

See if an older kernel version doesn't have the issue.

WeirdTreeThing avatar Mar 14 '25 12:03 WeirdTreeThing

The fw/tplg could also be broken in some way. FW is unlikely so maybe the upstream tplg is incorrect.

WeirdTreeThing avatar Mar 14 '25 16:03 WeirdTreeThing

I've found that between all the devices affected, the common factor is rt1019p. I have a feeling that the topology for it could be broken. I have a way to test that:

  1. Make a backup of the tplg: sudo cp /lib/firmware/intel/sof-tplg/sof-adl-rt1019-rt5682.tplg.xz ~/sof-adl-rt1019-rt5682.tplg.xz
  2. Replace the rt1019p tplg with the max98360a tplg: sudo cp /lib/firmware/intel/sof-tplg/sof-adl-max98360a-rt5682.tplg.xz /lib/firmware/intel/sof-tplg/sof-adl-rt1019-rt5682.tplg.xz
  3. Reboot

Replace/remove firmware compression where needed

WeirdTreeThing avatar Mar 16 '25 13:03 WeirdTreeThing

After replacing the tplg and reboot sound works now. Thx for this. What are the implications? Is there anything I should be aware of?

The Mic still seems not to work.

alinmear avatar Mar 16 '25 14:03 alinmear

Mic is known to not work on random devices. I need to come up with a solution to this. Other than that, everything should just work. I'll get at least one other person to confirm this works and then add this to the script. Btw, which board do you have? I'd like to get a marasov and an omnigul user to confirm this fixes the issue.

WeirdTreeThing avatar Mar 16 '25 14:03 WeirdTreeThing

Thank you @WeirdTreeThing. I am reporting in for Omnigul and happy to confirm that audio output works after applying your suggestion.

I can also confirm that the microphone input does not work. I am not sure if it did before applying the change you suggested, I had not tested it at all.

Based on @alinmear's comment above and the fact that the issue on Omnigul was only confirmed yesterday - for expediency, I would suggest that @alinmear's board is Marasov.

superuser-does avatar Mar 16 '25 15:03 superuser-does

@WeirdTreeThing my board is Marasov.

alinmear avatar Mar 16 '25 16:03 alinmear

I'm pretty sure I found the issue with the topology, can you all test this fixed topology? Just put it in /lib/firmware/intel/sof-tplg/

WeirdTreeThing avatar Mar 17 '25 16:03 WeirdTreeThing

@WeirdTreeThing I tried the fix. Unfortunately, afterward, I no longer have any audio device to choose from.

in any case thank you for your efforts

alinmear avatar Mar 17 '25 19:03 alinmear

Please send logs.

WeirdTreeThing avatar Mar 17 '25 22:03 WeirdTreeThing

I'm pretty sure I found the issue with the topology, can you all test this fixed topology? Just put it in /lib/firmware/intel/sof-tplg/

Lenovo Flex 3i Chromebook 12" running Kubuntu 25.04. Testing with the fixed topology, the built-in speaker is good at 10% volume, but has a lot of noise at higher volumes. The 3.5mm jack headphone works normally when playing audio, but has a stable noise when not playing. Display audio is good. Below are the logs.

debug-logs-Pujjo-2025-03-27_22h14m.tar.gz

When using the max98360a topology, the built-in speaker and display audio are good, but the 3.5mm jack has the same noise.

4b441 avatar Mar 27 '25 14:03 4b441

Can you send the currently installed version of sof-firmware? (should be apt info sof-firmware)

WeirdTreeThing avatar Mar 27 '25 17:03 WeirdTreeThing

Can you send the currently installed version of sof-firmware? (should be apt info sof-firmware)

Package: firmware-sof-signed Version: 2024.06-1ubuntu4 Priority: optional Section: kernel Source: firmware-sof Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Mark Pearson [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 9,779 kB Pre-Depends: dpkg (>= 1.17.14) Homepage: https://github.com/thesofproject/sof-bin Download-Size: 7,093 kB APT-Manual-Installed: no APT-Sources: http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages Description: Intel SOF firmware - signed Provides the Intel SOF audio firmware and topology needed for audio functionality on some Intel system. . This package contains the pre-built and signed binaries.

4b441 avatar Mar 28 '25 00:03 4b441

Btw, if you're going to replace these files separately in the script, please note that they are compressed as .tplg.zst in the Ubuntu package.

4b441 avatar Mar 28 '25 05:03 4b441

I wonder what would happen with a newer version of sof-bin and the rename workaround.

WeirdTreeThing avatar Mar 28 '25 17:03 WeirdTreeThing

Reinstalled sof-firmware v2025.01 from the github release. The built-in speaker is always distorted at lower volumes. The 3.5mm jack headphone works normally when playing audio, but has a stable noise when not playing. Display audio is good.

debug-logs-Pujjo-2025-03-29_08h33m.tar.gz

Then replacing sof-adl-rt1019-rt5682.tplg with sof-adl-max98360a-rt5682.tplg, everything is good except for the noise of the 3.5mm jack when not playing.

debug-logs-Pujjo-2025-03-29_08h40m.tar.gz

4b441 avatar Mar 29 '25 00:03 4b441

The headphone jack noise may just be a hardware issue on your end.

WeirdTreeThing avatar Mar 29 '25 11:03 WeirdTreeThing

I have no idea about that, but the noise doesn't happen in Windows 10.

4b441 avatar Mar 30 '25 03:03 4b441