From owner-freebsd-questions@freebsd.org Mon Feb 15 18:11:47 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B9E28534D93 for ; Mon, 15 Feb 2021 18:11:47 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from p-impout008.msg.pkvw.co.charter.net (p-impout008aa.msg.pkvw.co.charter.net [47.43.26.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DfXHR1JLYz4srY for ; Mon, 15 Feb 2021 18:11:46 +0000 (UTC) (envelope-from freebsd@twc.com) Received: from freebsd.localnet ([74.132.18.25]) by cmsmtp with ESMTPA id BiLHlDJKlGwBgBiLUlmj8y; Mon, 15 Feb 2021 18:11:40 +0000 X-Authority-Analysis: v=2.3 cv=WOgBoUkR c=1 sm=1 tr=0 a=6dKv8Xy78h5PIHsve0hi3A==:117 a=6dKv8Xy78h5PIHsve0hi3A==:17 a=kj9zAlcOel0A:10 a=06Qmwm05VrZZhOkC2vsA:9 a=CjuIK1q_8ugA:10 From: Steven Friedrich To: freebsd-questions@freebsd.org Subject: Sound from HDMI (pcm2) using i915kms.ko Date: Mon, 15 Feb 2021 13:11:27 -0500 Message-ID: <1772815.u6MfGjpqfb@freebsd> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-CMAE-Envelope: MS4wfNJTSaI5ButjoyEnz/QVd9oM2SONvzBEBE3+relJhHqZTJUBuOcAtoR8Xpp2KsmW0vrRN3/6i7YE+r8NNhtm5BowFVSrWMZsGHMk3bd7ARLEPsT5c2KF ZBzpkYm4rko5jVb0rG76MHcBmoyBFiSTUZjabdIaH4hImvVOrB/z2aTmVdWV4/1GYHR0ig55SxELJA== X-Rspamd-Queue-Id: 4DfXHR1JLYz4srY X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@twc.com designates 47.43.26.139 as permitted sender) smtp.mailfrom=freebsd@twc.com X-Spamd-Result: default: False [-0.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[47.43.26.139:from]; FREEMAIL_FROM(0.00)[twc.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[twc.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[74.132.18.25:received]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[twc.com]; CTE_CASE(0.50)[]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-questions]; ASN(0.00)[asn:40294, ipnet:47.43.24.0/21, country:US] X-Mailman-Approved-At: Tue, 16 Feb 2021 06:38:21 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2021 18:11:47 -0000 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: (play/rec) pcm1: (play/rec) pcm2: (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?