Kernel 5.19.7 - no Sound with OnePlus 6T (fajita)
Hi, I build a 5.19.7 Kernel for Mobian. Build a mobian-oneplus6-phosh-20220907.boot-fajita_519.img and flashed it to my OnePlus 6T.
System boot
mobian@mobian:~$ uname -a
Linux mobian 5.19.7-sdm845 #1 SMP PREEMPT Wed Sep 7 15:32:45 CEST 2022 aarch64 GNU/Linux
Sound is not working - show in Settings -> Sound only "Dummy Output"
How to get the Sound working ?
But I can see devices - this was not with the Orginal: 5.17 Kernel from Mobian
root@mobian:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: O6T [OnePlus 6T], device 0: MultiMedia1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: O6T [OnePlus 6T], device 1: MultiMedia2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: O6T [OnePlus 6T], device 2: MultiMedia3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: O6T [OnePlus 6T], device 3: VoiceMMode1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@mobian:~# dpkg -l | grep "5.19"
ii linux-headers-5.19.7-sdm845 5.19.7-sdm845-1 arm64 Linux kernel headers for 5.19.7-sdm845 on arm64
ii linux-image-5.19.7-sdm845 5.19.7-sdm845-1 arm64 Linux kernel, version 5.19.7-sdm845
ii linux-libc-dev:arm64 5.19.7-sdm845-1 arm64 Linux support headers for userspace development
dmesg
alsa-info
lsmod
mobian@mobian:~$ lsmod | grep snd
snd_soc_wcd934x 274432 1
snd_soc_wcd_mbhc 28672 1 snd_soc_wcd934x
snd_q6dsp_common 49152 3 q6asm,q6afe_dai,q6adm
regmap_slimbus 16384 2 snd_soc_wcd934x,wcd934x
snd_soc_tfa98xx 151552 1
snd_soc_sdm845 20480 0
snd_soc_rt5663 86016 1 snd_soc_sdm845
snd_soc_rl6231 16384 1 snd_soc_rt5663
snd_soc_qcom_common 16384 1 snd_soc_sdm845
soundwire_bus 81920 2 snd_soc_sdm845,soundwire_qcom
snd_soc_sdm845 20480 0
root@mobian:~# modinfo snd_soc_sdm845
filename: /lib/modules/5.19.7-sdm845/kernel/sound/soc/qcom/snd-soc-sdm845.ko
license: GPL v2
description: sdm845 ASoC Machine Driver
alias: of:N*T*Clenovo,yoga-c630-sndcardC*
alias: of:N*T*Clenovo,yoga-c630-sndcard
alias: of:N*T*Cqcom,db845c-sndcardC*
alias: of:N*T*Cqcom,db845c-sndcard
alias: of:N*T*Cqcom,sdm845-sndcardC*
alias: of:N*T*Cqcom,sdm845-sndcard
depends: snd-soc-qcom-common,soundwire-bus,snd-soc-rt5663
intree: Y
name: snd_soc_sdm845
vermagic: 5.19.7-sdm845 SMP preempt mod_unload aarch64
Here is what I did:
git clone https://gitlab.com/mobian1/mobian-recipes/
mkdir -p mobian/linux
git clone https://gitlab.com/sdm845-mainline/linux
cd mobian/linux
make distclean
make ARCH=arm64 defconfig sdm845.config
make -j$(nproc) ARCH=arm64 KBUILD_DEBARCH=arm64
KDEB_CHANGELOG_DIST=mobian CROSS_COMPILE=aarch64-linux-gnu- deb-pkg
copy files with SCP to the OnePlus with running Mobian
linux-headers-5.19.7-sdm845_5.19.7-sdm845-1_arm64.deb
linux-image-5.19.7-sdm845_5.19.7-sdm845-1_arm64.deb
linux-libc-dev_5.19.7-sdm845-1_arm64.deb
ssh mobian@<IP>
sudo su -
dpkg -i linux-headers-5.19.7-sdm845_5.19.7-sdm845-1_arm64.deb
dpkg -i linux-image-5.19.7-sdm845_5.19.7-sdm845-1_arm64.deb
dpkg -i linux-libc-dev_5.19.7-sdm845-1_arm64.deb
cd /boot
scp vm* user@<ip-pc>
scp init* user@<ip-pc>
mkdir ~/mobian/linux/new
cp vm* ~/mobian/linux/new
cp init* ~/mobian/linux/new
cd ~/mobian/linux/new
mv ini* initrd.img
mv vm* zImage
bootimg.cfg from ~/mobian-recipes/bootimg.cfg
abootimg --create bootimg -k zImage -r initrd.img -f bootimg.cfg
mv bootimg mobian-oneplus6-phosh-20220907.boot-fajita_519.img
fastboot flash boot fastboot flash boot mobian-oneplus6-phosh-20220907.boot-fajita_519.img
Edited by d s