From nobody Sun Nov  3 08:15:21 2024
X-Original-To: questions@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 4Xh6q36QShz5c6BV
	for <questions@mlmmj.nyi.freebsd.org>; Sun, 03 Nov 2024 08:15:27 +0000 (UTC)
	(envelope-from tamelingdaniel@gmail.com)
Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "smtp.gmail.com", Issuer "WR4" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4Xh6q304Hbz4M8h
	for <questions@freebsd.org>; Sun,  3 Nov 2024 08:15:27 +0000 (UTC)
	(envelope-from tamelingdaniel@gmail.com)
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=YtdEIEvY;
	spf=pass (mx1.freebsd.org: domain of tamelingdaniel@gmail.com designates 2a00:1450:4864:20::52a as permitted sender) smtp.mailfrom=tamelingdaniel@gmail.com;
	dmarc=pass (policy=none) header.from=gmail.com
Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5c9c28c1ecbso4102011a12.0
        for <questions@freebsd.org>; Sun, 03 Nov 2024 01:15:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1730621724; x=1731226524; darn=freebsd.org;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :mime-version:references:message-id:subject:to:from:date:from:to:cc
         :subject:date:message-id:reply-to;
        bh=Z1ZHbT6q04OcCWNf1J4mglLeAH1Ev8vMc1ibhaS4wro=;
        b=YtdEIEvYzPuWAh2r1cNyXFZv3+rCUCgrRWczNPcO0Zi6HsX2GoN1fxG5MUKQUm3ke7
         Xk0XatoFltaAJSTLCFYQQq+SXLpqdqx0KO4jgn89+NKHkc8bILUvswmoI5x1HzgpRB+G
         YnEjXH0ml2UUVYy5NqruIjDn5n5gp6PJ8pHi/sHMFQt9SYCPCGXsXtFmWZwExIepSPtn
         gqL8XOCWtcnrUUDem6yDcpswCA9xLx5Hi+wx4SDAVD55Cm0sd5Gd2Qp7/VjV5WFzvqvW
         NnN2wBhAooWwF/v7fx5by+oTHnyCJ3CCdPwrO8Ml7TESzE8sOB2YA96QqcEloDnfnf6J
         6nzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1730621724; x=1731226524;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :mime-version:references:message-id:subject:to:from:date
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
        bh=Z1ZHbT6q04OcCWNf1J4mglLeAH1Ev8vMc1ibhaS4wro=;
        b=HkmMk3palxPD+t3rMy1c8F9zlvtynoWlp5nv1Jepa8NDneoykTF1m4cmoiG9rJ5u4E
         stmV4+MEs+x/wGVXldze7rrJpFUIY4RshyaC17RHlT0J0dJ17NgD5asam0pVDBrZOk8M
         I25E16IdH9sco9vG0N20mJn8QLDABk5jvXmcHgX5CRTy7qcDVhg3rpbMhct0kywW/cjE
         P1RZKuOxVeQ7MJxOBWsa3qEahXGwxpBrCreBk18bB2BOuqEQQ6vsRIRaA6ZZp7iPsoMd
         6QLuo13nY1o2sG01wNkQ/lBkvk4L+4J3Y1FEt6lKTQOJ2q39Z/KZaC5Lz0yP669xdv5s
         lPWA==
X-Gm-Message-State: AOJu0Yyuom+ptrHHxQNvMjnANnvBH7hlgrhI95hSHKGEJ2hIuGz2BPYX
	1k4b9+r7Z/9zi0XcDzEuYnTKsfVwt53SEmYWvOtwQ/aqhtqd7vW7vQACf9wT
X-Google-Smtp-Source: AGHT+IFuGPlFjFfnQDAxui5rdL6K8f9F3JZlu0NhemHgp+EOaUSi3HymS4mq46atcDHDsiGysbk/Lg==
X-Received: by 2002:a05:6402:3508:b0:5ce:ce43:32f with SMTP id 4fb4d7f45d1cf-5cece4305a3mr2635263a12.35.1730621724098;
        Sun, 03 Nov 2024 01:15:24 -0700 (PDT)
Received: from localhost ([2001:9e8:c433:f00:ec8d:a3b4:fb6d:6c89])
        by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ceac78cce8sm3101860a12.47.2024.11.03.01.15.22
        for <questions@freebsd.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 03 Nov 2024 01:15:22 -0700 (PDT)
Date: Sun, 3 Nov 2024 09:15:21 +0100
From: Daniel Tameling <tamelingdaniel@gmail.com>
To: questions@freebsd.org
Subject: Re: No sound on Dell XPS-9320
Message-ID: <ZycxGbL8hCbS_Jsh@mail.gmail.com>
References: <9c00bb4b-5ef5-4e96-8d87-8d02a7500daa@gmail.com>
 <CO1PR11MB47703E14BD79DDED77F54695E6502@CO1PR11MB4770.namprd11.prod.outlook.com>
 <7c0b5500-e67a-457e-99fe-b858bef93b64@gmail.com>
List-Id: User questions <freebsd-questions.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-questions
List-Help: <mailto:questions+help@freebsd.org>
List-Post: <mailto:questions@freebsd.org>
List-Subscribe: <mailto:questions+subscribe@freebsd.org>
List-Unsubscribe: <mailto:questions+unsubscribe@freebsd.org>
X-BeenThere: freebsd-questions@freebsd.org
Sender: owner-freebsd-questions@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <7c0b5500-e67a-457e-99fe-b858bef93b64@gmail.com>
X-Spamd-Result: default: False [-3.99 / 15.00];
	NEURAL_HAM_LONG(-1.00)[-1.000];
	NEURAL_HAM_MEDIUM(-1.00)[-1.000];
	NEURAL_HAM_SHORT(-0.99)[-0.987];
	DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
	R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36];
	R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601];
	MIME_GOOD(-0.10)[text/plain];
	RCVD_TLS_LAST(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	FROM_HAS_DN(0.00)[];
	ARC_NA(0.00)[];
	MIME_TRACE(0.00)[0:+];
	RCPT_COUNT_ONE(0.00)[1];
	DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
	FREEMAIL_FROM(0.00)[gmail.com];
	DKIM_TRACE(0.00)[gmail.com:+];
	MISSING_XM_UA(0.00)[];
	ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US];
	TO_DN_NONE(0.00)[];
	RCVD_COUNT_TWO(0.00)[2];
	FROM_EQ_ENVFROM(0.00)[];
	FREEMAIL_ENVFROM(0.00)[gmail.com];
	PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org];
	MLMMJ_DEST(0.00)[questions@freebsd.org];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52a:from]
X-Rspamd-Queue-Id: 4Xh6q304Hbz4M8h
X-Spamd-Bar: ---

On Sun, Nov 03, 2024 at 02:06:52AM -0500, Steven Friedrich wrote:
> On 11/2/24 22:00, Edward Sanford Sutton, III wrote:
> > On 10/14/24 09:33, Steven Friedrich wrote:
> > > I bought this laptop about two years ago, I would guess.  I ordered
> > > it with Linux (Canonical), but after a few months it wouldn't update
> > > any longer.  I tried to restore from the recovery image, but it
> > > failed, whining about a shim.  I then tried to use a recovery tool
> > > from Dell's website, that failled too.
> > > 
> > > So I installed debian12 and have been running that until recently.
> > > 
> > > I installed FreeBSD and have no sound:
> > > 
> > > #!/bin/sh -v
> > > pciconf -lv hdac0
> > > hdac0@pci0:0:31:3:    class=0x040100 rev=0x01 hdr=0x00 vendor=0x8086
> > > device=0x51c8 subvendor=0x1028 subdevice=0x0af3
> > >      vendor     = 'Intel Corporation'
> > >      device     = 'Alder Lake PCH-P High Definition Audio Controller'
> > >      class      = multimedia
> > >      subclass   = audio
> > > cat /dev/sndstat
> > > No devices installed.
> > > No devices installed from userspace.
> > > ls /dev/dsp* /dev/pcm*
> > > ls: /dev/dsp*: No such file or directory
> > > ls: /dev/pcm*: No such file or directory
> > > uname -a
> > > FreeBSD XPS-FreeBSD 14.1-STABLE FreeBSD 14.1-STABLE stable/14-
> > > n269085-16e1424d24b9 Friedrich amd64
> > 
> >   Not sure of a way to have it attach the audio driver to the sound
> > device but not get /dev/dsp entries. I think people used to `kldload
> > snd` to have it load a whole series of audio modules onto detected
> > hardware but I doubt that matters since it says snd_hda (built into the
> > kernel) already is attached if I am reading that correctly.
> >   I know the sound system has actively received changes lately so you
> > may find differing results with both older and newer FreeBSD versions.
> > Some changes have been within the past week so up to date 14-stable code
> > is different from your codebase that is over 2 weeks old but I don't
> > know that any of those changes should fix such an issue.
> >   As you are using -stable, there is also a mailing list more focused on
> > that but I don't know if its attention will matter here or not;
> > definitely would be more appropriate if -release worked but -stable
> > broke.
> >   If no one else comes up with ideas and you don't find a problem report
> > for this, it mat be beneficial to make one.
> > 
> I put snd_driver_load="yes" in /boot/loader.conf.local and all drivers
> loaded EXCEPT snd_hda.ko
> 
> Then I changed it to snd_hda_load="yes" and it DIDN'T load any snd drivers.
> 
> 

Not an expert, but I would expect that you don't have to load anything to make sound work.

Anyway, while there isn't a system with your exact hardware, there are
two probes in the unofficial FreeBSD hardware database that are reasonably close:
https://bsd-hardware.info/?view=search&vendorid=8086&deviceid=51c8&subvendorid=1028#list

Maybe looking at their dmesg and kldstat helps you

Best of luck,
Daniel