Date: Sun, 31 Jul 2022 19:40:21 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: freebsd-hardware@freebsd.org Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Lenovo Legion 5i speakers support Message-ID: <CAFDf7UKcy1ocCOquEKonKtkbMCSsMr2POst1UA7m%2B1uixZrUfg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000e0e30d05e51e3775 Content-Type: text/plain; charset="UTF-8" Hello, Review D30333 <https://reviews.freebsd.org/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 <https://people.freebsd.org/~eduardo/logs/speakers/> 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 <div dir=3D"ltr"><div>Hello,</div><div><br></div><div>Review <a href=3D"htt= ps://reviews.freebsd.org/D30333"><span class=3D"gmail-phui-crumb-view gmail= -phabricator-last-crumb"><span class=3D"gmail-phui-crumb-name">D30333</span= ></span></a><span class=3D"gmail-phui-crumb-view gmail-phabricator-last-cru= mb"><span class=3D"gmail-phui-crumb-name"> added support for Lenovo Legion = 5 AMD speakers.<br><br></span></span></div><div><span class=3D"gmail-phui-c= rumb-view gmail-phabricator-last-crumb"><span class=3D"gmail-phui-crumb-nam= e">I'm trying to add/test support for same laptop INTEL version that co= uld be share same hardware setup.<br></span></span></div><div><span class= =3D"gmail-phui-crumb-view gmail-phabricator-last-crumb"><span class=3D"gmai= l-phui-crumb-name"><br></span></span></div><div><span class=3D"gmail-phui-c= rumb-view gmail-phabricator-last-crumb"><span class=3D"gmail-phui-crumb-nam= e">Any tips to hack sys/dev/sound/pci/hda/hdaa_patches.c so I can test it?<= br></span></span></div><div>Legion 5i <a href=3D"https://people.freebsd.org= /~eduardo/logs/speakers/">system logs</a></div><div><br></div><div>this is = part of code included for ENOVO_L5AMD</div><div>---</div><div>else if (id = =3D=3D HDA_CODEC_ALC257 &&<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (subid =3D=3D LENOVO_L5AMD_SUBVENDOR)) {<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 switch (nid) {<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 20:<br>=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";<br>=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;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 case 33:<br>=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";<br>=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;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 }</div><div>---</div><div><br></div><div>Cheers,</div>= <div><br></div><div>Nuno Teixeira<br></div></div> --000000000000e0e30d05e51e3775--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKcy1ocCOquEKonKtkbMCSsMr2POst1UA7m%2B1uixZrUfg>