Jul 4, 2024, 11:15 PM

I have recently been trying to get the CM5 V10 Laptop to work with Joshua Reik's Linux 6.1 kernel and create Armbian images for it, the fork I specifically used is at https://github.com/hbiyik/linux-rockchip. I currently got every device to work except sound. I noticed that the es8316 driver you have is quite different when it comes to what is on mainline linux and the 6.1 Panthor kernels so I tried to compile it out of tree but with weak results. There is no audio that comes out of the speakers, microphone or the headphones. Speakers and headphones show the audio running in gnome settings but no audio is played. Plugging in the headphones produces static, es8316_enable_spk(es8316, false); or es8316_enable_spk(es8316, true); is the cuprit. Despite that no audio comes from either output.

Here is the grepped out dmesg:

yusuf@coolpi-cm5-notebook:~/es8316/es8316-cm5$ dmesg | grep es8316
[   83.814734] platform es8316-sound: deferred probe pending /* Pre-baked in kernel driver */
[  127.278348] es8316: loading out-of-tree module taints kernel. /* Out of tree module loads */
[  127.280379] es8316 7-0010: Can not read property hp_det_gpio
[  127.280391] es8316 7-0010: Failed to get IRQ 0: -22

Headset also gets dumped to dmesg:

[ 2228.642645] (headset in is high level)headset status is in
[ 2230.655991] (headset in is high level)headset status is out
[ 2231.435910] (headset in is high level)headset status is in
[ 2234.359234] (headset in is high level)headset status is out

Perhaps there are userspace considerations or kernelspace ones I missed, I have tried to fix this since the beggining of summer break to no avail. Any help from jack would be appreciated. Screenshot from 2024-07-04 16-14-38.png