From nobody Sat Apr 13 08:51:02 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 4VGnGN05rxz5H3Cd for ; Sat, 13 Apr 2024 08:51:08 +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 4VGnGL5nr5z4Xpr for ; Sat, 13 Apr 2024 08:51:06 +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 0000000000A7C6EF.00000000661A4778.0000B767; Sat, 13 Apr 2024 10:51:04 +0200 Date: Sat, 13 Apr 2024 10:51:02 +0200 From: Milan Obuch To: freebsd-multimedia@freebsd.org Subject: Re: Anyone know how to get sound on a 12th Gen Alder Lake based laptop? Message-ID: <20240413105102.072e59b5@zeta.dino.sk> In-Reply-To: References: <3e446c72efefc7fb6a44e90b67a5fd05@bsdforge.com> <20240413080418.348e94d3@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: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.28 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; 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)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(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: 4VGnGL5nr5z4Xpr On Sat, 13 Apr 2024 01:14:28 -0700 Chris wrote: > On 2024-04-12 23:04, Milan Obuch wrote: > > On Fri, 12 Apr 2024 20:59:27 -0700 > > 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. > >> > >> vendor = 'Intel Corporation' > >> device = 'Alder Lake Innovation Platform Framework Processor > >> Participant' > >> > >> hdac0@pci0:0:31:3: class=0x040380 rev=0x01 hdr=0x00 > >> vendor=0x8086 device=0x51c8 subvendor=0x17aa subdevice=0x3881 > >> vendor = 'Intel Corporation' > >> device = 'Alder Lake PCH-P High Definition Audio > >> Controller' class = multimedia > >> subclass = HDA > >> bar [10] = type Memory, range 64, base 0x6001138000, size > >> 16384, enabled > >> bar [20] = type Memory, range 64, base 0x6001000000, size > >> 1048576, enabled > >> > >> pcm0: at nid 33 and 18 on hdaa0 > >> pcm0: Playback: > >> pcm0: Stream cap: 0x00000001 PCM > >> pcm0: PCM cap: 0x000e0060 16 20 24 bits, 44 48 KHz > >> pcm0: DAC: 2 > >> pcm0: > >> pcm0: nid=33 [pin: Headphones (Black Jack)] > >> pcm0: + <- nid=2 [audio output] [src: pcm] > >> pcm0: > >> pcm0: Record: > >> pcm0: Stream cap: 0x00000001 PCM > >> pcm0: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz > >> pcm0: ADC: 7 > >> pcm0: > >> pcm0: nid=7 [audio input] > >> pcm0: + <- nid=36 [audio selector] [src: monitor] > >> pcm0: + <- nid=18 [pin: Mic (Fixed)] [src: monitor] > >> pcm0: > >> pcm0: Master Volume (OSS: vol): -65/0dB > >> pcm0: +- ctl 1 (nid 2 out): -65/0dB (88 steps) > >> pcm0: +- ctl 14 (nid 33 in ): mute > >> pcm0: > >> pcm0: PCM Volume (OSS: pcm): -65/0dB > >> pcm0: +- ctl 1 (nid 2 out): -65/0dB (88 steps) > >> pcm0: +- ctl 14 (nid 33 in ): mute > >> pcm0: > >> pcm0: Microphone2 Volume (OSS: monitor): 0/30dB > >> pcm0: +- ctl 3 (nid 7 in 0): -17/30dB (64 steps) + mute > >> pcm0: +- ctl 6 (nid 18 out): 0/30dB (4 steps) > >> pcm0: > >> pcm0: Recording Level (OSS: rec): -17/30dB > >> pcm0: +- ctl 3 (nid 7 in 0): -17/30dB (64 steps) + mute > >> pcm0: +- ctl 6 (nid 18 out): 0/30dB (4 steps) > >> pcm0: > >> pcm0: Mixer "vol": > >> pcm0: Mixer "pcm": > >> pcm0: Mixer "speaker": > >> pcm0: Mixer "rec": > >> pcm0: Mixer "ogain": > >> pcm0: Mixer "monitor": > >> pcm0: Playback channel set is: Front Left, Front Right, > >> pcm0: Playback channel matrix is: 2.0 (disconnected) > >> pcm0: Automatically set rec source to: monitor > >> pcm0: Recording channel set is: Front Left, Front Right, > >> pcm0: Recording channel matrix is: 2.0 (unknown) > >> pcm1: at nid 25 on hdaa0 > >> pcm1: Record: > >> pcm1: Stream cap: 0x00000001 PCM > >> pcm1: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz > >> pcm1: ADC: 8 > >> pcm1: > >> pcm1: nid=8 [audio input] > >> pcm1: + <- nid=35 [audio mixer] [src: speaker, mic] > >> pcm1: + <- nid=25 [pin: Mic (Black Jack)] [src: mic] > >> pcm1: + <- nid=29 [beep widget] [src: speaker] > >> pcm1: > >> pcm1: Microphone Volume (OSS: mic): 0/30dB > >> pcm1: +- ctl 10 (nid 25 out): 0/30dB (4 steps) > >> pcm1: +- ctl 22 (nid 35 in 1): mute > >> pcm1: > >> pcm1: Speaker/Beep Volume (OSS: speaker) > >> pcm1: +- ctl 25 (nid 35 in 4): mute > >> pcm1: > >> pcm1: Recording Level (OSS: rec): -17/30dB > >> pcm1: +- ctl 4 (nid 8 in 0): -17/30dB (64 steps) + mute > >> pcm1: +- ctl 10 (nid 25 out): 0/30dB (4 steps) > >> pcm1: +- ctl 22 (nid 35 in 1): mute > >> pcm1: +- ctl 25 (nid 35 in 4): mute > >> pcm1: > >> pcm1: Mixer "mic": > >> pcm1: Mixer "rec": > >> pcm1: Recording channel set is: Front Left, Front Right, > >> pcm1: Recording channel matrix is: 2.0 (disconnected) > >> > >> # sysctl hw.snd.default_unit > >> hw.snd.default_unit: 0 > > > > Hi, > > > > what does 'cat /dev/sndstat' show? > I *knew* I was forgetting something. > # cat /dev/sndstat > Installed devices: > pcm0: (play/rec) default > pcm1: (rec) > No devices installed from userspace. So this just confirms what I somehow saw above - pcm1 is input only, so for producing sound, setting hw.snd.default_unit=1 is not going to help. Also, I am not sure, but this line, from your verbose output above pcm0: Playback channel matrix is: 2.0 (disconnected) may explain why you are getting no sound. On my Yoga Book, with working sound, I have pcm1: Playback channel matrix is: 2.0 (unknown) definitely different. > > It should be just small excerpt from > > the above, but still... > > > > HDA setup is a bit of mystery for me, I have GPD MicroPC where I am > > not able to produce any sound using internal speaker, recently > > found Yoga Book working with both internal speaker and output line > > out of the box. > > > > For the former, I have a workaround, kind of - when I connect > > additional monitor via HDMI port, I am able to route sound to that > > monitor just by setting hw.snd.default_unit=2. It is not the best > > solution, it just work well enough for me. > Thanks for the hint. I'll see if I can get anything through HDMI. > > Really appreciate the feedback, Milan. Thanks! > I think it is really easy - connect your HDMI monitor, and you should see new device in 'cat /dev/sndstat' output, probably pcm2. Then, with setting hw.snd.default_unit=2, you should get sound from HDMI monitor speaker(s). Regards, Milan