From nobody Sun Jul 31 18:40:21 2022 X-Original-To: freebsd-hardware@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 4LwqnY3dYpz4Y1Lr; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@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 4LwqnY39g6z3DrF; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292833; 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; bh=JVWTotYcuXkn2l0bEKE1E7b5YOz7BSWOxieqJppAMb8=; b=Lb6yaAhlTJxsVs/ZVXatPcU+x7N9xH6GG+UlTUY0wViYZIv99eXBriKhjXCkOxT64Kw05M qpJj9DjKfwlaUtj1sPhVIvjdBK/Gfj2HZ7ZgG2N9OdFyMVI9MZj66qiH8qb55Tv4+qhd74 YUXasCqj8rYE8pSA1+W3aXufRvbFIGOb6RVaILv1v+Q/Sz2ThR2iPr8kDtEc5bchePbcrf QIn58jrHwQk1GQLa9oPMBLA3Rl1Vic29Tp1/GzSByJMP9wFreKq39A2nk+Jgl0tKct+jj2 V/miYhmbUoky6/T6SXjkNcSN6WutwggbcGTiRG5OI3f8ibKXlaRQWvuJ8qsmzA== Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) (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 4LwqnY25g7zhM8; Sun, 31 Jul 2022 18:40:33 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vk1-f176.google.com with SMTP id e3so2496681vkg.4; Sun, 31 Jul 2022 11:40:33 -0700 (PDT) X-Gm-Message-State: ACgBeo0KqvCpoeWGx6+BiZKTrt7+ZX+y0phvC5RMYwld/NpUOAQIOudp gjE3+DIAV1Uml6omXm84MWNde80PgJ401fJB4N0= X-Google-Smtp-Source: AA6agR7ZdEAg8KmCIzLwSeNTX3EkFaXJcLpGM7ZmQPYK5TjmBbDR6ZvG+9I2DUiUPyDf/Ae4DDKEC/P6ckLoqvJ+mSQ= X-Received: by 2002:a05:6122:ce:b0:377:4e0f:a037 with SMTP id h14-20020a05612200ce00b003774e0fa037mr1565660vkc.5.1659292832816; Sun, 31 Jul 2022 11:40:32 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Sun, 31 Jul 2022 19:40:21 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Lenovo Legion 5i speakers support To: freebsd-hardware@freebsd.org Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000e0e30d05e51e3775" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292833; 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; bh=JVWTotYcuXkn2l0bEKE1E7b5YOz7BSWOxieqJppAMb8=; b=gwIqW2FVWJLNirViUOMUMsDA3kn0tu9+cvusPd8mp0vLmCuqWUR+g4coxPshjUOeQ0XNrf zlb6BaVmRJpD2kP+7tTSqdwsVU2ZX/7d9hixLw9Gf/Qvx4ZuP3ZNEySF8ELYdiK9405Bbz sa8t+iRtIFMHqshTF/CyFDBS5e5rljI+SDKh7G+ubiERPUBSg3VmG+5NFT+sYCcNgXfT8I T4McCZ0xyKCkOGeowNgEcCG5ATJ6zlVUFdc92WcWTNVpiuhJkao2P+MdUS6Bec+PAsvMDt nZtfcnMx+Dy9gZqLEzvQJ5OZLR16IrEiI7rP9wyWzNEbTHaIvgVjCJEKn1aXJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659292833; a=rsa-sha256; cv=none; b=J/taWOthOetjpF3dfHM4N0R3gDhZdYsoqtuX61hlKQprvWfQaYSu5Bl6C2FIcXXWR5DddL AUdKcfZv4J3DxZiXBrz/2za7brrlYwhmE18zNyfP2g/atntd4uslBGftqso4qd4X/tVvzQ MkI3/cI07QgkdBsoVrVdVckNF+rhLfnTJDuHSWjv75w6HAylEOjRU3c9K1+bO+ZWkHGOgK htEl7PraQ0N/jl8iR4sqxAPDLdT/8p5jXR6IfPhiz2YWYwubmVerCCVQCMMYq4BN6kPRDd 6+aoVJ+5TwF4h8+iTabxq55dKe+GB82OTcSVxnQCYJ+9s1QL6cehqTCEi/0iCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --000000000000e0e30d05e51e3775 Content-Type: text/plain; charset="UTF-8" Hello, Review D30333 added support for Lenovo Legion 5 AMD speakers. I'm trying to add/test support for same laptop INTEL version that could be share same hardware setup. Any tips to hack sys/dev/sound/pci/hda/hdaa_patches.c so I can test it? Legion 5i system logs this is part of code included for ENOVO_L5AMD --- else if (id == HDA_CODEC_ALC257 && (subid == LENOVO_L5AMD_SUBVENDOR)) { switch (nid) { case 20: patch_str = "as=1 seq=0"; break; case 33: patch_str = "as=1 seq=15"; break; } --- Cheers, Nuno Teixeira --000000000000e0e30d05e51e3775 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Review D30333 added support for Lenovo Legion = 5 AMD speakers.

I'm trying to add/test support for same laptop INTEL version that co= uld be share same hardware setup.

Any tips to hack sys/dev/sound/pci/hda/hdaa_patches.c so I can test it?<= br>
Legion 5i system logs

this is = part of code included for ENOVO_L5AMD
---
else if (id = =3D=3D HDA_CODEC_ALC257 &&
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (subid =3D=3D LENOVO_L5AMD_SUBVENDOR)) {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 switch (nid) {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 20:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 patch_str =3D "as= =3D1 seq=3D0";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 case 33:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 patch_str =3D "as=3D1 se= q=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 break;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 }
---

Cheers,
=

Nuno Teixeira
--000000000000e0e30d05e51e3775--