From nobody Mon Apr 22 15:44:21 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 4VNV163GZyz5HLkQ for ; Mon, 22 Apr 2024 15:44:26 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNV162KSjz41c2; Mon, 22 Apr 2024 15:44:26 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713800666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8F7HQCbScVJAXQngMb0drrxa/fVkDpKDj9aqPuCq9dM=; b=iANOmaUluuxyd+/5MyxWxikj3YJOay+VQ+K3FWAP6qgpfPzWPlRhOIIk2UZ7KWNRr/h7AB 7jWjk9qL0orVvHjsioiuQJGcKv5zTCysB7i7ZL18lO9k9575lcsqQSwlXEIAp0wsOGLy/T kbEufw3K+KWWLtLZyP4RRk0+hIBgNWxFY2I/O6dnBjyT5C6JLepcgjUvpnft/ALh8hit0V wINct74f52ytjsopF/izgD/fmvEWWRl2Ub019PkevjJuTjtFce0FydroZJ8tFVuTb5l/Lo Z+/V5A9UtlYHatKN2y2s/W0A7Ibma2m8ShXiKyjfXa0TFzYpfOrS+AQMSWvbOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713800666; a=rsa-sha256; cv=none; b=apWx9wOLd11rtZ8rl3ctVLtwvobX29Lo6CDui00tvh9S67TSYCxKimBkz44VVoePQgRG3h e+yiSY+tp25v4BQSVQYuC2CoX/Z2sg4oX01MCVH0lFbXTkA94sVObZ1HnLcdn1W8KQUQxN fR7B0u84J8ZgPCjaWurwAoiimdP6hfpItQAvJqI0opiV25ZsjQJVmTxvN9U/ymPnhqVDeF cF8C+Auo9rNQerJxY0+/qj48rmOv+I8IKaK9ksTPhg0P2WOMGOa3ACjeXz5b8k01EAk1Ai Y53M1g+VUniCuEDAF21ADI81RoRG4Kz9JBFBD5wb5UIVBs/XIujIyXrln7V0cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713800666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=8F7HQCbScVJAXQngMb0drrxa/fVkDpKDj9aqPuCq9dM=; b=ZT4HgNQkd8vJPeEsoFQiviRH0fzD//Sb6mwK1xUf/NyBtAlm2cboLLp9/5cSQlGkEH+JEk XyHGXHS1WfLBvbZUqz6hK/M3oc+b844MuOrIXkEw6XFBUWVR79F+7CLflghRSuNG7eQCrO 4UVPnZFUN+RBYidNqdad63Z6ClH3vGrLBW1DAaFVfU7S1xBxiQM0v2Nlc+iF5jKs41fgHN jb0iT4DSVeg9vTbV2IhuOvo0mOZ+IKH9wTEZuTDlhudS0WRYJm6jWLi4xqGbTRGuxIFuHR VkWXV5eInxykZC79JUNI5utEDHwxtNv3LwA+OOsHkq3Gv9KEiYz9f4CAvZ3FmA== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VNV156gKJz1NTB; Mon, 22 Apr 2024 15:44:25 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=Nu/jPMgYVDdGV4G 8fy9dKOjAM+jK2T2dBNHV61L1haQ=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=EJas8RTIhBK7V2cOxAqPzsW12+HimK4Vads420u5 wOKWsvM9NxbGDIbmsl5ANP5zS1T0HJSmIoaIKvUX4WqYK7Lf0PybFJLN+V3t7SRyYc7oPn KRkqJnuyWCaWN5cPc6gLYypsJInVDR9WNDWX+H0XcFP0a5yQrBAP6gNC6t0e4= X-Spam-Score: 6.4 / 15 X-Spam-Status: Yes, score=6.400 required=15.000 tests=[ARC_NA=0.000, ASN=0.000, FROM_EQ_ENVFROM=0.000 FROM_HAS_DN=0.000, MID_RHS_NOT_FQDN=0.500, MIME_GOOD=-0.100 MIME_TRACE=0.000, NEURAL_SPAM=0.000, RCPT_COUNT_TWO=0.000 RCVD_COUNT_ONE=0.000, RCVD_TLS_ALL=0.000, RCVD_VIA_SMTP_AUTH=0.000 SPAM_FLAG=5.000, SUBJECT_ENDS_QUESTION=1.000, TO_DN_ALL=0.000 TO_MATCH_ENVRCPT_ALL=0.000] Received: from tpad ( [212.191.80.214]) by margiolis.net (OpenSMTPD) with ESMTPSA id cc073cf4 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 22 Apr 2024 15:44:22 +0000 (UTC) Date: Mon, 22 Apr 2024 17:44:21 +0200 From: Christos Margiolis To: Chris Cc: freebsd-multimedia Subject: Re: Anyone know how to get sound on a 12th Gen Alder Lake based laptop? Message-ID: References: <3e446c72efefc7fb6a44e90b67a5fd05@bsdforge.com> <594f9cd752d22d888381081557328dae@bsdforge.com> 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-Disposition: inline In-Reply-To: <594f9cd752d22d888381081557328dae@bsdforge.com> Hello Chris, Chris wrote: > On 2024-04-15 07:56, Christos Margiolis wrote: > > Hello Chris, > > > > Chris wrote: > > > I've read everything I can find on the subject. But have not been > > > unable to produce sound on my Lenovo Ideapad 2. It's a 12th Gen > > > Alder platform. Following are all the details. If anyone has had > > > success, or knows how to get sound. Please share your info. > > > > Could you please set dev.hdac.0.pindump=1 and attach the output shown in > > dmesg(8)? > Thank you very much for taking the time to help, Christos! > I haven't needed to tweak sound since 8.4. Everything is completely > different now. But the output from dmesg(8) appears to say everything > is disabled. :( > > [...] > > I've placed a copy here in case your MUA mangles the output in this message: > https://bitpit.us/ALC257-tmp Can you add the following lines to /boot/device.hints, reboot and test whether your headphones and speakers work? hint.hdac.0.cad0.nid20.config="as=1 seq=0" hint.hdac.0.cad0.nid33.config="as=1 seq=15" Christos From nobody Tue Apr 23 14:21:12 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 4VP46h3fq1z5HLNb for ; Tue, 23 Apr 2024 14:21:16 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VP46h3DD8z4qkK; Tue, 23 Apr 2024 14:21:16 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713882076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8MbEwKZ/ONPRq8idFPYZl4Uwlo5/v0JxrYSPYEFhgwI=; b=NkUWQGH6jtal1Prplce1dpiucvNXSv6KejRLF08VxlC9l7pieu5ZhggS2b5Yl7H/ceu+OD beWaSzJcWrDEBRkLfkc5ot6ZvXONU39mws7emKPo5+x+OflHkzNEY/UAojH9fQaOXtdtrM fgegKoKi2XocZGAMCo8z/JT6an7vecQYTkK/1ySrz2s9Io3PktIeHcMUxEasTq9FWZesSc 4bWx3zBS4GEDylSM3ILeAvDWJ5bov2j+vM3toU0PTXPIkCcVWYMSxnWsuEhszaXc9tJ7ay zjhrHlYtPV5SMoFxz+NRgrG+pKjUudPsjI5N7jFpwh5DqjXsVptMTRIf6zdR6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713882076; a=rsa-sha256; cv=none; b=gumpJ+sksMt19pmnVyjAOnzv2rmB9oPhieNAPiLmUSA5cF5g5IVeQlUfNcEAJBesHT7cBn om1LJRocHMgML+bww4uVIe5dK+14UcsFcdcqwiuNYjoRmR/HSrpKr8K0JOt5FfeLJMggLj /s6XNHWfA0QLz2/HL3zDUqZLxfi/l8S6bCrnbKx5Kzu0CwnkSmjaT1YMY2V/77ZfmukIsx kJSY53fVYjlKjP770FSkUBV08qvnejp231GPLJ6+yk2fVMlDEdjw09Jar9F3hXX+/UUJfz 5gD3HL750M6EXFtsO4IkE/kRriEYhksUJpIv/ptgU7l5q8R+blgnZ/iST9CTwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713882076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=8MbEwKZ/ONPRq8idFPYZl4Uwlo5/v0JxrYSPYEFhgwI=; b=xdisUeUqwX03sBUynmHeTWL6t5yjHgrcIgZ1lRu0rwgDEbY9VNxjcEDgYLfsWcII9pyGJZ RnshM5ef8u46FhZaGO2MwvEKTxo5qSHY4/OX+6p/qycJibq9fc1hneb8eY1024iu1MtdDK 5vv1W7Siv9ue4z9N+m9OKdGNbCq952nsQVNnUp1ED8aKx0750D/3QpkT3Q2O8i8aO/SvHx 5IM9ebendexWlqYKMin+yi4Nv+mVJIH3e50ToxzwEwnk7+Ghcv2H99Y/V4YcmITP/eFMed KLgfQ+VnQZ/GbA3qLlMRMdJmgGbJK5zNGlGbdsSldnjLeA6gh0rGjYTPEfWZ7w== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VP46g6SYRzbbT; Tue, 23 Apr 2024 14:21:15 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=8MbEwKZ/ONPRq8i dFPYZl4Uwlo5/v0JxrYSPYEFhgwI=; h=subject:cc:to:from:date; d=margiolis.net; b=aPoe/HF4mK29YX1CQUdBE0K8U5QFz+JU8vjfLvzgi2k3ApO24Eu o/F5xmBBcfHTgWizwaDYwNM0+YJlbqqoOntqWQqW+8RejxZcYeuAic4sK3GdTVY6egUfm1 vac32zxbhEioz1/V5MT/NExSEiW4arPt9+tirul9BnPnuSh9Pw= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id 5dc39a9f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 23 Apr 2024 14:21:13 +0000 (UTC) Date: Tue, 23 Apr 2024 16:21:12 +0200 From: Christos Margiolis To: status-updates@freebsdfoundation.org Cc: freebsd-multimedia@freebsd.org, markj@freebsd.org, jrm@freebsd.org Subject: [Development report #11] Audio Stack Improvements Message-ID: 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit MFC’d DEVFS_CDEVPRIV(9) and asynchronous device detach patches to stable/14 earlier (would normally be after 2 months) after request from re@ so that they can land in 14.1-BETA*, since the call-for-testing so far has received positive feedback and things seem to work as expected. Will send more call-for-testing emails once the 14.1-BETA1 is out (around May 5). Working on retiring the unit.* code in sound(4). See commit message in review for more information: https://reviews.freebsd.org/D44912 Exchanging emails with some snd_hda(4) users who experience problems with sound on their laptops (most likely pin-patching related issues as usual). Minor patches/clean up: https://cgit.freebsd.org/src/commit/?id=d0032e6a9e6596302bf129d7f68a627a02c6cd0a https://cgit.freebsd.org/src/commit/?id=41ab202ff74ea6af7e9125c9dfb430c729380f41 https://cgit.freebsd.org/src/commit/?id=4d2be7be3837d66ba242a0a7fd51632c3f89285d https://cgit.freebsd.org/src/commit/?id=17969e696325273e250a1dc73f43de76c0836aae https://cgit.freebsd.org/src/commit/?id=8b97dce6973ca1b6c3407c34c76d459f43ca1061 https://cgit.freebsd.org/src/commit/?id=a44c45c7f597d67d37e09396b0778a2847a30981 https://cgit.freebsd.org/src/commit/?id=1b82d425ec0ac155765bcdf706040534309e9c94 Closed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278319 Starting to sketch out oss(3). Needs careful planning. This work is sponsored by the FreeBSD Foundation. Christos From nobody Fri Apr 26 03:45:56 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 4VQdtN3h3Nz5Hkw3 for ; Fri, 26 Apr 2024 03:46:04 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VQdtM6LpLz4cDm; Fri, 26 Apr 2024 03:46:03 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ultimatedns.net header.s=mx99 header.b="M0ah/XsG"; spf=none (mx1.freebsd.org: domain of bsd-lists@bsdforge.com has no SPF policy when checking 24.113.41.81) smtp.mailfrom=bsd-lists@bsdforge.com Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 43Q3jubC021833; Thu, 25 Apr 2024 20:46:02 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1714103162; x=1714103762; r=y; bh=fBX1UAGVb8QinGIiVqdQJEGXv8kAYYGWhJmXoEuoC+c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=M0ah/XsGm+LIJQZoDLfQ24ZaAOzO9CL/4F7gCnXGnr+YuiYrIT/Mdo1EeVnTfDREm FDwQ2D8prpsgn3CoHEmu5Qczd5HnYqLmQQutoKd9fXZFW0STl0LtS3rbGNFH1pj94v 4Wqgg5ILafbxUP+mOjBvMOm91z/8GkkxqbVZ79QiSJw+pw5BKxNsUZrdtMYNlFAxVS tOxTbeE5Q6u5XroPug/j5SVjL2lpN5nFzUTDn4WN4SvSbSgBVSpTDGUY3MNoTMn9X5 dBxRVj33KyIU+s6zGh8ckxqRx1Gu/KVHi/5+t6FZjxLObU7WwrkQSg6roxAY6UJs5e oPzIiMkhi8fBw== 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 Date: Thu, 25 Apr 2024 20:45:56 -0700 From: Chris To: Christos Margiolis Cc: freebsd-multimedia Subject: Re: Anyone know how to get sound on a 12th Gen Alder Lake based laptop? In-Reply-To: References: <3e446c72efefc7fb6a44e90b67a5fd05@bsdforge.com> <594f9cd752d22d888381081557328dae@bsdforge.com> User-Agent: UDNSMS/17.0 Message-ID: <59c5358eed5946b78fabb421a81bb792@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: / X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_ip X-Spamd-Result: default: False [0.80 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_ALLOW(-0.20)[ultimatedns.net:s=mx99]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; local_wl_ip(0.00)[24.113.41.81]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[ultimatedns.net:+] X-Rspamd-Queue-Id: 4VQdtM6LpLz4cDm On 2024-04-22 08:44, Christos Margiolis wrote: > Hello Chris, > > Chris wrote: >> On 2024-04-15 07:56, Christos Margiolis wrote: >> > Hello Chris, >> > >> > Chris wrote: >> > > I've read everything I can find on the subject. But have not been >> > > unable to produce sound on my Lenovo Ideapad 2. It's a 12th Gen >> > > Alder platform. Following are all the details. If anyone has had >> > > success, or knows how to get sound. Please share your info. >> > >> > Could you please set dev.hdac.0.pindump=1 and attach the output shown in >> > dmesg(8)? >> Thank you very much for taking the time to help, Christos! >> I haven't needed to tweak sound since 8.4. Everything is completely >> different now. But the output from dmesg(8) appears to say everything >> is disabled. :( >> >> [...] >> >> I've placed a copy here in case your MUA mangles the output in this >> message: >> https://bitpit.us/ALC257-tmp > > Can you add the following lines to /boot/device.hints, reboot and test > whether your headphones and speakers work? > > hint.hdac.0.cad0.nid20.config="as=1 seq=0" > hint.hdac.0.cad0.nid33.config="as=1 seq=15" Thank you very much, Christos! After adding those lines and adding ALSA. Sound works as expected. :) Sorry to have bothered you with this. I haven't needed to touch sound settings since ~8.4, because it "just worked". Is there anywhere that might explain the correlation between the labels and numbers that "mere mortals" can comprehend? Thanks again! > > Christos --Chris