Comment 242 for bug 1958019

Revision history for this message
In , cam (cam-linux-kernel-bugs) wrote :

Created attachment 297559
linux-5.12.12-legion-sound-0.0.1.patch

And here's a patch. PLEASE TEST! ...At your own risk.

This is against Linux 5.12.2, but will likely work against many others.

It seems to work even after resuming (but from the kernel code I see that sound cards are re-initialized on resume so no surprises there).

I'm unsure if this will resolve the idle sound issue. If your sound still works after 2 hours, we're good to go.

In my experience, it takes less than 2 hours before the speakers power down, but I don't know how long that is. 2 hours is a pretty safe test.

I'm using the 562 verbs until we can get it narrowed down because we know for certain they work.

I'm not sure what, if any, chain_id should be set for the Legion hence it being commented out and the TODO. However, it seems to be working without it for now.

Also not sure if I'm fully following all the proper conventions, but that can be cleaned up with feedback.

Unless the Yoga has the same vendor/dev ID's, this won't work there. I'll need to get those and add them to the patch. Same for newer Legion models.

Enjoy!