davidjo / snd_hda_macbookpro

Kernel audio driver for Macs with 8409 HDA chip + MAX98706/SSM3515 amps
GNU General Public License v2.0
278 stars 60 forks source link

Debian Kernel 5.10.0-25-amd64 MacBook Pro 14,1 Script does not work - patch too #97

Open Pablo12345678901 opened 12 months ago

Pablo12345678901 commented 12 months ago

I cannot get sound output/input. It seems that input is not available on MacBook Pro 14,1 which is my device - if it is available now please let me know. Main issue here is output sound.

I was not able to find the solution neither with the scripts of "snd_hda_macbookpro" and "https://github.com/leifliddy/macbook12-audio-driver" repositories nor by myself with your comment : I do not find "snd_hda_codec_cirrus" module and if I load it after reboot it is not anymore loaded - sound does not work.

I check if my sound was mute - it is not.

I have done #63 and this is the output when I run the script :

Command : sudo ./install.cirrus.driver.sh reboot

Output : --2023-09-14 09:19:19-- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.0.tar.xz Résolution de cdn.kernel.org (cdn.kernel.org)… 2a04:4e42:8d::432, 146.75.117.176 Connexion à cdn.kernel.org (cdn.kernel.org)|2a04:4e42:8d::432|:443… connecté. requête HTTP transmise, en attente de la réponse… 404 Not Found 2023-09-14 09:19:19 erreur 404 : Not Found.

Failed to download linux-5.10.0.tar.xz Trying to download base kernel version linux-5.10.tar.xz This may lead to build failures as too old If this is an Ubuntu-based distribution this almost certainly will fail to build

--2023-09-14 09:19:19-- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.tar.xz Résolution de cdn.kernel.org (cdn.kernel.org)… 2a04:4e42:8d::432, 146.75.117.176 Connexion à cdn.kernel.org (cdn.kernel.org)|2a04:4e42:8d::432|:443… connecté. requête HTTP transmise, en attente de la réponse… 200 OK Taille : 116606704 (111M) [application/x-xz] Sauvegarde en : « build/linux-5.10.tar.xz »

linux-5.10.tar.xz 100%[===================>] 111.20M 24.6MB/s ds 5.2s

2023-09-14 09:19:24 (21.2 MB/s) — « build/linux-5.10.tar.xz » sauvegardé [116606704/116606704]

linux-5.10/sound/pci/hda/ linux-5.10/sound/pci/hda/Kconfig linux-5.10/sound/pci/hda/Makefile linux-5.10/sound/pci/hda/ca0132_regs.h linux-5.10/sound/pci/hda/hda_auto_parser.c linux-5.10/sound/pci/hda/hda_auto_parser.h linux-5.10/sound/pci/hda/hda_beep.c linux-5.10/sound/pci/hda/hda_beep.h linux-5.10/sound/pci/hda/hda_bind.c linux-5.10/sound/pci/hda/hda_codec.c linux-5.10/sound/pci/hda/hda_controller.c linux-5.10/sound/pci/hda/hda_controller.h linux-5.10/sound/pci/hda/hda_controller_trace.h linux-5.10/sound/pci/hda/hda_eld.c linux-5.10/sound/pci/hda/hda_generic.c linux-5.10/sound/pci/hda/hda_generic.h linux-5.10/sound/pci/hda/hda_hwdep.c linux-5.10/sound/pci/hda/hda_intel.c linux-5.10/sound/pci/hda/hda_intel.h linux-5.10/sound/pci/hda/hda_intel_trace.h linux-5.10/sound/pci/hda/hda_jack.c linux-5.10/sound/pci/hda/hda_jack.h linux-5.10/sound/pci/hda/hda_local.h linux-5.10/sound/pci/hda/hda_proc.c linux-5.10/sound/pci/hda/hda_sysfs.c linux-5.10/sound/pci/hda/hda_tegra.c linux-5.10/sound/pci/hda/hp_x360_helper.c linux-5.10/sound/pci/hda/patch_analog.c linux-5.10/sound/pci/hda/patch_ca0110.c linux-5.10/sound/pci/hda/patch_ca0132.c linux-5.10/sound/pci/hda/patch_cirrus.c linux-5.10/sound/pci/hda/patch_cmedia.c linux-5.10/sound/pci/hda/patch_conexant.c linux-5.10/sound/pci/hda/patch_hdmi.c linux-5.10/sound/pci/hda/patch_realtek.c linux-5.10/sound/pci/hda/patch_si3054.c linux-5.10/sound/pci/hda/patch_sigmatel.c linux-5.10/sound/pci/hda/patch_via.c linux-5.10/sound/pci/hda/thinkpad_helper.c patching file patch_cirrus.c make -C /lib/modules/5.10.0-25-amd64/build CFLAGS_MODULE="-DAPPLE_PINSENSE_FIXUP -DAPPLE_CODECS -DCONFIG_SND_HDA_RECONFIG=1 -Wno-unused-variable -Wno-unused-function" M=/home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0 modules make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 » CC [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/patch_cirrus.o LD [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.o MODPOST /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/Module.symvers CC [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.mod.o LD [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.ko make[1] : on quitte le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 »

cp snd-hda-codec-cirrus.ko /lib/modules/5.10.0-25-amd64/updates

make INSTALL_MOD_DIR=updates -C /lib/modules/5.10.0-25-amd64/build M=/home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0 CONFIG_MODULE_SIG_ALL=n modules_install make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 » INSTALL /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.ko At main.c:167:

contents of /lib/modules/5.10.0-25-amd64/updates total 788 drwxr-xr-x 2 root root 4096 5 sep 12:29 dkms -rw-r--r-- 1 root root 350312 13 sep 15:33 hci_uart.ko lrwxrwxrwx 1 root root 31 13 sep 21:18 snd-hda-codec-cirrus.ko -> snd-hda-codec-cirrus.ko_speaker -rw-r--r-- 1 root root 446896 14 sep 09:19 snd-hda-codec-cirrus.ko_speaker

Tested this too #63 but this is the output :

Pre-command : sudo rm -rf snd_hda_macbookpro/ # remove the current folder git clone https://github.com/davidjo/snd_hda_macbookpro cd snd_hda_macbookpro/

First command : curl https://patch-diff.githubusercontent.com/raw/davidjo/snd_hda_macbookpro/pull/64.diff | git apply

First output (issue with patch) : % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1077 0 1077 0 0 3205 0 --:--:-- --:--:-- --:--:-- 3214 error: le patch a échoué : patch_patch_cs8409.h.diff:420 error: patch_patch_cs8409.h.diff : le patch ne s'applique pas

Second part command : sudo ./install.cirrus.driver.sh

Second output (similar to above) : --2023-09-14 09:25:06-- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.0.tar.xz Résolution de cdn.kernel.org (cdn.kernel.org)… 2a04:4e42:8e::432, 146.75.121.176 Connexion à cdn.kernel.org (cdn.kernel.org)|2a04:4e42:8e::432|:443… connecté. requête HTTP transmise, en attente de la réponse… 404 Not Found 2023-09-14 09:25:07 erreur 404 : Not Found.

Failed to download linux-5.10.0.tar.xz Trying to download base kernel version linux-5.10.tar.xz This may lead to build failures as too old If this is an Ubuntu-based distribution this almost certainly will fail to build

--2023-09-14 09:25:07-- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.tar.xz Résolution de cdn.kernel.org (cdn.kernel.org)… 2a04:4e42:8e::432, 146.75.121.176 Connexion à cdn.kernel.org (cdn.kernel.org)|2a04:4e42:8e::432|:443… connecté. requête HTTP transmise, en attente de la réponse… 200 OK Taille : 116606704 (111M) [application/x-xz] Sauvegarde en : « build/linux-5.10.tar.xz »

linux-5.10.tar.xz 100%[===================>] 111.20M 22.1MB/s ds 9.0s

2023-09-14 09:25:16 (12.3 MB/s) — « build/linux-5.10.tar.xz » sauvegardé [116606704/116606704]

linux-5.10/sound/pci/hda/ linux-5.10/sound/pci/hda/Kconfig linux-5.10/sound/pci/hda/Makefile linux-5.10/sound/pci/hda/ca0132_regs.h linux-5.10/sound/pci/hda/hda_auto_parser.c linux-5.10/sound/pci/hda/hda_auto_parser.h linux-5.10/sound/pci/hda/hda_beep.c linux-5.10/sound/pci/hda/hda_beep.h linux-5.10/sound/pci/hda/hda_bind.c linux-5.10/sound/pci/hda/hda_codec.c linux-5.10/sound/pci/hda/hda_controller.c linux-5.10/sound/pci/hda/hda_controller.h linux-5.10/sound/pci/hda/hda_controller_trace.h linux-5.10/sound/pci/hda/hda_eld.c linux-5.10/sound/pci/hda/hda_generic.c linux-5.10/sound/pci/hda/hda_generic.h linux-5.10/sound/pci/hda/hda_hwdep.c linux-5.10/sound/pci/hda/hda_intel.c linux-5.10/sound/pci/hda/hda_intel.h linux-5.10/sound/pci/hda/hda_intel_trace.h linux-5.10/sound/pci/hda/hda_jack.c linux-5.10/sound/pci/hda/hda_jack.h linux-5.10/sound/pci/hda/hda_local.h linux-5.10/sound/pci/hda/hda_proc.c linux-5.10/sound/pci/hda/hda_sysfs.c linux-5.10/sound/pci/hda/hda_tegra.c linux-5.10/sound/pci/hda/hp_x360_helper.c linux-5.10/sound/pci/hda/patch_analog.c linux-5.10/sound/pci/hda/patch_ca0110.c linux-5.10/sound/pci/hda/patch_ca0132.c linux-5.10/sound/pci/hda/patch_cirrus.c linux-5.10/sound/pci/hda/patch_cmedia.c linux-5.10/sound/pci/hda/patch_conexant.c linux-5.10/sound/pci/hda/patch_hdmi.c linux-5.10/sound/pci/hda/patch_realtek.c linux-5.10/sound/pci/hda/patch_si3054.c linux-5.10/sound/pci/hda/patch_sigmatel.c linux-5.10/sound/pci/hda/patch_via.c linux-5.10/sound/pci/hda/thinkpad_helper.c patching file patch_cirrus.c make -C /lib/modules/5.10.0-25-amd64/build CFLAGS_MODULE="-DAPPLE_PINSENSE_FIXUP -DAPPLE_CODECS -DCONFIG_SND_HDA_RECONFIG=1 -Wno-unused-variable -Wno-unused-function" M=/home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0 modules make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 » CC [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/patch_cirrus.o LD [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.o MODPOST /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/Module.symvers CC [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.mod.o LD [M] /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.ko make[1] : on quitte le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 »

cp snd-hda-codec-cirrus.ko /lib/modules/5.10.0-25-amd64/updates

make INSTALL_MOD_DIR=updates -C /lib/modules/5.10.0-25-amd64/build M=/home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0 CONFIG_MODULE_SIG_ALL=n modules_install make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.10.0-25-amd64 » INSTALL /home/connex-incognito/Bureau/Developpement/linux_config/sound/snd_hda_macbookpro/build/hda-5.10.0/snd-hda-codec-cirrus.ko At main.c:167:

contents of /lib/modules/5.10.0-25-amd64/updates total 788 drwxr-xr-x 2 root root 4096 5 sep 12:29 dkms -rw-r--r-- 1 root root 350312 13 sep 15:33 hci_uart.ko lrwxrwxrwx 1 root root 31 13 sep 21:18 snd-hda-codec-cirrus.ko -> snd-hda-codec-cirrus.ko_speaker -rw-r--r-- 1 root root 446896 14 sep 09:25 snd-hda-codec-cirrus.ko_speaker

=============================================================== It seems to be similar as #71 but I was not able to find the solution by myself (step-by-step).

Those are some command outputs that I hope could help to resolve my issue.

Command : uname -a

Output : Linux laptop-incognito 5.10.0-25-amd64 https://github.com/davidjo/snd_hda_macbookpro/issues/1 SMP Debian 5.10.191-1 (2023-08-16) x86_64 GNU/Linux

Command : sudo dmesg | grep -i 'snd|hda'

Output : [ 13.683726] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915]) [ 13.732882] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=2 (0x24/0x25/0x0/0x0/0x0) type:speaker [ 13.732885] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 13.732887] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x2c/0x0/0x0/0x0/0x0) [ 13.732888] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0 [ 13.732888] snd_hda_codec_generic hdaudioC0D0: inputs: [ 13.732890] snd_hda_codec_generic hdaudioC0D0: Internal Mic=0x44 [ 13.732891] snd_hda_codec_generic hdaudioC0D0: Mic=0x3c [ 13.853808] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8 [ 13.853911] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9 [ 13.854022] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10 [ 13.854076] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11 [ 13.854127] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12

Command : sudo lsmod | grep 'snd'

Output : snd_hda_codec_hdmi 77824 1 snd_hda_codec_generic 98304 1 ledtrig_audio 16384 1 snd_hda_codec_generic snd_soc_skl 180224 0 snd_soc_hdac_hda 24576 1 snd_soc_skl snd_hda_ext_core 36864 2 snd_soc_hdac_hda,snd_soc_skl snd_soc_sst_ipc 20480 1 snd_soc_skl snd_soc_sst_dsp 36864 1 snd_soc_skl snd_soc_acpi_intel_match 45056 1 snd_soc_skl snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_soc_skl snd_hda_intel 57344 5 snd_intel_dspcfg 28672 2 snd_hda_intel,snd_soc_skl soundwire_intel 45056 1 snd_intel_dspcfg snd_soc_core 319488 3 soundwire_intel,snd_soc_hdac_hda,snd_soc_skl snd_compress 32768 1 snd_soc_core snd_hda_codec 176128 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda snd_hda_core 110592 7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_hdac_hda,snd_soc_skl snd_hwdep 20480 1 snd_hda_codec snd_pcm 143360 9 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_soc_skl,snd_hda_core snd_timer 49152 1 snd_pcm snd 110592 18 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm soundcore 16384 1 snd

Command : sudo lshw | grep -i audio

Output : description: Audio device produit: Sunrise Point-LP HD Audio

Command : lspci | grep -i 'audio'

Output : 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)

Command : sudo journalctl -b 0 -p 5 | grep -i 'audio|snd|sound|firmware'

Output : sep 13 22:55:29 laptop-incognito kernel: ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored sep 13 22:55:30 laptop-incognito kernel: brcmfmac 0000:02:00.0: firmware: failed to load brcm/brcmfmac4350c2-pcie.Apple Inc.-MacBookPro14,1.txt (-2) sep 13 22:55:30 laptop-incognito kernel: firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware sep 13 22:55:30 laptop-incognito kernel: brcmfmac 0000:02:00.0: Direct firmware load for brcm/brcmfmac4350c2-pcie.Apple Inc.-MacBookPro14,1.txt failed with error -2 sep 13 22:55:30 laptop-incognito kernel: brcmfmac 0000:02:00.0: firmware: failed to load brcm/brcmfmac4350c2-pcie.txt (-2) sep 13 22:55:30 laptop-incognito kernel: brcmfmac 0000:02:00.0: Direct firmware load for brcm/brcmfmac4350c2-pcie.txt failed with error -2 sep 13 22:55:30 laptop-incognito kernel: brcmfmac 0000:02:00.0: firmware: failed to load brcm/brcmfmac4350c2-pcie.clm_blob (-2) sep 13 22:55:30 laptop-incognito kernel: bluetooth hci0: firmware: failed to load brcm/BCM.hcd (-2) sep 13 22:55:30 laptop-incognito kernel: Bluetooth: hci0: BCM: firmware Patch file not found, tried: sep 13 22:55:43 laptop-incognito libcanberra-login-sound.desktop[1584]: Failed to play sound: File or data not found

Please ask any other missing information and I will provide it.

Thank you.

davidjo commented 12 months ago

Not sure where to start:

Why do you have a symbolic link in the updates directory (snd-hda-codec-cirrus.ko -> snd-hda-codec-cirrus.ko_speaker) - none of my scripts do this?

I dont have a 14,1 but from the issues it has been reported working for 14,1 machines - it does have the 8409 chip (I cant verify any of this tho).

However - from your logs the module is not being recognised as the actual module being loaded is snd_hda_codec_generic so you wont get any sound (hence the question about the symbolic link - Ive never tried to use them for kernel modules even tho it appears my updated module is being built and installed from your logs - for kernel 5.10 that is snd_hda_codec_cirrus).

Also - what version of debian are you using - kernel 5.10 is very old now - note my error message This may lead to build failures as too old - I would suggest upgrading debian to a much later version - preferably the current version - this module is currently mainly working on kernel version 6.

You did just clone my current repo and ran the install script - you didnt try and use an earler commit? (I would assume thats your first attempt). Note that the current head of the repo does not need the 64.diff patch and it shouldnt be applied (it looks like the patch failed in any case - le patch ne s'applique pas - which would mean the 2nd run is just a repeat of the first run).

I attempted to have the install script still work for older kernel versions but I have not in any way tested this so it may not be working.

PS note that you are also having problems with wifi - the brcm log failures - and bluetooth - which should be fixed by a current kernel version.

Pablo12345678901 commented 12 months ago

Thank you for your quick reply.

I was with PureOs distro which is stuck on this kernel version.

Command : sudo apt-cache search linux-image [sudo] Mot de passe de connex-incognito :

Output : linux-headers-5.10.0-22-amd64 - Header files for Linux 5.10.0-22-amd64 linux-headers-5.10.0-22-cloud-amd64 - Header files for Linux 5.10.0-22-cloud-amd64 linux-headers-5.10.0-22-rt-amd64 - Header files for Linux 5.10.0-22-rt-amd64 linux-image-5.10.0-22-amd64 - Linux 5.10 for 64-bit PCs (signed) linux-image-5.10.0-22-amd64-dbg - Debug symbols for linux-image-5.10.0-22-amd64 linux-image-5.10.0-22-amd64-unsigned - Linux 5.10 for 64-bit PCs linux-image-5.10.0-22-cloud-amd64 - Linux 5.10 for x86-64 cloud (signed) linux-image-5.10.0-22-cloud-amd64-dbg - Debug symbols for linux-image-5.10.0-22-cloud-amd64 linux-image-5.10.0-22-cloud-amd64-unsigned - Linux 5.10 for x86-64 cloud linux-image-5.10.0-22-rt-amd64 - Linux 5.10 for 64-bit PCs, PREEMPT_RT (signed) linux-image-5.10.0-22-rt-amd64-dbg - Debug symbols for linux-image-5.10.0-22-rt-amd64 linux-image-5.10.0-22-rt-amd64-unsigned - Linux 5.10 for 64-bit PCs, PREEMPT_RT linux-image-amd64 - Linux for 64-bit PCs (meta-package) linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package) linux-image-amd64-signed-template - Template for signed linux-image packages for amd64 linux-image-cloud-amd64 - Linux for x86-64 cloud (meta-package) linux-image-cloud-amd64-dbg - Debugging symbols for Linux cloud-amd64 configuration (meta-package) linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package) linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package) linux-headers-5.10.0-25-amd64 - Header files for Linux 5.10.0-25-amd64 linux-headers-5.10.0-25-cloud-amd64 - Header files for Linux 5.10.0-25-cloud-amd64 linux-headers-5.10.0-25-rt-amd64 - Header files for Linux 5.10.0-25-rt-amd64 linux-image-5.10.0-25-amd64 - Linux 5.10 for 64-bit PCs (signed) linux-image-5.10.0-25-amd64-dbg - Debug symbols for linux-image-5.10.0-25-amd64 linux-image-5.10.0-25-amd64-unsigned - Linux 5.10 for 64-bit PCs linux-image-5.10.0-25-cloud-amd64 - Linux 5.10 for x86-64 cloud (signed) linux-image-5.10.0-25-cloud-amd64-dbg - Debug symbols for linux-image-5.10.0-25-cloud-amd64 linux-image-5.10.0-25-cloud-amd64-unsigned - Linux 5.10 for x86-64 cloud linux-image-5.10.0-25-rt-amd64 - Linux 5.10 for 64-bit PCs, PREEMPT_RT (signed) linux-image-5.10.0-25-rt-amd64-dbg - Debug symbols for linux-image-5.10.0-25-rt-amd64 linux-image-5.10.0-25-rt-amd64-unsigned - Linux 5.10 for 64-bit PCs, PREEMPT_RT linux-headers-5.10.0-23-amd64 - Header files for Linux 5.10.0-23-amd64 linux-image-5.10.0-23-amd64 - Linux 5.10 for 64-bit PCs (signed)

I will switch to another distro with kernel 6 and then check again if after the sound re-work with your script. Without any message from my part within the next week you can consider the issue as closed.

AGAIN : Thank you for your all your advices (much appreciated) - I will re-check them after changing distro.

davidjo commented 11 months ago

Having looked at descriptions of PureOS I dont think this is a good distribution for working with Macs - it seems to be designed for pretty standard PC hardware and Macs have many peculiar hardware features.

davidjo commented 11 months ago

Another thing to check for PureOS. What I dont understand why its not loading snd_hda_codec_cirrus - the module is being built and I dont see build errors in your logs so it should be loaded - hence the issue with the symbolic link. Only thing I can think is the patch_cirrus.c file is not being updated to add the cs8409 definition (I realised I never actually built for 5.10 - ubuntu LTS went from 5.8 to 5.13). Check that your PureOS build had the following line in patch_cirrus.c in the repo build directory in the struct definition for snd_hda_id_cirrus (near bottom of file). HDA_CODEC_ENTRY(0x10138409, "CS8409", patch_cs8409), If this is not there then it will not load snd_hda_codec_cirrus and snd_hda_codec_generic will be loaded by default.