codepayne / linux-sound-huawei

linux kernel for Huawei matebook AMD sound support
Other
86 stars 3 forks source link

No sound on 6.7rc5 and Matebook AMD (HUAWEI BOM-WXX9 M1010) #28

Open andreaconsole opened 7 months ago

andreaconsole commented 7 months ago

Hi @codepayne , I've just installed 6.7rc5 on Ubuntu 23.10 (6.7.0-060700rc5-generic (64-bit); HUAWEI BOM-WXX9 M1010). I took a look at the wiki and at this page to configure alsamixer and run the command you suggested as root (echo -1 > /sys/bus/pci/drivers/snd_acp_pci/0000:03:00.5/power/autosuspend_delay_ms), but the pc is still silent. Any hints? Thanks a lot! Free beer for you when you come to Rome!

Attached Screenshot_20231215_155809 Screenshot_20231215_155735 dmesg.txt http://alsa-project.org/db/?f=bb9c6b623e1b0015506f194ec7f76783cc7120b0

codepayne commented 6 months ago

@andreaconsole What is weird is that according to pipewire logs and alsactl info output you have two cards:

Now the /sys/class/sound output tells me you actually have card0 and card1 which is how it's supposed to be. I don't understand why alsactl skips card 1. Looking into the pipewire logs I can see it tries to open card0 and card2, and of course fails to open card2 since it doesn't exist on your system.

What is the output of:

aplay -l

Also what is the output of:

ps aux
codepayne commented 6 months ago

@saber716rus Please follow the instructions from this post and attach the logs from pipewire: https://github.com/codepayne/linux-sound-huawei/issues/28#issuecomment-1872571237

andreaconsole commented 6 months ago

aplay -l List of PLAYBACK Hardware Devices card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: acp3xes83xx [acp3x-es83xx], device 0: (null) ES8316 HiFi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0

ps aux attached: psaux.txt

codepayne commented 6 months ago

@andreaconsole Do you have the file /usr/bin/pulseaudio present on your system? If yes can you run it instead of pipewire? First you need to disable pipewire:

systemctl --user --now mask pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

systemctl --user --now disable pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

systemctl --user --now stop pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

Then start pulseaudio manually:

pulseaudio -vvv 2>pulseaudio-logs.txt

Then upload the pulseaudio logs here.

To enable pipewire back, first stop pulseaudio and then run these commands:

systemctl --user --now unmask pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

systemctl --user --now enable pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

systemctl --user --now start pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service
andreaconsole commented 6 months ago

I had to install pulseaudio as it was not there. Attached the output. While I was using pulseaudio, there was no audio output available beside the dummy one. pulseaudio-logs.txt

codepayne commented 6 months ago

@andreaconsole Where did you get the rc kernel you are currently using?

saber716rus commented 6 months ago

@saber716rus Please follow the instructions from this post and attach the logs from pipewire: #28 (comment)

I did as you asked. pipewire-logs.txt

saber716rus commented 6 months ago

I looked at it and decided to make a log for pulseaudio pulseaudio-logs.txt

saber716rus commented 6 months ago

saber716rus@saber716rus-M1010 ~> aplay -l Список PLAYBACK устройств карта 0: Generic [HD-Audio Generic], устройство 3: HDMI 0 [HDMI 0] Подустройства: 1/1 Подустройство №0: subdevice #0 карта 1: acp3xes83xx [acp3x-es83xx], устройство 0: (null) ES8316 HiFi-0 [] Подустройства: 1/1 Подустройство №0: subdevice #0 saber716rus@saber716rus-M1010 ~> ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 6.7 0.0 169324 12656 ? Ss 09:49 0:01 /sbin/init sp root 2 0.0 0.0 0 0 ? S 09:49 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S 09:49 0:00 [pool_workque root 4 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-rc root 5 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-rc root 6 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-sl root 7 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ne root 8 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/0:0- root 9 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/0:1- root 10 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/0:0H root 11 2.4 0.0 0 0 ? I 09:49 0:00 [kworker/u32: root 12 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-mm root 13 0.0 0.0 0 0 ? I 09:49 0:00 [rcu_tasks_kt root 14 0.0 0.0 0 0 ? I 09:49 0:00 [rcu_tasks_ru root 15 0.0 0.0 0 0 ? I 09:49 0:00 [rcu_tasks_tr root 16 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/0] root 17 0.1 0.0 0 0 ? I 09:49 0:00 [rcu_preempt] root 18 0.0 0.0 0 0 ? S 09:49 0:00 [migration/0] root 19 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 20 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/0] root 21 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/2] root 22 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 23 1.1 0.0 0 0 ? S 09:49 0:00 [migration/2] root 24 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/2] root 25 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/2:0- root 26 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/2:0H root 27 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/4] root 28 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 29 1.1 0.0 0 0 ? S 09:49 0:00 [migration/4] root 30 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/4] root 31 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/4:0- root 32 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/4:0H root 33 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/6] root 34 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 35 1.1 0.0 0 0 ? S 09:49 0:00 [migration/6] root 36 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/6] root 37 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/6:0- root 38 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/6:0H root 39 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/8] root 40 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 41 0.0 0.0 0 0 ? S 09:49 0:00 [migration/8] root 42 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/8] root 43 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/8:0- root 44 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/8:0H root 45 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/10] root 46 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 47 1.1 0.0 0 0 ? S 09:49 0:00 [migration/10 root 48 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/10 root 49 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/10:0 root 50 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/10:0 root 51 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/12] root 52 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 53 1.1 0.0 0 0 ? S 09:49 0:00 [migration/12 root 54 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/12 root 55 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/12:0 root 56 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/12:0 root 57 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/14] root 58 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 59 1.1 0.0 0 0 ? S 09:49 0:00 [migration/14 root 60 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/14 root 61 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/14:0 root 62 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/14:0 root 63 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/1] root 64 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 65 1.2 0.0 0 0 ? S 09:49 0:00 [migration/1] root 66 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/1] root 67 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/1:0- root 68 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/1:0H root 69 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/3] root 70 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 71 1.2 0.0 0 0 ? S 09:49 0:00 [migration/3] root 72 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/3] root 73 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/3:0- root 74 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/3:0H root 75 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/5] root 76 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 77 1.2 0.0 0 0 ? S 09:49 0:00 [migration/5] root 78 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/5] root 79 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/5:0- root 80 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/5:0H root 81 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/7] root 82 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 83 1.2 0.0 0 0 ? S 09:49 0:00 [migration/7] root 84 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/7] root 85 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/7:0- root 86 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/7:0H root 87 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/9] root 88 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 89 1.2 0.0 0 0 ? S 09:49 0:00 [migration/9] root 90 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/9] root 91 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/9:0- root 92 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/9:0H root 93 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/11] root 94 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 95 1.2 0.0 0 0 ? S 09:49 0:00 [migration/11 root 96 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/11 root 97 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/11:0 root 98 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/11:0 root 99 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/13] root 100 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 101 1.2 0.0 0 0 ? S 09:49 0:00 [migration/13 root 102 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/13 root 103 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/13:0 root 104 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/13:0 root 105 0.0 0.0 0 0 ? S 09:49 0:00 [cpuhp/15] root 106 0.0 0.0 0 0 ? S 09:49 0:00 [idle_inject/ root 107 1.2 0.0 0 0 ? S 09:49 0:00 [migration/15 root 108 0.0 0.0 0 0 ? S 09:49 0:00 [ksoftirqd/15 root 109 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/15:0 root 110 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/15:0 root 111 0.6 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 112 0.5 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 113 0.0 0.0 0 0 ? S 09:49 0:00 [kdevtmpfs] root 114 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-in root 115 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 116 0.0 0.0 0 0 ? S 09:49 0:00 [kauditd] root 117 0.0 0.0 0 0 ? S 09:49 0:00 [khungtaskd] root 118 0.0 0.0 0 0 ? S 09:49 0:00 [oom_reaper] root 119 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 120 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-wr root 121 0.0 0.0 0 0 ? S 09:49 0:00 [kcompactd0] root 122 0.0 0.0 0 0 ? SN 09:49 0:00 [ksmd] root 123 0.0 0.0 0 0 ? SN 09:49 0:00 [khugepaged] root 124 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ki root 125 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-kb root 126 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bl root 127 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/1:1- root 128 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/4:1- root 129 0.1 0.0 0 0 ? I 09:49 0:00 [kworker/u32: root 130 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-tp root 131 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-at root 132 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/2:1] root 133 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-md root 134 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-md root 135 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ed root 136 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u32: root 137 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-de root 138 0.0 0.0 0 0 ? S 09:49 0:00 [watchdogd] root 139 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/0:1H root 140 0.0 0.0 0 0 ? S 09:49 0:00 [irq/25-AMD-V root 141 0.0 0.0 0 0 ? S 09:49 0:00 [irq/26-AMD-V root 142 0.0 0.0 0 0 ? S 09:49 0:00 [irq/27-AMD-V root 143 0.0 0.0 0 0 ? S 09:49 0:00 [kswapd0] root 144 0.0 0.0 0 0 ? S 09:49 0:00 [ecryptfs-kth root 145 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/3:1- root 146 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-kt root 147 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/5:1- root 148 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/8:1- root 149 0.1 0.0 0 0 ? I 09:49 0:00 [kworker/6:1- root 150 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/7:1- root 151 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/9:1- root 152 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/10:1 root 153 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/11:1 root 154 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/12:1 root 155 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/13:1 root 156 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/14:1 root 157 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/15:1 root 158 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ac root 159 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ml root 160 0.1 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 161 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ip root 163 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/12:1 root 169 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ks root 171 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u35: root 172 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u36: root 173 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u37: root 186 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-ch root 187 0.0 0.0 0 0 ? S 09:49 0:00 [irq/28-ACPI: root 188 0.0 0.0 0 0 ? S 09:49 0:00 [irq/29-ACPI: root 189 0.0 0.0 0 0 ? S 09:49 0:00 [irq/30-ACPI: root 190 0.0 0.0 0 0 ? S 09:49 0:00 [irq/31-ACPI: root 191 0.0 0.0 0 0 ? S 09:49 0:00 [irq/32-ACPI: root 192 0.0 0.0 0 0 ? S 09:49 0:00 [irq/33-ACPI: root 193 0.0 0.0 0 0 ? S 09:49 0:00 [irq/34-ACPI: root 194 0.0 0.0 0 0 ? S 09:49 0:00 [irq/35-ACPI: root 221 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/11:1 root 239 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/6:1H root 240 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/14:1 root 241 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/5:1H root 242 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/9:1H root 243 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/13:1 root 244 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/4:1H root 246 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/8:1H root 251 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/3:1H root 253 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/7:1H root 256 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/2:1H root 257 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/15:1 root 259 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/10:1 root 260 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/1:1H root 268 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/2:2- root 277 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-nv root 278 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-nv root 280 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-nv root 281 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-nv root 294 1.0 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 295 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/10:2 root 296 0.0 0.0 0 0 ? S 09:49 0:00 [irq/74-ELAN2 root 297 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/1:2- root 298 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/13:2 root 299 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/13:3 root 300 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/7:2- root 306 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/1:3- root 324 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 325 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 326 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 327 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 328 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 329 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 330 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 331 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 332 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 333 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 334 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 335 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 336 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-bt root 337 0.0 0.0 0 0 ? S 09:49 0:00 [btrfs-cleane root 338 0.0 0.0 0 0 ? S 09:49 0:00 [btrfs-transa root 350 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/15:2 root 375 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 376 0.3 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 377 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 381 0.4 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 386 3.7 0.0 107624 15348 ? S<s 09:49 0:00 /lib/systemd/ root 444 1.8 0.0 29684 8064 ? Ss 09:49 0:00 /lib/systemd/ root 450 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 451 0.0 0.0 0 0 ? S 09:49 0:00 [irq/75-es831 root 468 0.7 0.1 45792 21988 ? S 09:49 0:00 /usr/sbin/ply root 484 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 485 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 486 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 497 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 513 0.3 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 514 0.6 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 515 0.6 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 516 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 517 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u33: root 527 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/4:2- root 533 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/14:2 root 538 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-cr root 542 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-cf root 581 0.0 0.0 31020 6912 ? Ss 09:49 0:00 /lib/systemd/ root 585 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u35: root 586 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u35: root 589 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/8:2- root 595 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/7:3] root 596 0.1 0.0 0 0 ? S 09:49 0:00 [irq/82-rtw88 systemd+ 714 0.4 0.0 17068 7424 ? Ss 09:49 0:00 /lib/systemd/ systemd+ 725 0.5 0.0 21264 12800 ? Ss 09:49 0:00 /lib/systemd/ systemd+ 728 0.3 0.0 90556 7424 ? Ssl 09:49 0:00 /lib/systemd/ root 740 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-am root 741 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-tt avahi 744 0.2 0.0 8568 4224 ? Ss 09:49 0:00 avahi-daemon: root 745 0.3 0.0 11004 5376 ? Ss 09:49 0:00 /usr/lib/blue message+ 746 1.8 0.0 11888 5888 ? Ss 09:49 0:00 @dbus-daemon root 753 0.1 0.0 82992 4096 ? Ssl 09:49 0:00 /usr/sbin/irq polkitd 758 1.7 0.0 384508 10376 ? Ssl 09:49 0:00 /usr/lib/polk root 761 0.3 0.0 322392 7808 ? Ssl 09:49 0:00 /usr/libexec/ root 769 2.8 0.2 2803700 34864 ? Ssl 09:49 0:00 /usr/lib/snap root 774 0.9 0.0 322284 7636 ? Ssl 09:49 0:00 /usr/libexec/ root 775 0.0 0.0 18060 2688 ? Ss 09:49 0:00 /usr/sbin/cro root 777 0.5 0.0 318620 6912 ? Ssl 09:49 0:00 /usr/libexec/ root 778 1.1 0.0 50356 8452 ? Ss 09:49 0:00 /lib/systemd/ root 780 0.9 0.0 469452 13016 ? Ssl 09:49 0:00 /usr/libexec/ avahi 792 0.0 0.0 8376 1292 ? S 09:49 0:00 avahi-daemon: root 793 5.2 0.1 346080 19256 ? Ssl 09:49 0:00 /usr/sbin/Net root 799 0.7 0.0 17872 10880 ? Ss 09:49 0:00 /sbin/wpa_sup root 808 0.6 0.0 16792 7296 ? Ss 09:49 0:00 /lib/systemd/ root 826 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/3:2- root 830 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/8:3- syslog 838 0.6 0.0 222444 5632 ? Ssl 09:49 0:00 /usr/sbin/rsy root 898 0.4 0.0 391616 12260 ? Ssl 09:49 0:00 /usr/sbin/Mod root 899 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/0:2- root 900 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/0:3] root 934 0.1 0.0 16788 7168 ? Ss 09:49 0:00 /lib/systemd/ root 956 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-am root 957 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-am root 958 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/R-dm root 964 0.0 0.0 0 0 ? S 09:49 0:00 [card0-crtc0] root 965 0.0 0.0 0 0 ? S 09:49 0:00 [card0-crtc1] root 966 0.0 0.0 0 0 ? S 09:49 0:00 [card0-crtc2] root 967 0.0 0.0 0 0 ? S 09:49 0:00 [card0-crtc3] root 968 0.0 0.0 0 0 ? S 09:49 0:00 [gfx_low] root 969 0.0 0.0 0 0 ? S 09:49 0:00 [gfx_high] root 970 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.0.0] root 971 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.1.0] root 972 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.2.0] root 973 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.3.0] root 974 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.0.1] root 975 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.1.1] root 976 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.2.1] root 977 0.0 0.0 0 0 ? S 09:49 0:00 [comp_1.3.1] root 978 0.0 0.0 0 0 ? S 09:49 0:00 [sdma0] root 979 0.0 0.0 0 0 ? S 09:49 0:00 [vcn_dec] root 980 0.0 0.0 0 0 ? S 09:49 0:00 [vcn_enc0] root 981 0.0 0.0 0 0 ? S 09:49 0:00 [vcn_enc1] root 982 0.0 0.0 0 0 ? S 09:49 0:00 [jpeg_dec] root 989 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/6:2- root 1115 0.1 0.0 46544 11520 ? Ss 09:49 0:00 /usr/sbin/cup root 1120 0.3 0.1 122036 22760 ? Ssl 09:49 0:00 /usr/bin/pyth root 1124 0.0 0.0 2808 1280 ? Ss 09:49 0:00 /usr/bin/plym root 1129 0.1 0.0 323396 9088 ? Ssl 09:49 0:00 /usr/sbin/gdm root 1136 0.1 0.0 250948 9856 ? Sl 09:49 0:00 gdm-session-w saber71+ 1142 4.8 0.0 20560 11904 ? Ss 09:49 0:00 /lib/systemd/ saber71+ 1143 0.0 0.0 170892 6536 ? S 09:49 0:00 (sd-pam) root 1148 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/5:2- saber71+ 1150 0.3 0.0 127844 13952 ? S<sl 09:49 0:00 /usr/bin/pipe saber71+ 1151 0.0 0.0 105528 5376 ? Ssl 09:49 0:00 /usr/bin/pipe saber71+ 1153 0.0 0.0 1677184 11276 ? Ssl 09:49 0:00 /usr/bin/ubun saber71+ 1154 1.3 0.1 423340 21568 ? S<sl 09:49 0:00 /usr/bin/wire saber71+ 1157 0.0 0.0 111908 8448 ? S<sl 09:49 0:00 /usr/bin/pipe saber71+ 1163 0.3 0.0 325344 10240 ? Ssl 09:49 0:00 /usr/bin/gnom saber71+ 1164 3.0 0.0 10616 5632 ? Ss 09:49 0:00 /usr/bin/dbus rtkit 1174 0.0 0.0 22868 3072 ? SNsl 09:49 0:00 /usr/libexec/ saber71+ 1189 0.0 0.0 244540 6272 tty2 Ssl+ 09:49 0:00 /usr/libexec/ saber71+ 1205 0.0 0.0 96916 7040 tty2 S+ 09:49 0:00 -/usr/bin/fis saber71+ 1212 0.3 0.0 545560 7296 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1227 0.0 0.0 318476 6400 ? Ssl 09:49 0:00 /usr/libexec/ root 1236 0.0 0.0 2676 1792 ? Ss 09:49 0:00 fusermount3 - saber71+ 1237 0.2 0.1 307204 16256 tty2 Sl+ 09:49 0:00 /usr/libexec/ root 1256 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/12:2 saber71+ 1261 0.0 0.0 162572 6656 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1262 0.0 0.0 100156 5760 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1264 0.0 0.0 8324 5120 ? Ss 09:49 0:00 ssh-agent -D saber71+ 1274 0.1 0.0 323196 7936 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1281 0.0 0.0 468760 7168 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1293 0.9 0.1 529536 18048 ? Ssl 09:49 0:00 /usr/libexec/ root 1304 0.0 0.0 0 0 ? S< 09:49 0:00 [krfcommd] saber71+ 1315 0.0 0.0 382884 7680 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1316 32.1 1.9 5004448 305516 ? Ssl 09:49 0:04 /usr/bin/gnom saber71+ 1325 0.0 0.0 9372 4736 ? S 09:49 0:00 /usr/bin/dbus saber71+ 1404 0.0 0.0 235984 7552 ? Sl 09:49 0:00 /usr/libexec/ colord 1405 0.7 0.0 328040 13492 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1435 0.2 0.1 655264 17280 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1442 0.9 0.2 585628 42624 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1446 0.0 0.0 230096 5632 ? Ssl 09:49 0:00 /usr/libexec/ root 1448 0.2 0.1 384516 20544 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1452 0.5 0.1 2736956 27076 ? Sl 09:49 0:00 /usr/bin/gjs root 1454 0.8 0.0 325760 9344 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1469 0.8 0.0 397896 12288 ? Ssl 09:49 0:00 /usr/bin/ibus saber71+ 1471 0.0 0.0 392664 6656 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1485 0.6 0.1 422464 19456 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1489 0.0 0.0 441216 12416 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1494 0.0 0.0 467888 8064 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1498 0.6 0.1 420900 18560 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1499 0.8 0.1 751516 24448 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1502 0.8 0.1 533464 22952 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1507 0.1 0.0 332708 11264 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1512 0.0 0.0 540028 6656 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1515 0.0 0.0 318512 6272 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1517 0.2 0.0 549028 10624 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1518 0.0 0.0 394960 8192 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1524 0.0 0.0 402784 10112 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1532 0.6 0.1 421608 19492 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1552 0.2 0.0 398368 10496 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1574 0.0 0.0 305448 7424 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1595 0.0 0.0 319524 7680 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1600 1.7 0.4 890876 63428 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1603 12.1 0.1 429780 28080 ? Sl 09:49 0:01 /usr/libexec/ saber71+ 1608 0.1 0.0 319448 7296 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1647 0.0 0.0 318672 6528 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1660 0.0 0.0 319624 6912 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1668 0.3 0.2 651296 36864 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1673 0.0 0.0 318676 6528 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1681 0.6 0.1 1383848 24960 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1687 0.0 0.0 398204 9216 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1697 0.0 0.0 398156 8064 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1710 0.4 0.1 769292 30720 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1732 0.1 0.0 245828 7808 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1733 0.1 0.0 425320 15104 ? Sl 09:49 0:00 /usr/libexec/ geoclue 1785 1.0 0.0 1283608 13136 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1799 0.1 0.0 618556 8960 ? Sl 09:49 0:00 /usr/libexec/ saber71+ 1823 0.5 0.0 632748 13952 ? Ssl 09:49 0:00 /usr/libexec/ root 1838 0.5 0.0 16792 7168 ? Ss 09:49 0:00 /lib/systemd/ saber71+ 1842 3.7 0.5 724376 91420 ? SNsl 09:49 0:00 /usr/libexec/ saber71+ 1844 1.4 0.2 849544 41508 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1876 0.4 0.1 2810688 27248 ? Sl 09:49 0:00 /usr/bin/gjs saber71+ 1903 3.9 0.4 3036588 65728 ? Sl 09:49 0:00 gjs /usr/shar saber71+ 1918 0.6 0.0 76252 14080 ? Ss 09:49 0:00 /snap/snapd-d saber71+ 1920 1.1 0.1 426640 25140 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 1975 0.0 0.0 245168 6528 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 2006 1.5 0.1 306380 22064 ? Sl 09:49 0:00 /snap/snapd-d root 2031 0.0 0.0 0 0 ? I 09:49 0:00 [kworker/u34: root 2071 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u36: root 2078 0.0 0.0 0 0 ? I< 09:49 0:00 [kworker/u37: cups-br+ 2084 0.1 0.1 266508 19200 ? Ssl 09:49 0:00 /usr/sbin/cup kernoops 2102 0.0 0.0 12672 2324 ? Ss 09:49 0:00 /usr/sbin/ker kernoops 2105 0.0 0.0 12672 2304 ? Ss 09:49 0:00 /usr/sbin/ker saber71+ 2130 6.1 0.3 714940 55900 ? Ssl 09:49 0:00 /usr/libexec/ saber71+ 2162 0.6 0.0 171676 7936 pts/0 Ssl 09:49 0:00 fish saber71+ 2190 0.0 0.0 22732 5120 pts/0 R+ 09:49 0:00 ps aux saber716rus@saber716rus-M1010 ~>

saber716rus commented 6 months ago

Also @codepayne pay attention to this comment. https://github.com/codepayne/linux-sound-huawei/issues/27#issuecomment-1872383641

codepayne commented 6 months ago

@saber716rus Please follow the instructions from this post and attach the logs from pipewire: #28 (comment)

I did as you asked. pipewire-logs.txt

Your pipewire logs are too short, check @andreaconsole pipewire logs when log level 5 is activated. His logs are very long, yours are too short. Check what you did and maybe try again

saber716rus commented 6 months ago

@saber716rus Please follow the instructions from this post and attach the logs from pipewire: #28 (comment)

I did as you asked. pipewire-logs.txt

Your pipewire logs are too short, check @andreaconsole pipewire logs when log level 5 is activated. His logs are very long, yours are too short. Check what you did and maybe try again

I understood what was going on, I need to comment out the line. Then the logic turns out to be normal. pipewire-logs.txt

andreaconsole commented 6 months ago

@andreaconsole Where did you get the rc kernel you are currently using?

@codepayne I downloaded it from the Ubuntu website: https://kernel.ubuntu.com/mainline/v6.7-rc5/

codepayne commented 6 months ago

@andreaconsole What are the commands you used to install the kernel?

codepayne commented 6 months ago

@andreaconsole @saber716rus Can you paste the output of command:

lspci -nnk
saber716rus commented 6 months ago

`saber716rus@saber716rus-M1010 ~> lspci -nnk 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630] Subsystem: QUANTA Computer Inc Renoir/Cezanne Root Complex [152d:1365] 00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631] Subsystem: QUANTA Computer Inc Renoir/Cezanne IOMMU [152d:1365] 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634] Subsystem: QUANTA Computer Inc Renoir/Cezanne PCIe GPP Bridge [152d:1365] Kernel driver in use: pcieport 00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634] Subsystem: QUANTA Computer Inc Renoir/Cezanne PCIe GPP Bridge [152d:1365] Kernel driver in use: pcieport 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635] Subsystem: QUANTA Computer Inc Renoir Internal PCIe GPP Bridge to Bus [152d:1365] Kernel driver in use: pcieport 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51) Subsystem: QUANTA Computer Inc FCH SMBus Controller [152d:1365] Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4, sp5100_tco 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51) Subsystem: QUANTA Computer Inc FCH LPC Bridge [152d:1365] 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 [1022:1448] 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 [1022:1449] 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 [1022:144a] 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 [1022:144b] Kernel driver in use: k10temp Kernel modules: k10temp 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 [1022:144c] 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 [1022:144d] 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 [1022:144e] 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 [1022:144f] 01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter [10ec:c822] Subsystem: Electronics & Telecommunications RSH RTL8822CE 802.11ac PCIe Wireless Network Adapter [1058:1e25] Kernel driver in use: rtw_8822ce Kernel modules: rtw88_8822ce 02:00.0 Non-Volatile memory controller [0108]: Silicon Motion, Inc. Device [126f:1001] (rev 03) Subsystem: Silicon Motion, Inc. Device [126f:2262] Kernel driver in use: nvme Kernel modules: nvme 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne [1002:164c] (rev c1) Subsystem: QUANTA Computer Inc Lucienne [152d:1365] Kernel driver in use: amdgpu Kernel modules: amdgpu 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637] Subsystem: QUANTA Computer Inc Renoir Radeon High Definition Audio Controller [152d:1365] Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 03:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df] Subsystem: QUANTA Computer Inc Family 17h (Models 10h-1fh) Platform Security Processor [152d:1365] Kernel driver in use: ccp Kernel modules: ccp 03:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639] Subsystem: QUANTA Computer Inc Renoir/Cezanne USB 3.1 [152d:1365] Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 03:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639] Subsystem: QUANTA Computer Inc Renoir/Cezanne USB 3.1 [152d:1365] Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 03:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01) Subsystem: QUANTA Computer Inc ACP/ACP3X/ACP6x Audio Coprocessor [152d:1365] Kernel driver in use: snd_acp_pci Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63 saber716rus@saber716rus-M1010 ~>

`

codepayne commented 6 months ago

@andreaconsole @saber716rus
attach the output of command dmesg, after a few seconds of starting to play a video on youtube.

andreaconsole commented 6 months ago

@andreaconsole Where did you get the rc kernel you are currently using?

@codepayne I downloaded it from the Ubuntu website: https://kernel.ubuntu.com/mainline/v6.7-rc5/

dmesg attached dmesg2.txt

saber716rus commented 6 months ago

@andreaconsole @saber716rus attach the output of command dmesg, after a few seconds of starting to play a video on youtube. did dmesg-youtube.txt

TomZanna commented 6 months ago

I have been working on a proper card profile for this sound card. This new profile also adds proper support for the internal DMIC microphone and support for microphones from headsets.

@codepayne I tried it now. On my KLVL-WXX9 is perfect.

also, I was reading this https://github.com/codepayne/linux-sound-huawei/issues/27#issuecomment-1872383641 and on mine the cat /dev/urandom | aplay command with hw:1,0 works without problems (after masking pipewire, otherwise I get something like device is busy). Could this explain why pipewire skips card 1 in their case?

codepayne commented 6 months ago

@andreaconsole @saber716rus

So I have decided to modify the alsa library to print more debug logs to find out what is going on. I have created a .deb package that should install without issue on ubuntu 23.10.

Leave "log.level = 5" in pipewire.conf

Here are the steps to enable everything:

Install the deb package: alsa-lib.zip

Unzip it and then run command:

sudo dpkg -i libasound2_1.2.9-2alsa-debug_amd64.deb

Create pipewire override:

mkdir -p ~/.config/systemd/user/pipewire.service.d
nano ~/.config/systemd/user/pipewire.service.d/override.conf

Paste this in ~/.config/systemd/user/pipewire.service.d/override.conf:

[Service]
Environment="LIBASOUND_DEBUG=1"

Reload service files and restart pipewire:

systemctl --user daemon-reload
systemctl --user --now restart pipewire.service pipewire.socket pipewire-pulse.service pipewire-pulse.socket wireplumber.service

Upload logs here obtained from:

journalctl --user -u pipewire -b > pipewire-logs.txt

To go back to the official ubuntu alsa-lib run this command:

sudo apt-get install libasound2=1.2.9-2
fernandosang commented 6 months ago

I have been working on a proper card profile for this sound card. This new profile also adds proper support for the internal DMIC microphone and support for microphones from headsets.

@codepayne I tried it now. On my KLVL-WXX9 is perfect.

also, I was reading this #27 (comment) and on mine the cat /dev/urandom | aplay command with hw:1,0 works without problems (after masking pipewire, otherwise I get something like device is busy). Could this explain why pipewire skips card 1 in their case?

Sorry mate, I haven't been following this for a couple days so I'm a bit lost. When you say it works perfectly for you, you mean no slowed-down audio, no bugs whatsoever?

I would love to try but as I said I'm lost. I tried going back a few posts but I'm still not sure what the exact steps you took to make it work, including what kernel version, etc. If it's working with no issues for you, would you be so kind as to list what steps you took to get there? Sorry for the inconvenience but it'd be great if you could.

andreaconsole commented 6 months ago

Hi @codepayne , first of all, happy new year and thanks again for your incredible commitment in addressing this issue. The full log is almost 300MB. I'm uploading just the last 5MB but, if you need more, do not hesitate to ask. pipewire-logs.txt

codepayne commented 6 months ago

@andreaconsole Thanks, happy new year!

I would really like the full logs, can you archive them and use some free sharing website something like https://www.file.io/ ?

Can you also run these commands for me?

First Enable some additional logs in the kernel, run as root:

echo -n 'file sound/* +fpm' > /sys/kernel/debug/dynamic_debug/control
dmesg -n8

Run pulseaudio manually by disabling pipewire as in post https://github.com/codepayne/linux-sound-huawei/issues/28#issuecomment-1872622462 but run pulseaudio with this command:

LIBASOUND_DEBUG=1 pulseaudio -vvv > pulseaudio-logs.txt 2>&1

Then run this command (with pipewire disabled and pulseaudio killed):

LIBASOUND_DEBUG=1 speaker-test -Dhw:CARD=acp3xes83xx,DEV=0 -c 2 > speaker-test-logs.txt 2>&1

Upload all logs here or if they are too big on some file sharing website.

ONLY after running all these commands get the kernel logs with dmesg and attach them here.

andreaconsole commented 6 months ago

No problem. While uploading, I have a question: At some point you say:

Run pulseaudio manually

but right after:

Then run this command (with pipewire disabled and pulseaudio killed):

Why should I run pulseaudio to kill it just afterwards? How do I kill pulseaudio?

codepayne commented 6 months ago

No problem. While uploading, I have a question: Here you say:

Run pulseaudio manually but right after: Then run this command (with pipewire disabled and pulseaudio killed): Why should I run pulseaudio to kill it just afterwards? How do I kill pulseaudio?

The problem is manifesting at startup, I only need the startup logs of pulseaudio and/or pipewire. After this you can kill pulseaudio since speaker-test can work directly with the sound card without needing pulseaudio or pipewire.

When I say kill, I mean to stop it from the terminal you are running pulseaudio by pressing CTRL+C.

TomZanna commented 6 months ago

@fernandosang

When you say it works perfectly for you, you mean no slowed-down audio, no bugs whatsoever?

No, the workaround is still need (I guess we will have to wait for 6.8 for the fix) and the audio is sped-up except in Chrome/Chromium

codepayne commented 6 months ago

@fernandosang

When you say it works perfectly for you, you mean no slowed-down audio, no bugs whatsoever?

No, the workaround is still need (I guess we will have to wait for 6.8 for the fix) and the audio is sped-up except in Chrome/Chromium

I would say the other way around, I saw this issue happening in firefox and aplay command, other applications I tested are not sped-up. To me it seems that most applications work ok.

andreaconsole commented 6 months ago

pulseaudio-logs.txt speaker-test-logs.txt dmesg.txt

Above the logs and here the link to the full pipewire logs from before: https://file.io/O0xjiG29f5GY

codepayne commented 6 months ago

@andreaconsole

Can you run this command and give me the output? You need to stop pipewire and pulseaudio if they are running, but use my alsa debugging lib.

strace speaker-test -Dhw:CARD=acp3xes83xx,DEV=0 -c 2
andreaconsole commented 6 months ago

I'm not sure I was effective in stopping pulseaudio because, even if I kill the process (pulseaudio --kill) it respawns again (it is in the list of active processes). However, attached is the output of the command you posted. I have kept your library installed. strace.txt

codepayne commented 6 months ago

@andreaconsole In order to stop pulseaudio you have to run these commands:

systemctl --user --now mask pulseaudio.service pulseaudio.socket
systemctl --user --now disable pulseaudio.service pulseaudio.socket
systemctl --user --now stop pulseaudio.service pulseaudio.socket

To enable pulseaudio:

systemctl --user --now unmask pulseaudio.service pulseaudio.socket
systemctl --user --now enable pulseaudio.service pulseaudio.socket
systemctl --user --now start pulseaudio.service pulseaudio.socket

I have a kernel image in which I have added some logs since a IOCTL fails in your case, that means the kernel ALSA is refusing the HW params that userspace ALSA wants to set.

The kernel is here https://file.io/b16TguL3ZyRZ

After downloading check the sha512 checksum to make sure it wasn't modified on that website, it should have this checksum:

marian@marian-M1010:~$ sha512sum kernel.zip
171a9046d330fa53c80db3af1f6f71a0c14097e44212688c3f3929512d153e3b0413c7ed04858f497ad9c2240043cce172dbfd2cc4306836c4b7f88f1400286e  kernel.zip

Unzip and install the kernel:

sudo dpkg -i linux-image-6.7.0-rc8-alsa-debug_6.7.0-rc8-12_amd64.deb

Then you need to reboot the system, boot into the new kernel, then make sure that pulseaudio and pipewire are not running and then run this command:

strace speaker-test -Dhw:CARD=acp3xes83xx,DEV=0 -c 2

Then attach the strace logs and kernel dmesg logs.

andreaconsole commented 6 months ago

Surprisingly, the checksum doesn't coincide

sha512sum kernel.zip f00bc344e14e353b7fa9879f2c4093a6b69188edcbd51fcb0f8d728ec2435eb218093f3a013bbbd19bfc28b29a8171497a40f60ffb4b116817237f2267024326 kernel.zip

codepayne commented 6 months ago

Surprisingly, the checksum doesn't coincide

sha512sum kernel.zip f00bc344e14e353b7fa9879f2c4093a6b69188edcbd51fcb0f8d728ec2435eb218093f3a013bbbd19bfc28b29a8171497a40f60ffb4b116817237f2267024326 kernel.zip

Sorry, my mistake, I checksummed the wrong archive, the correct sha512sum for what I uploaded is:

f00bc344e14e353b7fa9879f2c4093a6b69188edcbd51fcb0f8d728ec2435eb218093f3a013bbbd19bfc28b29a8171497a40f60ffb4b116817237f2267024326  kernel.zip

So they seem to match, the archive wasn't modified.

andreaconsole commented 6 months ago

Files attached dmesg2.txt strace2.txt

fernandosang commented 6 months ago

Hi @codepayne @TomZanna . So I'm trying Kubuntu + latest mainline kernel 6.7 rc8, with your workaround and custom profile for alsa. Audio is perfect on Chrome so far, except for these small issues:

  1. Pop-up noises come up occassionally.
  2. Microphone's volume is way too low.
  3. If I plug in a headset, audio is super laggy and stuttery; it fixes if I change the profile from "Play and record HiFi quality Music" to "ProAudio", but then when I unplug them, I have to change the profile back manually or audio won't come out.

Anything I'm missing here? Sorry,

codepayne commented 6 months ago

@andreaconsole

Can you test this kernel: https://file.io/crUzUc0TLvnN

e47e818fb7061de11c761fae3aa194e49e749cbc7e35961fdd4fd87e86f9227f515d5b09ba419e410f2838fd960b8724d242854cae9c10cca08e712b22031bb1  kernel.zip

First uninstall the old one(if you still have it installed):

sudo apt remove linux-image-6.7.0-rc8-alsa-debug

Then install the new one and reboot:

sudo dpkg -i linux-image-6.7.0-rc8-alsa-debug_6.7.0-rc8-20_amd64.deb

Follow the same instructions as in https://github.com/codepayne/linux-sound-huawei/issues/28#issuecomment-1874673969

But enable some more logs as root:

echo 1 > /sys/kernel/debug/tracing/events/snd_pcm/enable

Run speaker-test and then collect some additional traces (besides dmesg and strace):

cat /sys/kernel/debug/tracing/trace > ftrace.txt
andreaconsole commented 6 months ago

Hi @codepayne , attached the output ftrace.txt dmesg3.txt strace3.txt

codepayne commented 6 months ago

@andreaconsole

Can you test this kernel: https://file.io/2MGx3J3C53Wc

305dab4e7d54e3017e7338138e4417fefad15657e179d78cf738fd387edd518ac2a5d1307e95464832d8d3e217b1e16fa5beeef70028ebd8dd294e70905467c8  kernel.zip

First uninstall the old one(if you still have it installed):

sudo apt remove linux-image-6.7.0-rc8-alsa-debug

Then install the new one and reboot:

sudo dpkg -i linux-image-6.7.0-rc8-alsa-debug_6.7.0-rc8-20_amd64.deb

Follow the same instructions as in https://github.com/codepayne/linux-sound-huawei/issues/28#issuecomment-1874673969

But enable some more logs as root:

echo 1 > /sys/kernel/debug/tracing/events/snd_pcm/enable

Run speaker-test and then collect some additional traces (besides dmesg and strace):

cat /sys/kernel/debug/tracing/trace > ftrace.txt
andreaconsole commented 6 months ago

@codepayne new results attached dmesg4.txt strace4.txt ftrace.zip

saber716rus commented 6 months ago

@codepayne Happy New Year! I'm sorry for the delay, I'm sick with a high fever. Just today, the temperature dropped. I did what I asked. pipewire-logs.txt

codepayne commented 6 months ago

@andreaconsole I think I found the reason for this problem. Can you test this kernel and tell me if sound works?

https://file.io/2SZRa5L9puu7

c11fa03f1dc293a4d7784188cb1f743c72017f1ded1e475027938cdbd1ab95e6934aab966e742cf2fb5a48c314a372ab940f34f47a92fb4431858925230866d7  kernel.zip

First uninstall the old one(if you still have it installed):

sudo apt remove linux-image-6.7.0-rc8-alsa-debug

Then install the new one and reboot:

sudo dpkg -i linux-image-6.7.0-rc8-alsa-debug_6.7.0-rc8-29_amd64.deb

Follow the same instructions as in https://github.com/codepayne/linux-sound-huawei/issues/28#issuecomment-1874673969

But enable some more logs as root:

echo 1 > /sys/kernel/debug/tracing/events/snd_pcm/enable

Run speaker-test and then collect some additional traces (besides dmesg and strace):

cat /sys/kernel/debug/tracing/trace > ftrace.txt
fernandosang commented 6 months ago

@andreaconsole I think I found the reason for this problem. Can you test this kernel and tell me if sound works?

https://file.io/2SZRa5L9puu7

c11fa03f1dc293a4d7784188cb1f743c72017f1ded1e475027938cdbd1ab95e6934aab966e742cf2fb5a48c314a372ab940f34f47a92fb4431858925230866d7  kernel.zip

First uninstall the old one(if you still have it installed):

sudo apt remove linux-image-6.7.0-rc8-alsa-debug

Then install the new one and reboot:

sudo dpkg -i linux-image-6.7.0-rc8-alsa-debug_6.7.0-rc8-29_amd64.deb

Follow the same instructions as in #28 (comment)

But enable some more logs as root:

echo 1 > /sys/kernel/debug/tracing/events/snd_pcm/enable

Run speaker-test and then collect some additional traces (besides dmesg and strace):

cat /sys/kernel/debug/tracing/trace > ftrace.txt

Any chance this helps me with the popping noises and the microphone volume? I'd like to give it a try later.

andreaconsole commented 6 months ago

Thanks @codepayne, i would like to give it a try. Apparently I wasn't fast enough. The file isn't there anymore.

codepayne commented 6 months ago

@andreaconsole Try this link: https://file.io/u7a9iIaAcH4s

andreaconsole commented 6 months ago

still deleted

image

codepayne commented 6 months ago

@andreaconsole What about here? https://filebin.net/yaiehnsj2docyd4n

andreaconsole commented 6 months ago

Yes! Any particular instruction to test it?

andreaconsole commented 6 months ago

A new output device is available now, and it works!!! This is the configuration that works: Screenshot_20240104_231145

Pavucontrol: Screenshot_20240104_225943 Screenshot_20240104_230143 Screenshot_20240104_230218 Screenshot_20240104_230306

codepayne commented 6 months ago

@andreaconsole what did you change? Sunce it wasn't working at first.