Open vrilutza opened 6 months ago
Thanks for the input - you beat me to it - my linux machines arent listing 24.04 as available yet.
My initial guess is it looks like the new compiler version (gcc-13) has some flag changes (-Wmissing-prototypes) which seems to require a slightly different coding style to the one that has worked - looks like I need to define some prototypes for functions before using them (most of the warnings are for new functions I created). The actual patching of files seems to be OK though - and the messages are only warnings so it did actually create the module - as seen in the contents of listing.
Hello again, sorry for my late reply, yes with a new version (gcc-13) has some flag changes i just make a issue to know about that but the driver is working fine, my dream is to one day try to push upstream. I hope one day try to help you some people from opensource.cirrus.com to push upstream I good start i think is this ticket https://bugzilla.kernel.org/show_bug.cgi?id=110561
Thanks - updates from 23.10 to 24.04 have now been allowed so will be doing this shortly.
kernel has to be 6.5 i would kernel-6.5-unsigned uninstall the hwe kernel all the headers all the sources and what not and let it pull in --lowlatency and --generic id use synaptic for this keywords: linux-generic-6.6.5-unsigned linux-generic-6.6.5-unsigned-low-latency and linux-headers-6.6.5 linux-source-6.6.5 linux-firmware-6.6.5 linux-modules-6.6.5 and you have to untar and unbzip the sources remove the package and reinstall it once the unzipped things are removed because its gonna ask for them and you have to do some kind of a mv kerneldir . command <- meaning mv kernel/ . as the command theres a space between and . and that brings the extracted source into the previous working directory so the script knows how to do it
Ubuntus default kernel is 6.8 for 24.04 which Im running and sound works for me - the issue is the repo works with the default distribution kernel but using a non-default kernel can give problems. The current repo head has fixups so the above warnings have been removed.
Hello, I tried last fresh ubuntu 24.04 on Macbook pro 13 2017
sudo apt install gcc linux-headers-generic make patch wget
sudo apt install build-essential
sudo apt install git
sudo apt install linux-source
first step log :
`vik@vik-MacBookPro14-1:~$ git clone https://github.com/davidjo/snd_hda_macbookpro.git Cloning into 'snd_hda_macbookpro'... remote: Enumerating objects: 345, done. remote: Counting objects: 100% (126/126), done. remote: Compressing objects: 100% (45/45), done. remote: Total 345 (delta 101), reused 93 (delta 81), pack-reused 219 Receiving objects: 100% (345/345), 8.26 MiB | 3.35 MiB/s, done. Resolving deltas: 100% (217/217), done. vik@vik-MacBookPro14-1:~$ cd snd_hda_macbookpro/
vik@vik-MacBookPro14-1:~/snd_hda_macbookpro$ sudo ./install.cirrus.driver.sh Ubuntu linux kernel source not found in /usr/src: /usr/src/linux-source-6.8.0.tar.bz2 assuming the linux kernel source package is not installed please install the linux kernel source package: sudo apt install linux-source-6.8.0 NOTE - This does not work for HWE kernels
vik@vik-MacBookPro14-1:~/snd_hda_macbookpro$ sudo apt install linux-source Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: linux-source-6.8.0 Suggested packages: libncurses-dev | ncurses-dev kernel-package libqt3-dev The following NEW packages will be installed: linux-source linux-source-6.8.0 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 354 MB of archives. After this operation, 357 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ro.archive.ubuntu.com/ubuntu noble/main amd64 linux-source-6.8.0 all 6.8.0-31.31 [354 MB] Get:2 http://ro.archive.ubuntu.com/ubuntu noble/main amd64 linux-source all 6.8.0-31.31 [9,836 B]
Fetched 354 MB in 59s (5,966 kB/s)
debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.) debconf: falling back to frontend: Readline Selecting previously unselected package linux-source-6.8.0. (Reading database ... 151728 files and directories currently installed.) Preparing to unpack .../linux-source-6.8.0_6.8.0-31.31_all.deb ... Unpacking linux-source-6.8.0 (6.8.0-31.31) ... Selecting previously unselected package linux-source. Preparing to unpack .../linux-source_6.8.0-31.31_all.deb ... Unpacking linux-source (6.8.0-31.31) ... Setting up linux-source-6.8.0 (6.8.0-31.31) ... Setting up linux-source (6.8.0-31.31) ...`
and the second log when compile from terminal :