SiFuh changed the topic of #crux-social to: Offtopic Talks | Project https://crux.nu/ | Logs: https://libera.irclog.whitequark.org/crux-social/
<farkuhar> ukky: Thanks for the hints. The return value in the dmesg output has always been -2, which probably didn't come from pcim_enable_device(pci) or pci_request_regions(pci,"Audio DSP") because of the accompanying debug message. But if EINVAL is not 2, then I was on the wrong track to suspect problems with the sof ipc_type.
<farkuhar> Instead I should probably follow your suggestion of playing with the filenames. I suspect the sof_pci_probe() function got all the way to populating sof_pdata and then got its return value from snd_sof_device_probe. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/soc/sof/sof-pci-dev.c?h=v6.6.31#n341
<farkuhar> Tracing it further back, the return value itself comes from ((resp & 0xFFFF0000) == IDISP_VID_INTEL) && (!hbus->core.audio_component)) , which would seem to relate to the earlier dmesg "init of i915 and HDMI codec failed". Is there a module option I can pass so that it only probes the internal sound card, rather than also trying to initialize the HDMI port?
<farkuhar> That earlier dmesg comes from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/sound/hda/hdac_i915.c?h=v6.6.31#n174 , so maybe there was an oversight in make menuconfig that allowed me to build i915 directly into the kernel, rather than requiring it to be a module as soon as I selected snd_hda_intel as a module.
<ukky> This option might disable HDMI audio: https://lore.kernel.org/all/20200415162523.27499-1-tiwai@suse.de/
<ukky> No need to recompile kernel to test <module>.enable_acomp
<remiliascarlet> ppetrov^: "or as the youngsters like to say "apps"" There is a reason why I never refer a program to an "app". Because Steve Jobs successfully brainwashed the world into using "app" instead of "program", "application", "driver", "game", "OS", "firmware", or whatever other type of software, so that everyone makes the subcontious association to "Apple" whenever they say "app".
<farkuhar> ukky: so that would be "options snd_hda_codec_hdmi enable_acomp=0" somewhere under /etc/modprobe.d/? Or does enable_acomp go with a different module?
<ukky> Never used this option, here is one use case: https://bbs.archlinux.org/viewtopic.php?pid=2009982#p2009982 (just remove 'enable_silent_stream = off')
<ukky> Or you can try adding to kernel command line: snd_hda_codec_hdmi.enable_acomp=0
<farkuhar> ukky: I'll give it a try, but only after a good night's sleep. That particular device has been powered off for now. Thanks for your help tonight!
<ukky> You are welcome
<remiliascarlet> My mom got tricked into using the A-word, and often confuses "Apple" with "smartphone application". Like how she's referring LINE (a popular chat program in Japan and Korea) to as "a chat apple".
<remiliascarlet> Or things like "why won't you buy an app" instead of "why won't you buy an iPhone".
DesRoin has quit [*.net *.split]
DesRoin has joined #crux-social
SiFuh has quit [Remote host closed the connection]
SiFuh has joined #crux-social
lavaball has joined #crux-social
zorz has joined #crux-social
<farkuhar> ukky: Successful detection of the soundcard just now. It seems to be another side effect of the failure to auto-load a required module (just like iwlmvm wasn't being loaded automatically with iwlwifi). In this case, the module that failed to auto-load was snd_hda_codec_hdmi. Once I modprobed it manually, ALSA could see the card just fine.
<farkuhar> Maybe I should follow SiFuh's example and control all the module loading by hand, if this hardware is not giving the kernel enough information about the modules it needs.
zorz has quit [Quit: leaving]
zorz has joined #crux-social
ivandi has quit [Quit: WeeChat 4.2.2]
ivandi has joined #crux-social
<ukky> farkuhar: kernel module loading is still a mistery to me. Great that you found a way to fix audio issue on that system.
<ukky> farkuhar: can you try adding this line after /sys and /proc are mounter, but before udev is started: for _m in $(/sbin/kmod static-nodes -f devname 2>/dev/null | cut -d' ' -f1); do echo "Loading module $_m"; /sbin/modprobe -bq "$_m"; done
<ukky> farkuhar: The above is just to test if pre-loading static nodes fixes autodetection later when udev is being loaded
emmett1 has joined #crux-social
<farkuhar> ukky: will try it, thanks for the idea. It's also the first device on which I replaced the proprietary firmware with Coreboot, so maybe that has something to do with the module loading issues.
<ukky> farkuhar: Coreboot might be another source of audio issues, as Linux kernel depends on the device tree that Coreboot reports to the kernel. Meaning, you need a Coreboot that was compiled for your specific HW.
emmett1 has quit [Quit: ]
lavaball has quit [Remote host closed the connection]
zorz has quit [Quit: leaving]
lavaball has joined #crux-social
<farkuhar> ukky: on the latest reboot, the kmod static-nodes loop did not echo anything. But after logging in, `kmod static-nodes` _does_ show a few modules, so somehow those static nodes were detected between launching udev and acquiring a login shell.
<farkuhar> anyway, thanks for pointing out the enable_acomp parameter of the snd_hda_codec_hdmi module. That option was the key to getting audio working at last.
<ukky> farkuhar: in theory, that HDMI audio device should not affect the discovery of your second audio device. But I assume you will not be using HDMI audio (unless you hook HDMI TV)
<farkuhar> ukky: correct, I don't have any plans to use HDMI audio on this device. The internal speakers and the 3.5mm jack should cover all the intended use-cases.
lavaball has quit [Quit: lavaball]
farkuhar has quit [Quit: nyaa~]
DesRoin has quit [Ping timeout: 260 seconds]
DesRoin has joined #crux-social