Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio issue codec ES8336- Matebook d14 intel - Ubuntu #4093

Open
ToutouDogo opened this issue Dec 12, 2022 · 19 comments
Open

Audio issue codec ES8336- Matebook d14 intel - Ubuntu #4093

ToutouDogo opened this issue Dec 12, 2022 · 19 comments
Labels
codec ES8336 Community end-user or distro-reported issues

Comments

@ToutouDogo
Copy link

ToutouDogo commented Dec 12, 2022

kernel 5.17.0-1018-oem
SOF 2.0-1ubuntu4

I have no sound in headphones, speaker nor HDMI. Bluetooth works though.

pacmd list-cards returns 0 card(s) available.

alsamixer

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:1528:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No such file or `directory'

The dmseg
dmesg 20221212.txt

journalctl -b -p err
journalctl err.txt

From other submitted issues, I guess it's a essx8336 bug but don't know what to do about the no soundcard issue.

Thank you for assistance, I've been using Ubuntu since one week only, my first steps in Linux. I am reading as much as possible to understand but please be indulgent I know nothing.

@ToutouDogo
Copy link
Author

lsmod 20221212.txt

I guess this could be usefull too.

@paulstelian97
Copy link

The following lines from dmesg seem relevant; the people from Intel should consider them

[    3.281635] sof-audio-pci-intel-tgl 0000:00:1f.3: loading topology:intel/sof-tplg/sof-tgl-es8336.tplg
...
[    3.282621] sof-audio-pci-intel-tgl 0000:00:1f.3: dai SSP0.OUT: type 1 index 0
[    3.282621] sof-audio-pci-intel-tgl 0000:00:1f.3:  config: periods snk 0 src 2 fmt 1
[    3.282623] sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI SSP0.OUT stream SSP0-Codec
[    3.282668] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to add widget id 0 type 27 name : SSP0.OUT stream SSP0-Codec
[    3.282718] sof-essx8336 sof-essx8336: ASoC: failed to load widget SSP0.OUT
[    3.282749] sof-essx8336 sof-essx8336: ASoC: topology: could not load header: -22
[    3.282790] sof-audio-pci-intel-tgl 0000:00:1f.3: error: tplg component load failed -22
[    3.282835] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP topology -22
[    3.282867] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 0000:00:1f.3: -22
[    3.282917] sof-essx8336 sof-essx8336: ASoC: failed to instantiate card -22
[    3.282982] sof-essx8336 sof-essx8336: snd_soc_register_card failed: -22
[    3.283012] sof-essx8336: probe of sof-essx8336 failed with error -22

@plbossart
Copy link
Member

5.17 is too old a kernel for this platform, see https://github.com/thesofproject/linux/wiki/ES8336-support

@ToutouDogo
Copy link
Author

5.17 is too old a kernel for this platform, see https://github.com/thesofproject/linux/wiki/ES8336-support

Sorry, my knowledge is limited I can barely copy paste command lines. What I should do is :
sudo apt-get update
Followed by
`sudo apt-get dist-upgrade',
Then I see ?
For the support, I suppose I must compile the 5.9 or 6.0 accordingly?

@plbossart
Copy link
Member

at this point you have to compile your own kernel to get support for this device. If you are not familiar with all this, you'll have to get a USB device to get audio support.

@plbossart plbossart added codec ES8336 Community end-user or distro-reported issues labels Dec 13, 2022
@casabero
Copy link

Same here. I tried to compile sof kernel without success. If anyone can help us would be nice.

@casabero
Copy link

try this one. https://github.com/intbyte-100/matebook-d15-linux-soundfix
Finally i have sound on matebook d14.
6.1.0-1 kernel & manjaro

@ToutouDogo
Copy link
Author

Well done ! Would you recommend me to keep Ubuntu or switch to manjaro ?
I am following thesofproject instructions to set up a development enviro and compile my own kernel, but the make command has issues (certificate problem).When its fixed, what I should do is install this kernel https://github.com/intbyte-100/matebook-d15-linux-soundfix instead of the one proposed by thesofproject, following the same instructions detailed in https://thesofproject.github.io/latest/getting_started/setup_linux/install_locally.html ?
Thank you

@casabero
Copy link

i did the same trying to compile this kernel without success. Stay in Ubuntu, update your kernel to >5.19.
BTW https://github.com/intbyte-100/matebook-d15-linux-soundfix -- this is a fix

@ToutouDogo
Copy link
Author

My bad, I should have clicked on the link before saying craps :) Thank you very much !
For the kernel update, many procedures are available on the internet, I would like to know what are you recommandations. Indeed,

sudo apt-get update
sudo apt-get dist-upgrade

Does not allow me to go >5.17.

@casabero
Copy link

My bad, I should have clicked on the link before saying craps :) Thank you very much ! For the kernel update, many procedures are available on the internet, I would like to know what are you recommandations. Indeed,

sudo apt-get update
sudo apt-get dist-upgrade

Does not allow me to go >5.17.

-go https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0/
-create a new folder and download all deb files of amd64/build

  • cd new-folder
  • sudo dpkg -i *.deb
  • sudo apt -f install if it needed

@ToutouDogo
Copy link
Author

Thank you for your patience. Unfortunatly, dpkg encounters an issue :
Screenshot from 2022-12-23 16-06-37
Any idea of what's occuring ?

@casabero
Copy link

install ukuu https://github.com/teejee2008/ukuu/releases from there and update

@ToutouDogo
Copy link
Author

thanks. As it seems, I'm still missing something
Screenshot from 2022-12-23 18-54-25

@ToutouDogo
Copy link
Author

OK, I managed to update to 6.0.1 and to apply https://github.com/intbyte-100/matebook-d15-linux-soundfix
Dummy output is solved, I now have a soundcard !
20221224 pacmd list-cards.txt

Yet, still no sound, and some errors in journalctl
20221224 journalctl err.txt

@ToutouDogo ToutouDogo changed the title No soundcard detected - Matebook d14 intel - Ubuntu Audio issue codec ES8336- Matebook d14 intel - Ubuntu Jan 3, 2023
@ToutouDogo
Copy link
Author

ToutouDogo commented Jan 6, 2023

new errors, cannot find help on the internet, maybe it can tell about the issue here:

$ pipewire

[W][00481.758415] mod.rt       | [     module-rt.c:  297 translate_error()] RTKit error: org.freedesktop.DBus.Error.InvalidArgs
[W][00481.758775] mod.rt       | [     module-rt.c:  622 set_nice()] could not set nice-level to -11: Input/output error
[E][00481.759739] mod.protocol-native | [module-protocol-:  731 lock_socket()] server 0x563a5a259380: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][00481.759840] pw.conf      | [          conf.c:  594 load_module()] 0x563a5a23c140: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][00481.760071] default      | [      pipewire.c:  125 main()] failed to create context: Resource temporarily unavailable
~$ systemctl --user status pipewire.service 
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-01-06 14:35:52 CET; 1min 23s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1499 (pipewire)
      Tasks: 2 (limit: 9243)
     Memory: 11.3M
        CPU: 698ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1499 /usr/bin/pipewire

janv. 06 14:35:52 toutou-BOD-WXX9 systemd[1490]: Started PipeWire Multimedia Service.
janv. 06 14:35:52 toutou-BOD-WXX9 pipewire[1499]: mod.rt: Can't find xdg-portal: (null)
janv. 06 14:35:52 toutou-BOD-WXX9 pipewire[1499]: mod.rt: found session bus but no portal

@ToutouDogo
Copy link
Author

ToutouDogo commented Jan 11, 2023

As said previously, https://github.com/intbyte-100/matebook-d15-linux-soundfix solves dummy-output issue but still no audio from speakers.

Tried to modify quirks following
https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#es8336-support
Trying quirk = 16, 80 or 400
But dummy-output comes back, soundcard not detected.
Here are the error from dmesg after modifying this quirk.
20231201 quirk error.txt

This is repeateable, as deleting
options snd_soc_sof_es8336 quirk=X
restore soundcard detection (but still no audio from speakers). I tried to play with alsamixer, but no success.
Can you identify an issue with these logs ? I don't know what to do.

alsa-info.txt
lspci.txt

@ToutouDogo
Copy link
Author

Hello, I've been composing with this issue since I can connect bluetooth device, but for unknown reason it does not work anymore. Any news on this topic ?

@paulstelian97
Copy link

Consensus is get an up to date kernel having latest SOF. That might need a custom build or going with non-LTS Ubuntu, or with Arch/Manjaro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codec ES8336 Community end-user or distro-reported issues
Projects
None yet
Development

No branches or pull requests

4 participants