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

No onboard audio for Medion E15443 (Core Ultra 5 125H) #5226

Open
RDust4 opened this issue Nov 2, 2024 · 18 comments
Open

No onboard audio for Medion E15443 (Core Ultra 5 125H) #5226

RDust4 opened this issue Nov 2, 2024 · 18 comments

Comments

@RDust4
Copy link

RDust4 commented Nov 2, 2024

Hello,

My onboard audio does not work for my Medion E15443 (Core Ultra 5 125H). The jack and audio via bluetooth works.
All packages (alsa, pipewire, sof) are installed freshly, so the configuration is completely default.

System:

  • Medion E15443
  • Intel Core Ultra 5 125H (Meteor Lake)
  • Arch Linux 6.11.5-arch1-1

The sound devices are detected correctly (I think):

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: Deepbuffer HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  
$ lspci -nnk | grep -A10 Audio
00:1f.3 Audio device [0403]: Intel Corporation Meteor Lake-P HD Audio Controller [8086:7e28] (rev 20)
	DeviceName: Onboard - Sound
	Subsystem: Emdoor Digital Technology Co., Ltd Device [2782:4900]
	Kernel driver in use: sof-audio-pci-intel-mtl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_mtl
...

speaker-test runs, but no audio can be heard.

Here are some logs that could be useful:
dmesg_audio.log
pipewire_debug.log
wireplumber.log

@ujfalusi
Copy link
Collaborator

@RDust4, can you share the full kernel log as well?
Based on the attached kernel log extract I don't see why SOF is selected for your machine, it is HDA (with ALC233 codec) and there are no DMICs, it should be using the legacy HDA audio driver.

The same issue present with the legacy stack (options snd_intel_dspcfg dsp_driver=0 or 1)? If so, this is a codec configuration problem, some quirk is missing for your machine.

If I understand right that audio via the 3.5mm jack is working.

Can you also attach the output of alsa-info.sh?

@RDust4
Copy link
Author

RDust4 commented Nov 12, 2024

The 3.5mm jack is working with options snd_intel_dspcfg dsp_driver=0. When I set it to 1, it stops working.

I uploaded the output of alsa-info.sh here:
http://alsa-project.org/db/?f=ee12c0056dbd47af96cec54bf7aace17c13540e5

Here the full kernel logs:
dmesg_log.txt

@ujfalusi
Copy link
Collaborator

@RDust4, thank you for the logs!
The SOF stack is selected because the ACPI table tells that the machine have Soundwire codec:

!!ACPI SoundWire Device Status Information
!!---------------

Realtek 0x000030025d071101

However the HDA generic machine driver is selected because we have HDA codec:

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Realtek ALC233

and

[    6.267415] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
...
[    6.453473] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC233: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    6.453481] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.453484] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    6.453487] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    6.453489] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    6.453492] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    6.453494] snd_hda_codec_realtek ehdaudio0D0:      Internal Mic=0x12

This is some sort of permutation of #5099, #4981 ?

But, the SOF stack is in HDA mode and the headphone jack is working, the same jack must work with legacy mode as well, this laptop has HDA audio.

Can you add this file sof-dyndbg.conf.txt
as /etc/modprobe.d/sof-dyndbg.conf, reboot and re-attach the dmesg log?

@bardliao, @kv2019i, @ranj063 do you have hints what to try?

@RDust4, does this thread helps https://forums.linuxmint.com/viewtopic.php?t=430520 ?

@RDust4
Copy link
Author

RDust4 commented Nov 15, 2024

Here are the new logs while using your file:
dmesg_log.txt

There seems to be no changes when it comes to the audio output.

I also tried to use the hdajackretask like in the link you gave me, but it did not work.
When I try to overwrite anything (like set the speaker to not connected), hdajackretask freezes and I cannot use any audio anymore.
After restarting hdajackretask, the overrides I can select are now only "HDMI" and "not connected".

@ujfalusi
Copy link
Collaborator

Thank you for the log but unfortunately it is missing the early part of the boot process.
Try to increase the kernel log buffer by adding log_buf_len=4M to the kernel command line parameter and reboot.

Is there any difference if you switch to legacy HDA stack by modifying the /etc/modprobe.d/sof-dyndbg.conf line
options snd_intel_dspcfg dyndbg=+pmf to options snd_intel_dspcfg dyndbg=+pmf dsp_driver=1 and reboot?
Iow, does the jack playback works?

@RDust4
Copy link
Author

RDust4 commented Nov 19, 2024

This is the updated log: dmesg_log.txt

I changed /etc/modprobe.d/sof-dyndbg.conf and the jack is still working.
The inbuilt audio still does not work.

Should I leave it at the changed state or should I insert the old sof-dyndbg.conf?

@bardliao
Copy link
Collaborator

I don't see audio errors in the dmesg log. We may need a quirk on patch_realtek.c. I will email Kailang [email protected] to ask for help.

@bardliao
Copy link
Collaborator

@RDust4 Can you try Ubuntu 24.04? That was suggested by Realtek.

@bardliao
Copy link
Collaborator

@RDust4 Can you also provide the alsa-info output with options snd_intel_dspcfg dsp_driver=1? And, get the alsa-info output again with Ubuntu 24.04 installed.

@bardliao
Copy link
Collaborator

@RDust4 Please do echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef before alsa-info to dump the hidden registers.

@RDust4
Copy link
Author

RDust4 commented Nov 20, 2024

Arch Linux with dsp_driver=1: alsa-info

I'm downloading Ubuntu for a Live USB right now, I'll give updates when it is finished.

@RDust4
Copy link
Author

RDust4 commented Nov 20, 2024

Here on a persistent live Ubuntu USB: alsa-info

@KailangYang
Copy link

@RDust4 please do alsa-info.sh again in your original OS with dsp_driver=0
Please run echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef before run alsa-info.sh

@KailangYang
Copy link

0000-medion-e15443-spk.patch
@RDust4 please add this patch.

@RDust4
Copy link
Author

RDust4 commented Nov 22, 2024

The patch is installed, but my audio is still not playing. The jack works as usual.
There are changes in alsa-info.sh.

@KailangYang
Copy link

@RDust4

  1. You can back to original sof-dyndbg.conf
  2. I think added patch was failed.
    This patch was changed file /kernel source folder/sound/pci/hda/patch_realtek.c.
    You could recheck file patch_realtek.c for added part.

If it patched suscessful, it will show in dump file as below.

/sys/class/sound/hwC0D0/driver_pin_configs:
0x1b 0x90170110

@KailangYang
Copy link

Please be remember run command in terminal as below.
echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef
before run alsa-info.sh

@RDust4
Copy link
Author

RDust4 commented Nov 25, 2024

The patch is now applied correctly. There were some issues because I downloaded the wrong kernel version.
However, I could resolve those by hand. (Inserted lines in the wrong location)

The sound is now working, thank you very much!
When will this be in the official releases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants