Comment 573 for bug 1958019

Revision history for this message
In , henry.hormaza (henry.hormaza-linux-kernel-bugs) wrote :

well finally found the way to make it work in the legion 7 2021 AMD (16achg6)...

this is a short tutorial to build the kernel with the patch (I've done it on fedora 35):

1) make sure you have all the tools to build the kernel (https://fedoraproject.org/wiki/Building_a_custom_kernel):

* sudo dnf install fedpkg fedora-packager rpmdevtools ncurses-devel pesign grubby git

2) clone the kernel from github and checkout to v5.17 branch:

* git clone https://github.com/torvalds/linux.git
* cd linux
* git checkout v5.17-rc4
* git pull

3) get the patch and install it:

get the patch form this site: (top rigth corner "series" button):
https://patchwork.kernel<email address hidden>/

* git am Support-Spi-in-i2c-multi-instantiate-driver.patch

4) load your old kernel config

* make olddefconfig

5) change configuration at menuconfig as Howard Chu explained in his previous post

* menuconfig -> Device Drivers / X86 Platform Specific Device Drivers / I2C and SPI multi instantiate pseudo device driver ------> Enable this

6) build the kernel

* make -j 16

7) install the kernel

* sudo make module_install
* sudo make install

8) reboot and enjoy internal speakers

(if anyone sees a mistake or something that I did wrong please feel free to correct these steps)

Thank you to everyone who worked on this patch