Trying to patch kernel on Treeya stoney ridge for audio support

This is my third fresh linux install trying to make audio work,

I am following Replace stoney-kernel with newer kernel built locally instructions

(thanks for your amazing work guys)

The thing is after

git apply liquorix-stoney.patch

I get

liquorix-stoney.patch:58: trailing whitespace.

liquorix-stoney.patch:68: trailing whitespace.

liquorix-stoney.patch:70: space before tab in indent.
DAILINK_COMP_ARRAY(COMP_CODEC("i2c-DLGS7219:00", "da7219-hifi")));
liquorix-stoney.patch:72: space before tab in indent.
DAILINK_COMP_ARRAY(COMP_CODEC("ADAU7002:00", "adau7002-hifi")));
liquorix-stoney.patch:73: trailing whitespace.

warning: squelched 59 whitespace errors
warning: 64 lines add whitespace errors.

Should I just keep going? Or something is wrong?

I am on

Linux jose-treeya 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64 GNU/Linux 

I also don’ t understand if I should apply the 3 patches linked at the end of the post or if the last one not (it is a raw file, not a .patch file) because it says “ making sure you are not a bot”

thanks!!

Anybody?

As of now, using the latest kernel linux-6.17.7 only requires one patch.

<patch_url>: Making sure you're not a bot!

you can run on chromebook or another more powerful machine also running Debian 13, I followed these steps:

cd ~
mkdir -p src
cd src
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.17.7.tar.gz
tar zxvf linux-6.17.7.tar.gz
cd linux-6.17.7
wget -O amd-gpu.patch <replace_with_the_patch_url_at_the_top>
patch -p1 < amd-gpu.patch
Expected output: patching file drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c

I used a .config file from my Acer Chromebook Spin 311 (R721T) running Debian 13.

you can use these two in Debain13
cp /boot/config-6.12.43+deb13-amd64 ~/src/linux-6.17.7/.config
or
cp /boot/config-6.12.48+deb13-amd64 ~/src/linux-6.17.7/.config

make olddefconfig

I also generate a minimal kernel configuration. (make sure you connect every devices on before running it)

make localmodconfig

Make sure you placed the .config file into ~/src/linux-6.17.7 and compiled the kernel.

make -j$(nproc) bindeb-pkg KDEB_PKGVERSION=1 LOCALVERSION=-chromebook KDEB_DEBUG=0

You will get some .deb files in ~/src

install these two on your Chromebook.

linux-headers-6.17.7-chromebook_1_amd64.deb
linux-image-6.17.7-chromebook_1_amd64.deb

The audio worked perfectly in my chromebook.