leifliddy / macbook12-audio-driver

WIP audio driver for the cs4208 codec found in the 12" MacBook (MacBook9,1, MacBook10,1).
84 stars 9 forks source link

Error when installing #23

Closed ieatbeansbruh closed 11 months ago

ieatbeansbruh commented 11 months ago

root@colin:/home/colin/snd_hda_macbookpro# ./install.cirrus.driver.sh linux-source-5.19.0/sound/pci/hda/ linux-source-5.19.0/sound/pci/hda/patch_si3054.c linux-source-5.19.0/sound/pci/hda/hda_beep.h linux-source-5.19.0/sound/pci/hda/thinkpad_helper.c linux-source-5.19.0/sound/pci/hda/patch_cmedia.c linux-source-5.19.0/sound/pci/hda/hda_tegra.c linux-source-5.19.0/sound/pci/hda/hda_intel.h linux-source-5.19.0/sound/pci/hda/hda_eld.c linux-source-5.19.0/sound/pci/hda/Makefile linux-source-5.19.0/sound/pci/hda/cs35l41_hda.c linux-source-5.19.0/sound/pci/hda/Kconfig linux-source-5.19.0/sound/pci/hda/hda_generic.c linux-source-5.19.0/sound/pci/hda/hda_local.h linux-source-5.19.0/sound/pci/hda/hda_generic.h linux-source-5.19.0/sound/pci/hda/hda_jack.h linux-source-5.19.0/sound/pci/hda/cs35l41_hda.h linux-source-5.19.0/sound/pci/hda/hda_auto_parser.h linux-source-5.19.0/sound/pci/hda/ca0132_regs.h linux-source-5.19.0/sound/pci/hda/cs35l41_hda_spi.c linux-source-5.19.0/sound/pci/hda/patch_conexant.c linux-source-5.19.0/sound/pci/hda/patch_ca0110.c linux-source-5.19.0/sound/pci/hda/hda_auto_parser.c linux-source-5.19.0/sound/pci/hda/cs35l41_hda_i2c.c linux-source-5.19.0/sound/pci/hda/hda_bind.c linux-source-5.19.0/sound/pci/hda/hda_intel.c linux-source-5.19.0/sound/pci/hda/hda_proc.c linux-source-5.19.0/sound/pci/hda/hda_jack.c linux-source-5.19.0/sound/pci/hda/patch_via.c linux-source-5.19.0/sound/pci/hda/patch_sigmatel.c linux-source-5.19.0/sound/pci/hda/hda_intel_trace.h linux-source-5.19.0/sound/pci/hda/hda_cs_dsp_ctl.c linux-source-5.19.0/sound/pci/hda/hda_controller_trace.h linux-source-5.19.0/sound/pci/hda/ideapad_s740_helper.c linux-source-5.19.0/sound/pci/hda/hda_beep.c linux-source-5.19.0/sound/pci/hda/hda_component.h linux-source-5.19.0/sound/pci/hda/hda_cs_dsp_ctl.h linux-source-5.19.0/sound/pci/hda/hda_sysfs.c linux-source-5.19.0/sound/pci/hda/patch_realtek.c linux-source-5.19.0/sound/pci/hda/patch_hdmi.c linux-source-5.19.0/sound/pci/hda/hda_hwdep.c linux-source-5.19.0/sound/pci/hda/hda_controller.c linux-source-5.19.0/sound/pci/hda/patch_cs8409-tables.c linux-source-5.19.0/sound/pci/hda/patch_cs8409.h linux-source-5.19.0/sound/pci/hda/patch_cs8409.c linux-source-5.19.0/sound/pci/hda/hda_controller.h linux-source-5.19.0/sound/pci/hda/hda_codec.c linux-source-5.19.0/sound/pci/hda/patch_analog.c linux-source-5.19.0/sound/pci/hda/patch_ca0132.c linux-source-5.19.0/sound/pci/hda/patch_cirrus.c linux-source-5.19.0/sound/pci/hda/hp_x360_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/5.19.0-50-generic/build CFLAGS_MODULE="-DAPPLE_PINSENSE_FIXUP -DAPPLE_CODECS -DCONFIG_SND_HDA_RECONFIG=1 -Wno-unused-variable -Wno-unused-function" M=/home/colin/snd_hda_macbookpro/build/hda-5.19.0 modules make[1]: Entering directory '/usr/src/linux-headers-5.19.0-50-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 CC [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/patch_cs8409.o In file included from /home/colin/snd_hda_macbookpro/build/hda-5.19.0/patch_cs8409.c:1488: /home/colin/snd_hda_macbookpro/build/hda-5.19.0/patch_cirrus_apple.h: In function ‘cs_8409_apple_boot_init’: /home/colin/snd_hda_macbookpro/build/hda-5.19.0/patch_cirrus_apple.h:1193:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1193 | hinfo = spec->gen.stream_analog_playback; | ^ CC [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/patch_cs8409-tables.o LD [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/snd-hda-codec-cs8409.o MODPOST /home/colin/snd_hda_macbookpro/build/hda-5.19.0/Module.symvers CC [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/snd-hda-codec-cs8409.mod.o LD [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/snd-hda-codec-cs8409.ko BTF [M] /home/colin/snd_hda_macbookpro/build/hda-5.19.0/snd-hda-codec-cs8409.ko Skipping BTF generation for /home/colin/snd_hda_macbookpro/build/hda-5.19.0/snd-hda-codec-cs8409.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-50-generic'

cp snd-hda-codec-cs8409.ko /lib/modules/5.19.0-50-generic/updates

make INSTALL_MOD_DIR=updates -C /lib/modules/5.19.0-50-generic/build M=/home/colin/snd_hda_macbookpro/build/hda-5.19.0 CONFIG_MODULE_SIG_ALL=n modules_install make[1]: Entering directory '/usr/src/linux-headers-5.19.0-50-generic' INSTALL /lib/modules/5.19.0-50-generic/updates/snd-hda-codec-cs8409.ko DEPMOD /lib/modules/5.19.0-50-generic Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-50-generic' depmod -a

contents of /lib/modules/5.19.0-50-generic/updates total 1836 -rw-r--r-- 1 root root 308344 Aug 3 22:58 hci_uart.ko -rw-r--r-- 1 root root 1565768 Aug 4 00:03 snd-hda-codec-cs8409.ko

leifliddy commented 11 months ago

Why are you posting that here? That's not my project. I don't have a cs8409 driver.