Re: Subject: Sound from HDMI (pcm2) using i915kms.ko

180 views
Skip to first unread message

Steven Friedrich

unread,
Feb 17, 2021, 1:07:36 AM2/17/21
to freebsd-...@freebsd.org
Message-ID: <1772815.u6MfGjpqfb@freebsd>
Content-Type: text/plain; charset="us-ascii"

I am running FreeBSD 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 r369261 FreeBSD
amd64
I put hw.snd.default_unit=2 in /etc/sysctl.conf to make pcm2 default.
cat /dev/sndstat confirms:
Installed devices:
pcm0: <Realtek ALC671 (Rear Analog)> (play/rec)
pcm1: <Realtek ALC671 (Analog)> (play/rec)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play) default
No devices installed from userspace.

But no sound is emitted from HDMI connector.

It's my understanding that this requires some support in the video driver,
i915kms.ko

I have added WITHOUT_MODULES=i915kms
to /etc/make.conf, and built from ports, both:
drm-fbsd12.0-kmod-4.16.g20201016_1 DRM modules for the linuxkpi-based KMS
components
gpu-firmware-kmod-g20201213 Firmware modules for the linuxkpi-based KMS
components
Still no joy.
My processor is: Core i7-8700 (Coffee Lake), with UHD Graphics 630.

I also tried tunable: hw.snd.compat_linux_mmap=1 in /etc/sysctl.conf, to no
avail.
I get sound under Linux Mint, KDE Neon, Kubuntu, and Windows 10 Pro.
I do get sound from pcm0(rear audio jack) or pcm1(front audio jack).
But this monitor is shared with a Windows machine and FreeBSD is the only OS
not outputting sound on HDMI.

Any ideas?
I never tried to reply to a message I got in a digest. Forgive me if I've
done it wrong.

I just wanted to update this thread with dmesg and pciconf output:
hdacc0: <Realtek ALC671 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC671 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC671 (Rear Analog)> at nid 20 and 27 on hdaa0
pcm1: <Realtek ALC671 (Analog)> at nid 33 and 24 on hdaa0
hdacc1: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1

hdac0@pci0:0:31:3: class=0x040300 card=0x843f103c chip=0xa3488086
rev=0x10 hdr=0x00
vendor = 'Intel Corporation'
device = 'Cannon Lake PCH cAVS'
class = multimedia
subclass = HDA
Note the HDMI sound is on cad 2 (and doesn't work), the sound functions on cad
0 work. Also note that cad 0 is a Realtek device and cad 2 is an Intel
device.


_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Steve O'Hara-Smith

unread,
Feb 17, 2021, 1:31:53 AM2/17/21
to freebsd-...@freebsd.org
On Wed, 17 Feb 2021 01:07:24 -0500
Steven Friedrich <Fre...@twc.com> wrote:

> Message-ID: <1772815.u6MfGjpqfb@freebsd>
> Content-Type: text/plain; charset="us-ascii"
>
> I am running FreeBSD 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 r369261
> FreeBSD amd64
> I put hw.snd.default_unit=2 in /etc/sysctl.conf to make pcm2 default.
> cat /dev/sndstat confirms:
> Installed devices:
> pcm0: <Realtek ALC671 (Rear Analog)> (play/rec)
> pcm1: <Realtek ALC671 (Analog)> (play/rec)
> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play) default
> No devices installed from userspace.
>
> But no sound is emitted from HDMI connector.
>
> It's my understanding that this requires some support in the video
> driver, i915kms.ko

The device is recognised and attached so that's OK. This may be
something simple try mixer -f dev/mixer2 for clues.

--
Steve O'Hara-Smith <st...@sohara.org>

Steven Friedrich

unread,
Feb 21, 2021, 3:11:57 AM2/21/21
to freebsd-...@freebsd.org
I got verbose output, but I don't know quite what it means:
hdaa0: Original pins configuration:
ahcich3: hdaa0: nid 0x as seq device conn jack loc color
misc
hdaa0: 18 40000000 0 0 Line-out None Unknown 0x00 Unknown 0
hdaa0: 20 01014010 1 0 Line-out Jack 1/8 Rear Green 0
hdaa0: 23 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 24 01a19040 4 0 Mic Jack 1/8 Rear Pink 0
hdaa0: 25 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 26 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 27 01813030 3 0 Line-in Jack 1/8 Rear Blue 0
hdaa0: 29 40434601 0 1 SPDIF-out None ATAPI 0x00 Green 6
hdaa0: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 33 02211020 2 0 Headphones Jack 1/8 Front Black 0
hdaa0: Patching widget caps nid=29 0x00400000 -> 0x00700000
SATA offline status=00000004
hdaa0: ahcich3: AHCI reset: device not found
ahcich4: AHCI reset...
Patched pins configuration:
ahcich4: hdaa0: nid 0x as seq device conn jack loc color
misc
hdaa0: 18 40000000 0 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa0: 20 01014010 1 0 Line-out Jack 1/8 Rear Green 0
hdaa0: 23 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 24 01a19040 4 0 Mic Jack 1/8 Rear Pink 0
hdaa0: 25 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 26 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 27 01813030 3 0 Line-in Jack 1/8 Rear Blue 0
hdaa0: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 33 02211020 2 0 Headphones Jack 1/8 Front Black 0
hdaa0: 4 associations found:
hdaa0: Association 0 (1) out:
hdaa0: Pin nid=20 seq=0
hdaa0: Association 1 (2) out:
hdaa0: Pin nid=33 seq=0
hdaa0: Association 2 (3) in:
hdaa0: Pin nid=27 seq=0
hdaa0: Association 3 (4) in:
hdaa0: Pin nid=24 seq=0
hdaa0: Tracing association 0 (1)
hdaa0: Pin 20 traced to DAC 2
hdaa0: Association 0 (1) trace succeeded
hdaa0: Tracing association 1 (2)
hdaa0: Pin 33 traced to DAC 3
hdaa0: Association 1 (2) trace succeeded
hdaa0: Tracing association 2 (3)
hdaa0: Pin 27 traced to ADC 8
hdaa0: Association 2 (3) trace succeeded
hdaa0: Tracing association 3 (4)
hdaa0: Pin 24 traced to ADC 9
hdaa0: Association 3 (4) trace succeeded
hdaa0: Looking for additional DAC for association 0 (1)
hdaa0: Looking for additional DAC for association 1 (2)
hdaa0: Looking for additional ADC for association 2 (3)
hdaa0: Looking for additional ADC for association 3 (4)
hdaa0: Tracing input monitor
hdaa0: Tracing nid 11 to out
hdaa0: nid 11 is input monitor
hdaa0: Tracing nid 35 to out
hdaa0: Tracing other input monitors
hdaa0: Tracing nid 24 to out
hdaa0: Tracing nid 27 to out
hdaa0: Tracing beeper
SATA offline status=00000004
ahcich4: AHCI reset: device not found
ahcich5: AHCI reset...
hdaa0: Pin sense: nid=20 sense=0x80000000 (connected)
ahcich5: SATA offline status=00000004
hdaa0: ahcich2: ahcich5: AHCI reset: device not found
Pin sense: nid=33 sense=0x80000000 (connected)
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref

I cut out pcm0 and pcm1 because they work. Only pcm2 (HDMI) doesn't produce
sound

hdacc1: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc1
hdaa1: Subsystem ID: 0x80860101
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa1: Original pins configuration:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 3 18560010 1 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: Patched pins configuration:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 3 18560010 1 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 1 associations found:
hdaa1: Association 0 (1) out:
hdaa1: Pin nid=3 seq=0
hdaa1: Tracing association 0 (1)
hdaa1: Pin 3 traced to DAC 2
hdaa1: Association 0 (1) trace succeeded
hdaa1: Looking for additional DAC for association 0 (1)
hdaa1: Tracing input monitor
hdaa1: Tracing other input monitors
hdaa1: Tracing beeper
hdaa1: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1
pcm2: Playback:
pcm2: Stream cap: 0x00000005 AC3 PCM
pcm2: PCM cap: 0x001a07f0 16 24 32 bits, 32 44 48 88 96 176 192 KHz
pcm2: DAC: 2
pcm2:
pcm2: nid=3 [pin: Digital-out (Jack)]
pcm2: + <- nid=2 [audio output] [src: pcm]
pcm2:
pcm2: Master Volume (OSS: vol): 0/0dB
pcm2: +- ctl 1 (nid 3 in ): mute
pcm2:
pcm2: PCM Volume (OSS: pcm): 0/0dB
pcm2: +- ctl 1 (nid 3 in ): mute
pcm2:
pcm2: Mixer "vol":
pcm2: Mixer "pcm":
pcm2: Soft PCM mixer ENABLED
pcm2: Playback channel matrix is: unknown, assuming 7.1 (disconnected)


It LOOKS like it's muted:
pcm2: Master Volume (OSS: vol): 0/0dB
pcm2: +- ctl 1 (nid 3 in ): mute
and
pcm2: PCM Volume (OSS: pcm): 0/0dB
pcm2: +- ctl 1 (nid 3 in ): mute

The LAST message looks annoying:
pcm2: Playback channel matrix is: unknown, assuming 7.1 (disconnected)


Oh, and mixer isn't any help:
mixer -f /dev/mixer2
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100

I read snd_hda (4),but it's Geek to me.
--
FreeBSD FreeBSD 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 r369327 Special amd64
HP-Slimline 290-p0014 Desktop
Using integrated UHD Graphics 630
Built drm from /usr/ports/drm-kmod
Reply all
Reply to author
Forward
0 new messages