Trying to get speaker output on my macbook 14,1 working, I stumbled onto this github repo:
https://github.com/davidjo/snd_hda_macbookpro
I was following the instructions but on the build stage I got the following error:
[alex@Mac-Arch snd_hda_macbookpro]$ sudo ./install.cirrus.driver.sh
[sudo] password for alex:
--2023-05-25 14:35:55-- https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.29.tar.xz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving cdn.kernel.org (cdn.kernel.org)... 151.101.209.176, 2a04:4e42:b::432
Connecting to cdn.kernel.org (cdn.kernel.org)|151.101.209.176|:443... connected.
HTTP request sent, awaiting response... 416 Range Not Satisfiable
The file is already fully retrieved; nothing to do.
linux-6.1.29/sound/pci/hda/
-lists a bunch more of these linux directories, I am cutting them out due to discord character limit-
linux-6.1.29/sound/pci/hda/thinkpad_helper.c
Kernel version later than implemented version - there may be build problems
patching file patch_cs8409.c
Hunk #1 succeeded at 1444 (offset 174 lines).
Hunk #2 succeeded at 1453 (offset 174 lines).
Hunk #3 succeeded at 1482 (offset 174 lines).
patching file patch_cs8409.h
Hunk #2 succeeded at 303 (offset 1 line).
Hunk #3 succeeded at 330 (offset 1 line).
Hunk #4 succeeded at 366 (offset 1 line).
patching file patch_cirrus_apple.h
make -C /lib/modules/6.1.29-1-lts/build CFLAGS_MODULE="-DAPPLE_PINSENSE_FIXUP -DAPPLE_CODECS -DCONFIG_SND_HDA_RECONFIG=1 -Wno-unused-variable -Wno-unused-function" M=/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29 modules
make[1]: Entering directory '/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29'
make[1]: *** /lib/modules/6.1.29-1-lts/build: No such file or directory. Stop.
make[1]: Leaving directory '/home/alex/AUR/snd_hda_macbookpro/build/hda-6.1.29'
make: *** [Makefile:23: all] Error 2
[alex@Mac-Arch snd_hda_macbookpro]$
I am on the LTS kernel, could this be causing the issue?