From nobody Fri Aug 26 16:51:07 2022 X-Original-To: freebsd-current@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 4MDm7W3k0qz4ZTT1 for ; Fri, 26 Aug 2022 16:51:19 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4MDm7W398Dz3MGV; Fri, 26 Aug 2022 16:51:19 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661532679; 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=15SedzRPsWX4oon7MOTj08JusjpYd9C1uEKeWEallN0=; b=V2JJll5Eb3wntvgkuAYcMN0FmeHXwFarjaY0lp0+fShtvld70lwPgkOqa96KUNfP9sp4Di Q4yWvYDT1Pt09PyoNT5OBPcFb7DeZsQH/602wP/sZ/ObyL4IMIpLiFz3iocw3o6sc4TNUs OQBZZeB1dWLumFmJIU9e62hh2peVhpBeEjMLRr84JfLo6WKVh6gPzBmePCzuEWR9m/Mwh/ /22Yli3Rv2K62A1chlKyTLbOmfueaZ/qxTSSEx6geyh0YY9xqhMQjPSSGljClawYtVMbhE 58L0TPXPqw5w8Om5BzXkm8bBhqxs0Kb//spLaCkMy4dSebE6rulqKoSO9AOqlw== Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (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 "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MDm7W25VFz13bP; Fri, 26 Aug 2022 16:51:19 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-ua1-f43.google.com with SMTP id x15so377069uat.2; Fri, 26 Aug 2022 09:51:19 -0700 (PDT) X-Gm-Message-State: ACgBeo3E6d5sYJYqZL7YRqz2BZUY70roV+xwRAyrjJ7MrYDp2OaROfBW ghcAYGRjtgQwaBuacCRGfqOz2g+AL6T+Xcia6cI= X-Google-Smtp-Source: AA6agR5npwbB1qcZYglZZM+JOvciz8lwdem2aigo1aWU/UT36t7smwTZgcOAMUBur1iLb9dP2hx3S2S62XSbvv/bmUM= X-Received: by 2002:ab0:20d2:0:b0:391:6cdb:bb with SMTP id z18-20020ab020d2000000b003916cdb00bbmr228492ual.13.1661532678833; Fri, 26 Aug 2022 09:51:18 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <94e271b7-3019-a377-bb8b-e681c78b0d82@FreeBSD.org> <385387e0-9dae-d797-1af0-05cd44b4300c@FreeBSD.org> In-Reply-To: <385387e0-9dae-d797-1af0-05cd44b4300c@FreeBSD.org> From: Nuno Teixeira Date: Fri, 26 Aug 2022 17:51:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Lenovo Legion 5 Intel speakers working ok! To: Jung-uk Kim Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="0000000000001acb2e05e727b9d9" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661532679; 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=15SedzRPsWX4oon7MOTj08JusjpYd9C1uEKeWEallN0=; b=goYcd+lu8GjsO6Omd2OajZO2/ErnThZ9KWIXWJcSIkJ3uVrD5C/i29nflm9zmb4mCVbfkI fTrhTp0nQoe8cl9Q9z9YjYM9R1RNy2xc9/qfKDhw0eIKMsGOJtGXKNZnFRCHqGTxXPyFEx AtcIZAuQo6k0X67LQEiIvkkP0ybAosEhB3NSQmBTEu5vcy632Ff+6dgrOQoAd+WRgs6sCh Qp3ENZTgtj/H9WPVkburOFytfEgPXwC7vdB9klY4CUX44e9rWPQYOfmOtLPDh4EOWtFt8+ vDTpOAgtb4A6z6Q4pu5/f7vGBsT9DZuVS6zdwY2IlVjWPgwp1aTUKVFDNlLjmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661532679; a=rsa-sha256; cv=none; b=a4P1MedXJgcHfJuXv0hE7se9RjruoRzkNKSDd5MEkAzosz9OrYldStwjwq+a/wsqb54qBq WZ9JqyUAe+qe4u/fH9aL9dQ+KgYNfdNjScBupNnllVaAVbf6jKW+IETDQTjvZjhODj89gy te2aGqNgdTGSUeMNsKRNKAzl6IP86RMJYbWVYK1Ss2rN+8EnXks1YT8xI2ylnAWVXYnEOO 0dGxse4hQ02KR3kkMTjWBWHKvlzafI8TxREAUnrun/8V4WTkveLhzhVU1IJ6ivj4kqoFlz F3qkhK1cxu1ICKWRpMec4jvJFqbwJXk2N0F1R7FoAwWlC8K25+WcTR47FeOG4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --0000000000001acb2e05e727b9d9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all! patch ready and tested at PR 265632 Cheers, Jung-uk Kim escreveu no dia quinta, 25/08/2022 =C3=A0(s) 21:24: > On 22. 8. 25., Nuno Teixeira wrote: > > Hi! > > > > `pciconf -l | grep ^hdac`: > > --- > > hdac1@pci0:0:31:3: class=3D0x040380 rev=3D0x00 hdr=3D0x00 vendor= =3D0x8086 > > device=3D0x06c8 subvendor=3D0x17aa subdevice=3D0x380f > > ^^^^ > > > > ^^^^^ ^^^^ > > hdac0@pci0:1:0:1: class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de > > device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3ffb > > --- > > > > I think hdac1 is what I'm looking for: > > --- > > hdac1@pci0:0:31:3: class=3D0x040380 rev=3D0x00 hdr=3D0x00 vendor= =3D0x8086 > > device=3D0x06c8 subvendor=3D0x17aa subdevice=3D0x380f > > vendor =3D 'Intel Corporation' > > device =3D 'Comet Lake PCH cAVS' > > class =3D multimedia > > subclass =3D HDA > > --- > > > > (LENOVO_VENDORID 0x17aa) > > > > maybe: > > #define LENOVO_L5INTEL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x380f) ? > > > > ^^^^ > > > ^^^^ > > I guess. :-) > > JK > > > Jung-uk Kim > escreveu no > dia > > quinta, 25/08/2022 =C3=A0(s) 20:15: > > > > On 22. 8. 25., Nuno Teixeira wrote: > > > ** Same config were imported from D30333 > > > > >for Legion 5 AMD, PR 265632 > > > > >for In= tel > > version > > > > > > Nuno Teixeira > > >> > > > escreveu no dia quinta, 25/08/2022 =C3=A0(s) 19:59: > > > > > > Hello, > > > > > > I have Lenovo Legion 5 Intel speakers working ok with > > device.hints: > > > --- > > > hint.hdaa.1.nid20.config=3D"as=3D1 seq=3D0" > > > hint.hdaa.1.nid33.config=3D"as=3D1 seq=3D15" > > > --- > > > > > > Same config were imported from D30333 > > > > >and PR 265632 > > > > > for > > > Legion 5 AMD: > > > (sys/dev/sound/pci/hda/hdac.h) > > > --- > > > #define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, > > 0x381b) > > > --- > > > How do I found id for Intel version so I can submit a patch? > > > > Try "pciconf -l | grep ^hdac". You'll see subvendor and subdevice. > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000001acb2e05e727b9d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all!

patch ready and test= ed at PR 265632

Cheers,

Jung-uk Kim <<= a href=3D"mailto:jkim@freebsd.org">jkim@freebsd.org> escreveu no dia= quinta, 25/08/2022 =C3=A0(s) 21:24:
On 22. 8. 25., Nuno Teixeira wrote:
> Hi!
>
> `pciconf -l | grep ^hdac`:
> ---
> hdac1@pci0:0:31:3: =C2=A0 =C2=A0 =C2=A0class=3D0x040380 rev=3D0x00 hdr= =3D0x00 vendor=3D0x8086
> device=3D0x06c8 subvendor=3D0x17aa subdevice=3D0x380f
> ^^^^=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
> ^^^^^=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^^^^
> hdac0@pci0:1:0:1: =C2=A0 =C2=A0 =C2=A0 class=3D0x040300 rev=3D0xa1 hdr= =3D0x00 vendor=3D0x10de
> device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3ffb
> ---
>
> I think hdac1 is what I'm looking for:
> ---
> hdac1@pci0:0:31:3: =C2=A0 =C2=A0 =C2=A0class=3D0x040380 rev=3D0x00 hdr= =3D0x00 vendor=3D0x8086
> device=3D0x06c8 subvendor=3D0x17aa subdevice=3D0x380f
>=C2=A0 =C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'Intel Corporation= 9;
>=C2=A0 =C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D 'Comet Lake PCH cAVS&= #39;
>=C2=A0 =C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D multimedia
>=C2=A0 =C2=A0 =C2=A0 subclass =C2=A0 =3D HDA
> ---
>
> (LENOVO_VENDORID =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x17aa)
>
> maybe:
> #define LENOVO_L5INTEL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x380f) ?=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
> ^^^^=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
> ^^^^

I guess. :-)

JK

> Jung-uk Kim <= jkim@freebsd.org <mailto:jkim@freebsd.org>> escreveu no dia
> quinta, 25/08/2022 =C3=A0(s) 20:15:
>
>=C2=A0 =C2=A0 =C2=A0On 22. 8. 25., Nuno Teixeira wrote:
>=C2=A0 =C2=A0 =C2=A0 > ** Same config were imported from D30333
>=C2=A0 =C2=A0 =C2=A0 > <https://reviews.freebsd.org/D303= 33
>=C2=A0 =C2=A0 =C2=A0<https://reviews.freebsd.org/D30333= >>for Legion 5 AMD, PR 265632
>=C2=A0 =C2=A0 =C2=A0 > <https://= bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265632
>=C2=A0 =C2=A0 =C2=A0<https://bugs.f= reebsd.org/bugzilla/show_bug.cgi?id=3D265632>>for Intel
>=C2=A0 =C2=A0 =C2=A0version
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 > Nuno Teixeira <eduardo@freebsd.org <mailto:eduardo@freebsd.org><= br> >=C2=A0 =C2=A0 =C2=A0<mailto:eduardo@freebsd.org <mailto:eduardo@freebsd.org>>>
>=C2=A0 =C2=A0 =C2=A0 > escreveu no dia quinta, 25/08/2022 =C3=A0(s) = 19:59:
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0Hello,
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0I have Lenovo Legion 5 Int= el speakers working ok with
>=C2=A0 =C2=A0 =C2=A0device.hints:
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0---
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0hint.hdaa.1.nid20.config= =3D"as=3D1 seq=3D0"
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0hint.hdaa.1.nid33.config= =3D"as=3D1 seq=3D15"
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0---
>=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0Same config were imported = from D30333
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0<https://revie= ws.freebsd.org/D30333
>=C2=A0 =C2=A0 =C2=A0<https://reviews.freebsd.org/D30333= >>and PR 265632
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265632<= br> >=C2=A0 =C2=A0 =C2=A0<https://bugs.f= reebsd.org/bugzilla/show_bug.cgi?id=3D265632>> for
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0Legion 5 AMD:
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0(sys/dev/sound/pci/hda/hda= c.h)
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0---
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0#define LENOVO_L5AMD_SUBVE= NDOR HDA_MODEL_CONSTRUCT(LENOVO,
>=C2=A0 =C2=A0 =C2=A00x381b)
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0---
>=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0How do I found id for Inte= l version so I can submit a patch?
>
>=C2=A0 =C2=A0 =C2=A0Try "pciconf -l | grep ^hdac".=C2=A0 You&= #39;ll see subvendor and subdevice.


--
Nun= o Teixeira
FreeBSD Committer (ports)
--0000000000001acb2e05e727b9d9--