From nobody Thu Apr 11 10:16:36 2024 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VFbG23YK4z5H91W for ; Thu, 11 Apr 2024 10:16:42 +0000 (UTC) (envelope-from freebsd-multimedia@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VFbG109vRz4qjF for ; Thu, 11 Apr 2024 10:16:40 +0000 (UTC) (envelope-from freebsd-multimedia@dino.sk) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-multimedia@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-multimedia@dino.sk Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 0000000000A7C707.000000006617B885.000008D4; Thu, 11 Apr 2024 12:16:37 +0200 Date: Thu, 11 Apr 2024 12:16:36 +0200 From: Milan Obuch To: freebsd-multimedia@freebsd.org Subject: Sound on Yoga Book Message-ID: <20240411121636.1259c897@zeta.dino.sk> X-Mailer: Claws Mail 3.20.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.16 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.86)[-0.857]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4VFbG109vRz4qjF Hi, I am playing with FreeBSD on a new box, dual screen Yoga Book - see following URL for some info and pictures: https://www.aliexpress.com/item/1005006582938099.html After installing FreeBSD, tinkering a bit with ports etc. I decided to try sound. This time, it was really easy - with HDAC hdac0@pci0:0:31:3: class=0x040100 rev=0x00 hdr=0x00 vendor=0x8086 device=0x54c8 subvendor=0x10ec subdevice=0x111e vendor = 'Intel Corporation' device = 'Alder Lake-N PCH High Definition Audio Controller' class = multimedia subclass = audio bar [10] = type Memory, range 64, base 0x6001150000, size 16384, enabled bar [20] = type Memory, range 64, base 0x6001000000, size 1048576, enabled (excerpt from 'pciconf -lvb') it works out of the box, just figuring out the correct output was the 'issue'. sysctl hw.snd.default_unit=0 switches default output to external line/speakers, whereas sysctl hw.snd.default_unit=1 switches default output to internal speakers. Now, I just realised, just using 'cat /dev/sndstat' would tell it immediatelly: Installed devices: pcm0: (play) pcm1: (play) default No devices installed from userspace. I could get the sound earlier, I guess :) but it works nicelly, and that's important. So I can watch some video via vlc. Is there anathing interesting I could check? For the completeness, I installed last 15.0 snapshot, 'uname -a' shows FreeBSD yoga.dino.sk 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n269103-112783ebbc31: Thu Apr 4 03:36:01 UTC 2024 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Regards, Milan