breath icon indicating copy to clipboard operation
breath copied to clipboard

No sound on Acer Chromebook Spin 11

Open guest18941944 opened this issue 3 years ago • 30 comments

Despite the new apl-sof-setup-audio script, my sound card still went undetected. Only "default"(which is Pulseaudio's dummy output) shows up in alsamixer. image

guest18941944 avatar Apr 22 '22 12:04 guest18941944

Show the output of dmesg and post the link from sudo alsa-info from Breath.

MilkyDeveloper avatar Apr 22 '22 12:04 MilkyDeveloper

dmesg.txt http://alsa-project.org/db/?f=cbcd17f9e743a3cc7031f723d28bbbb76857a2b1

guest18941944 avatar Apr 23 '22 00:04 guest18941944

I also forgot to mention I run Debian

guest18941944 avatar Apr 23 '22 10:04 guest18941944

Here's a dmesg output from the Chrome OS shell if it is to be of use: dmesg.txt

guest18941944 avatar Apr 23 '22 13:04 guest18941944

I purged pulseaudio and blacklisted snd-soc-skl and snd-hda-intel(Heard that it makes the sof driver load instead). It still doesn't work.

guest18941944 avatar May 01 '22 03:05 guest18941944

I don't know if apl-sof-setup-audio ran properly. Your device should be SOF supported. What's in the file /etc/systemd/system/alsa-reload.service?

MilkyDeveloper avatar May 01 '22 13:05 MilkyDeveloper

[Unit] Description="Reload ALSA and set the correct UCM"

[Service] User=root WorkingDirectory=/ ExecStart=/bin/bash -c 'modprobe snd_soc_max98357a snd_soc_da7219 && alsa reload'

[Install] WantedBy=multi-user.target

guest18941944 avatar May 02 '22 00:05 guest18941944

What about running modprobe bxt_da7219_max98357a && alsa reload? That would be a stopgap solution, though.

Preferably we should use SOF. Blacklisting those modules might not make SOF load. I think you should put options snd-intel-dspcfg dsp_driver=3 in /etc/modprobe.d/test.conf, reboot, and show dmesg.

MilkyDeveloper avatar May 02 '22 00:05 MilkyDeveloper

Nevermind, that's already in the kernel parameters. What's the output of dmesg after modprobe snd-soc-sst-bxt-da7219_max98357a snd-soc-kbl_da7219_max98357a snd-sof-pci-intel-apl && alsa reload

MilkyDeveloper avatar May 02 '22 00:05 MilkyDeveloper

I whitelisted the drivers and ran your command, but my terminal responded with this: bash: alsa: command not found

I know this may seem like a dumb question, but I can't find an answer anywhere. Currently I have alsa-utils installed, do I have to install anything else?

guest18941944 avatar May 03 '22 12:05 guest18941944

The above happened. I know this may seem like a dumb question, but I can't find an answer anywhere. Currently I have alsa-utils installed, do I have to install anything else?

guest18941944 avatar May 03 '22 12:05 guest18941944

Maybe run systemctl restart alsa-state instead of alsa reload?

MilkyDeveloper avatar May 03 '22 12:05 MilkyDeveloper

dmesg.txt

guest18941944 avatar May 03 '22 12:05 guest18941944

By the way, the sound still doesn't work "cat /proc/asound/cards" returns with "--- no soundcards ---"

guest18941944 avatar May 03 '22 12:05 guest18941944

This is our error:

[  128.948429] snd_soc_sst_bxt_da7219_max98357a: unknown parameter 'snd-soc-kbl_da7219_max98357a' ignored
[  128.948440] snd_soc_sst_bxt_da7219_max98357a: unknown parameter 'snd-sof-pci-intel-apl' ignored

I've never encountered anything like this before. What if you just modprobe sudo modprobe snd_soc_max98357a snd_soc_da7219 and reload ALSA?

MilkyDeveloper avatar May 04 '22 03:05 MilkyDeveloper

I think an lsmod from ChromeOS would also be useful - once we get the correct modules loaded, this should be fixed and I'll add it to apl-setup-audio.

The config of this device is super weird. snd_soc_skl or snd_hda_intel doesn't return any errors, and SOF just doesn't load for some reason. I guess we can chalk it up to the wrong modules being loaded.

MilkyDeveloper avatar May 04 '22 03:05 MilkyDeveloper

lsmod.txt Here's the lsmod from Chrome OS shell

guest18941944 avatar May 05 '22 05:05 guest18941944

This is our error:

[  128.948429] snd_soc_sst_bxt_da7219_max98357a: unknown parameter 'snd-soc-kbl_da7219_max98357a' ignored
[  128.948440] snd_soc_sst_bxt_da7219_max98357a: unknown parameter 'snd-sof-pci-intel-apl' ignored

I've never encountered anything like this before. What if you just modprobe sudo modprobe snd_soc_max98357a snd_soc_da7219 and reload ALSA?

I tried your followed your steps. Sadly, it's still "--- no soundcards ---" Is there any other way to verify whether it's working?

guest18941944 avatar May 05 '22 09:05 guest18941944

modprobe snd_soc_max98357a snd_soc_da7219 snd-sof-pci-intel-apl sof-pci-dev && sudo alsa reload

Post a dmesg

MilkyDeveloper avatar May 05 '22 12:05 MilkyDeveloper

dmesg.txt

guest18941944 avatar May 06 '22 09:05 guest18941944

Maybe blacklist snd_hda_intel?

MilkyDeveloper avatar May 06 '22 12:05 MilkyDeveloper

[    5.959231] da7219 i2c-DLGS7219:00: Invalid micbias pulse level
[    6.290841] pci 0000:00:0e.0: attach allowed to drvr snd_hda_intel [internal device]
[    6.330036] iwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[    6.838134] pci 0000:00:0e.0: attach allowed to drvr snd_soc_skl [internal device]

and the the thing just... stops for some reason.

Try rerunning the whole script setup.sh again (on the PC you built Breath with of course), but first remove ~/linux-build. I've published a few changes that should allow you to enable dynamic debug (i'll explain this later).

Also, if you would be fine with it, use Ubuntu as your distro for audio testing. Debian is untested by me personally.

MilkyDeveloper avatar May 07 '22 02:05 MilkyDeveloper

I've got the same device, and got this error: fatal: destination path 'sof-bin' already exists and is not an empty directory.

Theriatheblack avatar Jun 11 '22 08:06 Theriatheblack

Alright, that error helps much more. Try running:

rm -rf ~/sof-bin

MilkyDeveloper avatar Jun 11 '22 15:06 MilkyDeveloper

Sorry, I forgot to delete that comment. I just re-ran the script and the problem disappeard. Sound still isn't working.

Theriatheblack avatar Jun 12 '22 00:06 Theriatheblack

What’s the output of sudo dmesg?

MilkyDeveloper avatar Jun 13 '22 07:06 MilkyDeveloper

dmesg.txt

Theriatheblack avatar Jun 17 '22 08:06 Theriatheblack

Hmmm, what about lsmod? There’s a chance that manually loading the da7219 module will help.

MilkyDeveloper avatar Jun 17 '22 14:06 MilkyDeveloper

Here's lsmod lsmod.txt How do you load da7219?

Theriatheblack avatar Jun 20 '22 08:06 Theriatheblack

Here's the lsmod: lsmod.txt How do you load the da7219 module? I tried sudo modprobe da7219 and it doesn't find it.

Theriatheblack avatar Jun 20 '22 08:06 Theriatheblack