Bug 44371 - Рассинхрон SOF и alsa-lib
Summary: Рассинхрон SOF и alsa-lib
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libalsa (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-20 06:48 MSK by mikhailnov
Modified: 2024-02-16 18:16 MSK (History)
5 users (show)

See Also:


Attachments
dmesg (83.52 KB, text/plain)
2024-02-16 18:14 MSK, arbars@altlinux.org
no flags Details
lsmod (9.27 KB, text/x-log)
2024-02-16 18:14 MSK, arbars@altlinux.org
no flags Details
sys-modules (3.03 KB, text/x-log)
2024-02-16 18:15 MSK, arbars@altlinux.org
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikhailnov 2022-11-20 06:48:04 MSK
alsa-lib 1.6, а firmware-alsa-sof уже 2.2, из-за чего звук не работает на Hueawei MateBook. Из dmesg:

[    5.743090] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    5.743093] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:18:0
[    5.743094] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    5.773529] sof-essx8336 sof-essx8336: quirk SSP2
[    5.773535] sof-essx8336 sof-essx8336: quirk JD_INVERTED disabled
[    5.774977] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:18:0
[    5.774985] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    5.776040] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI SSP0.OUT stream SSP0-Codec
[    5.777659] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI SSP0.IN stream SSP0-Codec
[    5.778425] usb 1-7: new full-speed USB device number 3 using xhci_hcd
[    5.779833] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI DMIC0.IN stream dmic01
[    5.781847] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI DMIC1.IN stream dmic16k
[    5.791189] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: physical link dmic01 (id 1) not exist
[    5.791190] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: topology: could not load header: -22
[    5.791222] sof-audio-pci-intel-tgl 0000:00:1f.3: error: tplg component load failed -22
[    5.791225] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP topology -22
[    5.791226] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 0000:00:1f.3: -22
[    5.791240] sof-essx8336 sof-essx8336: ASoC: failed to instantiate card -22
[    5.791264] sof-essx8336 sof-essx8336: snd_soc_register_card failed: -22
[    5.791265] sof-essx8336: probe of sof-essx8336 failed with error -22


На дистрибутивах, где такого рассинхрона нет, такой проблемы нет, звук работает.

Проба: https://linux-hardware.org/?probe=bd18dfe05f
Comment 1 mikhailnov 2022-11-20 07:04:56 MSK
И ещё alsa-utils
Comment 2 Anton Farygin 2022-11-20 09:40:05 MSK
firmware тут явне не при чём.

Ждём новую alsa.

И это проявляется не на всём железе - например у меня всё как работало так и работает.
Comment 3 mikhailnov 2022-11-20 10:08:44 MSK
(In reply to Anton Farygin from comment #2)
> firmware тут явне не при чём.
> 
> Ждём новую alsa.
> 
> И это проявляется не на всём железе - например у меня всё как работало так и
> работает.

А где не работало, там и не заработало, хотя могло бы.
Скорее всего, обновление фирмвари с 2.0.х до 2.2.х без обновления ALSA бесполезно.
Comment 4 Anton Farygin 2022-11-20 10:24:48 MSK
конечно, так вешайте багу на alsa, при чём тут firmware ?
Comment 5 Anton Farygin 2022-11-21 08:38:15 MSK
в sisyphus alsa обновлена.
Comment 6 Артём 2022-11-21 14:18:17 MSK
Всё равно не работает :-(

[root@localhost ~]# dmesg | grep -i sof
[    0.723624] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.873053] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.873054] software IO TLB: mapped [mem 0x00000000649fe000-0x00000000689fe000] (64MB)
[    4.396630] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    4.396675] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    4.396791] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    4.396846] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    4.403619] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    4.425449] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[    4.427048] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    4.427050] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:18:0
[    4.427052] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    4.427055] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    4.521611] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    4.521613] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:18:0
[    4.521614] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    4.524017] sof-essx8336 sof-essx8336: quirk SSP2
[    4.524019] sof-essx8336 sof-essx8336: quirk JD_INVERTED disabled
[    4.525704] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:18:0
[    4.525710] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    4.526747] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI SSP0.OUT stream SSP0-Codec
[    4.528280] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI SSP0.IN stream SSP0-Codec
[    4.530151] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI DMIC0.IN stream dmic01
[    4.531947] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI DMIC1.IN stream dmic16k
[    4.541021] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: physical link dmic01 (id 1) not exist
[    4.541023] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: topology: could not load header: -22
[    4.541054] sof-audio-pci-intel-tgl 0000:00:1f.3: error: tplg component load failed -22
[    4.541057] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP topology -22
[    4.541058] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 0000:00:1f.3: -22
[    4.541070] sof-essx8336 sof-essx8336: ASoC: failed to instantiate card -22
[    4.541092] sof-essx8336 sof-essx8336: snd_soc_register_card failed: -22
[    4.541093] sof-essx8336: probe of sof-essx8336 failed with error -22


Наверное нужно найти, в каком пакете вызываемая в https://packages.altlinux.org/ru/sisyphus/srpms/firmware-alsa-sof/specfiles/#line-39 утилита
Этот пакет нужно обновить, собрать с libalsa 1.2.8 и пересобрать фирмварю с ним?
Comment 7 Anton Farygin 2022-11-21 14:35:20 MSK
task #310391 проверяйте
Comment 8 Артём 2022-11-21 15:47:58 MSK
(Ответ для Anton Farygin на комментарий #7)
> task #310391 проверяйте

С ней и проверяли :-)

# apt-repo test 310391
....
Последняя версия firmware-alsa-sof уже установлена.
Последняя версия firmware-alsa-sof-debug уже установлена.
0 будет обновлено, 0 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено.
Comment 9 Артём 2022-11-21 15:49:57 MSK
Ядро
5.15.78-un-def-alt1
Comment 10 Anton Farygin 2022-11-21 18:09:43 MSK
ну значит пересобирать не имеет смысла.
Comment 11 Артём 2022-11-22 12:55:49 MSK
(Ответ для Anton Farygin на комментарий #10)
> ну значит пересобирать не имеет смысла.

Почему? В Росе заработало с sof 2.2, alsa-lib 1.2.8
Comment 12 mikhailnov 2022-12-09 08:18:08 MSK
Оказывается, работает и с firmware-alsa-sof 2.2, но старой ALSA 1.2.6 и ядром un-def 6.0 из сизифа. На 5.10 и вроде бы 5.15 тоже из p10 звук не работает несмотря на бекпортированный туда es8316. В Альте порт, выполненный Виталием из Аквариуса, возможно, в нем чего-то не хватает.

В общем, проблема рассинхрона ALSA и SOF есть, но не мешает.
Comment 13 arbars@altlinux.org 2024-02-16 18:14:05 MSK
Created attachment 15566 [details]
dmesg
Comment 14 arbars@altlinux.org 2024-02-16 18:14:50 MSK
Created attachment 15567 [details]
lsmod
Comment 15 arbars@altlinux.org 2024-02-16 18:15:08 MSK
Created attachment 15568 [details]
sys-modules
Comment 16 arbars@altlinux.org 2024-02-16 18:16:15 MSK
Ошибка проявилась на HUAWEI MateBook E 12.6 2023 i7 1260U/16/512GB Nebula Gray (DRR-W76) 
https://linux-hardware.org/?probe=39393dda93