Bug 214923

Summary: No sound from HDMI, Acer Swift SF514-52T, Intel i5-8250U
Product: Drivers Reporter: Parinya Teerakasemsuk (95kreaninw95)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: NEW ---    
Severity: high CC: tiwai
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.13.0-21-generic Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
lsmod
lspci
alsa-info
aplay -l
aplay -L
pactl list
alsa-info
lspci -kvnn

Description Parinya Teerakasemsuk 2021-11-03 07:12:20 UTC
Created attachment 299417 [details]
dmesg

There's no sound from HDMI, only the display shows up. And there's no way to choose the sound output device as HDMI in the sound settings. PulseAudio Volume Control shows HDMI as "unplugged" in the output devices tab even though I actually plugged in the cable.
Comment 1 Parinya Teerakasemsuk 2021-11-03 07:18:16 UTC
Created attachment 299419 [details]
lsmod
Comment 2 Parinya Teerakasemsuk 2021-11-03 07:21:22 UTC
Created attachment 299421 [details]
lspci
Comment 3 Parinya Teerakasemsuk 2021-11-03 07:25:53 UTC
Created attachment 299423 [details]
alsa-info
Comment 4 Parinya Teerakasemsuk 2021-11-03 07:32:09 UTC
Created attachment 299425 [details]
aplay -l
Comment 5 Parinya Teerakasemsuk 2021-11-03 07:33:50 UTC
Created attachment 299427 [details]
aplay -L
Comment 6 Parinya Teerakasemsuk 2021-11-03 07:41:48 UTC
Created attachment 299429 [details]
pactl list
Comment 7 Takashi Iwai 2021-11-16 14:51:18 UTC
The alsa-info.sh output contains no valid contents.  Could you retry?

About the HDMI: at first check whether i915 driver actually identified the audio I/O on the HDMI.  Unless the graphics driver recognizes the audio, the HD-audio can't handle it.
Comment 8 Parinya Teerakasemsuk 2021-11-19 22:52:45 UTC
Created attachment 299647 [details]
alsa-info

@Takashi Iwai 

Here is my new alsa-info.
Comment 9 Parinya Teerakasemsuk 2021-11-19 23:05:38 UTC
(In reply to Takashi Iwai from comment #7)
> The alsa-info.sh output contains no valid contents.  Could you retry?
> 
> About the HDMI: at first check whether i915 driver actually identified the
> audio I/O on the HDMI.  Unless the graphics driver recognizes the audio, the
> HD-audio can't handle it.

How can I check whether i915 driver actually identified the audio I/O on the HDMI?

Thanks.
Comment 10 Parinya Teerakasemsuk 2021-12-05 04:04:10 UTC
Created attachment 299873 [details]
lspci -kvnn

lspci -kvnn
Comment 11 Parinya Teerakasemsuk 2022-05-15 21:11:10 UTC
This is the driver issue, SST driver in this case. I am running i5-8250U on Acer Swift SF514-52T with Fedora 36 - kernel: 5.17.6-300.fc36.x86_64.

By enabling the "options snd-intel-dspcfg dsp_driver=1" (HDaudio legacy driver) in the "/etc/modprobe.d/snd-intel.conf" file, HDMI audio and speakers will work. But my laptop mic (DMIC) will not work, which is the expected behavior, see https://thesofproject.github.io/latest/getting_started/intel_debug/introduction.html 

Therefore, "options snd-intel-dspcfg dsp_driver=1" is not the idea solution, as DMIC will not ever work with this driver.

My alsa-info with driver=1: http://alsa-project.org/db/?f=726b7d21836ff2fd8115b96bc2b29f509c1855b3


With "options snd-intel-dspcfg dsp_driver=2" (SST driver - default setting on Fedora 36), everything work except for HDMI audio which doesn't work. And using "intel_iommu=on,igfx_off" on the kernel command line will not enable HDMI audio with this driver. In fact, the driver will not detect any sound card at all, see:  https://bugzilla.kernel.org/show_bug.cgi?id=201251#c329

My alsa-info with driver=2: http://alsa-project.org/db/?f=41d2be23c793ab9b65412e40b2870bd8b1ab3ec4


With "options snd-intel-dspcfg dsp_driver=3" (SOF driver), everything is not working, no sound card detected, as SOF driver doesn't support on the Coffee Lake CPU. See: https://github.com/thesofproject/sof/issues/2251

My alsa-info with driver=3: http://alsa-project.org/db/?f=8542e92049210a9185600e2d049aee38beb09add


This behavior reported at: 

SOF project - issue #2251: https://github.com/thesofproject/sof/issues/2251#issuecomment-1126852592

Red Hat Bugzilla – Bug 2039902: https://bugzilla.redhat.com/show_bug.cgi?id=2039902