Discussion:
[Bug 283948] snd_hdac: No sound on Alder Lake-P laptop
Add Reply
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

Alexander Ziaee <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@FreeBSD.org |***@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

Dudley Innocent <***@yahoo.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@yahoo.com,
| |***@FreeBSD.org

--- Comment #1 from Dudley Innocent <***@yahoo.com> ---
^triage: added recent FreeBSD committers to CC. Unable to set to Open.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #2 from Christos Margiolis <***@freebsd.org> ---
Created attachment 256609
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256609&action=edit
ALC711 possible patch

I couldn't find any useful information on ALC711, but could you apply this
patch and recompile sound(4) and see if your issue is fixed, or at least
improved?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

Christos Margiolis <***@freebsd.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

Mark Johnston <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@FreeBSD.org

--- Comment #3 from Mark Johnston <***@FreeBSD.org> ---
Could you please provide output of `pciconf -lv` from this device?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #4 from Christos Margiolis <***@freebsd.org> ---
(In reply to Mark Johnston from comment #3)
The device ID 0x51c8 is added already in hdac.c. What isn't added is the codec
Alexander has (ALC711), so perhaps with the patch the device should at least
attach properly.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

Alexander Ziaee <***@runbox.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@runbox.com

--- Comment #5 from Alexander Ziaee <***@runbox.com> ---
Sorry for the late reply, there was no change with the patch applied and a
`make kernel`, and I have been delayed from trying it with a `make
cleankernel`.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #6 from Christos Margiolis <***@freebsd.org> ---
Did you properly build and install the module?

cd /usr/src && make -C sys/modules/sound all install clean cleandepend
KMODDIR=/boot/kernel

You need to have sound(4) _not_ built into the kernel in order for the new
build to run.

Sorry if it's obvious for you, I'm only trying to make sure.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #7 from Christos Margiolis <***@freebsd.org> ---
(In reply to Christos Margiolis from comment #6)
I just saw you tried to build the whole kernel, instead of just the module. I
think it'd be easier/quicker if you compiled the kernel without sound(4)
built-in, so that we can test things faster.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #8 from Alexander Ziaee <***@runbox.com> ---
No change in mixer or sndstat.

Thank you, this was not obvious and is revolutionary info!

development(7) has an example for building a single userspace component, and
imho needs to have this too. Can I shorten the second command at all to put in
development.7/examples?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #9 from Christos Margiolis <***@freebsd.org> ---
(In reply to Alexander Ziaee from comment #8)
Are you sure the codec is ALC711-VD? I cannot find the codec's ID, so maybe the
patch I wrote contains a wrong ID. Do you have more information on the
soundcard?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #10 from Christos Margiolis <***@freebsd.org> ---
Created attachment 256794
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256794&action=edit
Possible ALC711-VD patch

I just saw there is another *-VD format defined in hdac.h, so I followed the
same pattern in this patch. Can you test this one?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.com

--- Comment #11 from ***@gmail.com ---
Adding comment to stay informed. I have this exact same issue. I found this
report when search for solution to the Alder Lake HDA controller. No sound from
HDMI but USB audio works fine. I tried attachment 256794 (the second patch) to
the sound module using the directions provided to build the module and not the
entire kernel. There was no change for me.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #12 from Alexander Ziaee <***@runbox.com> ---
(In reply to Christos Margiolis from comment #9)

I'm not sure, I can't get any doc to identify this from dell, but several third
party websites say it's ALC711-VD.

There was no change after the second patch.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #13 from Christos Margiolis <***@freebsd.org> ---
(In reply to Alexander Ziaee from comment #0)
When you run:

sysctl dev.hdac.0.pindump=1

The output is shown in dmesg. Can you post this? Also please post the output of
/dev/sndstat after running:

sysctl hw.snd.verbose=2
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #14 from Alexander Ziaee <***@runbox.com> ---
With the second patch, there was no change in dmesg or syslog after the pin
dump. Changing hw.snd.verbose=2 added "FreeBSD Audio Driver" to the top of
/dev/sndstat, but there was no other change. Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #15 from Christos Margiolis <***@freebsd.org> ---
We need to figure out if your card really uses ALC711-VD, and if yes, what its
ID is, since we do not currently support it, and the patches I wrote do not
detect it either.

Can you do a verbose boot and post the output of dmesg?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #16 from Alexander Ziaee <***@runbox.com> ---
Here[0] is the output of `dmesg | nc termbin.com 9999` on a verbose boot.
Thanks!

[0] https://www.termbin.com/w101s
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #17 from Christos Margiolis <***@freebsd.org> ---
So according to this line:

[1.008325] hdac0: PCI card vendor: 0x1028, device: 0x0b29

The driver sees a device with vendorid 0x1028 (Dell), but the deviceid 0x0b29
is not defined, and I can also not find information on it on the internet.
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2 months ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #18 from Christos Margiolis <***@freebsd.org> ---
Does this card work on Linux?
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
17 days ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #19 from Alexander Ziaee <***@runbox.com> ---
Yes, it does. In Debian-live 12.9 for `dmesg | grep hda` I'm getting:

[ 2.138736] pci 0000:01:00.0: optimus capabilities: enabled, status dynamic
power, hda bios codec supported
[ 5.683723] snd_hda_intel 0000:00:1f.3: DSP detected with PCI
class/subclass/prog-if info 0x040100
[ 5.683803] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+
platform, using SOF driver
[ 5.935578] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 6.295935] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology
for HDMI converter 3
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
17 days ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #20 from Alexander Ziaee <***@runbox.com> ---
I think the relevant entry in `lspci -vv` is:

00:1f.3 Multimedia audio controller: Intel Corporation Alder Lake PCH-P High
Definition Audio Controller (rev 01)
Subsystem: Dell Alder Lake PCH-P High Definition Audio Controller
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-
Latency: 64
Interrupt: pin A routed to IRQ 205
IOMMU group: 19
Region 0: Memory at 618e1d0000 (64-bit, non-prefetchable) [size=16K]
Region 4: Memory at 618e000000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA
PME(D0-,D1-,D2-,D3hot+,D3cold+)
Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
Capabilities: [80] Vendor Specific Information: Len=14 <?>
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee00c58 Data: 0000
Kernel driver in use: sof-audio-pci-intel-tgl
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
16 days ago
Reply
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283948

--- Comment #21 from Christos Margiolis <***@freebsd.org> ---
The Linux output shows that the card is using SoF [1], which is not currently
supported on FreeBSD, although I am planning to port it in the near future.

Is is possible to find which ALC your device is identified as on Linux?

[1] https://www.sofproject.org/
--
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...