Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TAS 2781 drivers to Kernel (no sound through speakers on Lenovo Legion 7i) #2992

Open
pmoolchand opened this issue Nov 6, 2023 · 4 comments

Comments

@pmoolchand
Copy link

pmoolchand commented Nov 6, 2023

Hello,

No sound is coming through speakers on Lenovo Legion 7i 16IRX8.
As per the discussion here, https://forums.lenovo.com/t5/Ubuntu/Ubuntu-and-legion-pro-7-16IRX8H-audio-issues/m-p/5210709?page=17#6119839, patches for the linux kernel have been developed, and available at https://neo-zeon.de/~hiryu/tas/

Could you please patch and integrate it in Clear Linux, kernel 6.5.9?

Firmware from the manufacturer, Texas Instruments, is available at https://www.ti.com/tool/download/TAS2781-LINUX/1.0.0

Thanks!

@fenrus75
Copy link
Contributor

fenrus75 commented Nov 7, 2023 via email

@pmoolchand
Copy link
Author

Hi,

"If a kernel module is available as part of the Linux kernel source tree but not enabled in the Clear Linux OS kernels, in many cases the Clear Linux OS team will enable it upon request. "

The patch is already available in the official linux kernel archives..
E.g. both https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.10.tar.xz and https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.tar.xz already have

'sound/pci/hda/patch_realtek.c'

Wouldn't that count as 'having made it into the upstream kernel'?

Thanks!

@fenrus75
Copy link
Contributor

fenrus75 commented Nov 8, 2023 via email

@pmoolchand pmoolchand changed the title Add TAS 2871 drivers to Kernel (no sound through speakers on Lenovo Legion 7i) Add TAS 2781 drivers to Kernel (no sound through speakers on Lenovo Legion 7i) Nov 8, 2023
@pmoolchand
Copy link
Author

I see. I do not have a working understanding of patching kernels.

I have run the script from Texas Instruments, that uses i2c tools. Relevant bus is 13.
https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1282089/tas2781-tas2781/4877653#4877653
Script at https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/8306.2pa_2D00_byps.sh
My understanding is that it forces the speakers to power on.
And I do get sound!

However, the procedure needs to be repeated at every boot.

Could you help with the config option?
What I understand is that the speakers are on the IC on bus 13, at addresses 0x38 and 0x3f.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants