Skip to content

Instantly share code, notes, and snippets.

@joske
Last active November 21, 2024 19:34
Show Gist options
  • Save joske/45386018b6b5cc04d0390dc96ce402af to your computer and use it in GitHub Desktop.
Save joske/45386018b6b5cc04d0390dc96ce402af to your computer and use it in GitHub Desktop.
Speakers on Yoga Slim 7x

Speakers on Yoga Slim 7x

DISCLAIMER: I'm not responsible for broken speakers! Use this at your own risk. It works on my system but that doesn't mean it will work on yours!

TPLG

  • clone this repo: https://github.com/linux-msm/audioreach-topology
  • cd into it
  • cmake .
  • cmake --build .
  • sudo cp qcom/x1e80100/X1E80100-LENOVO-Yoga-Slim7x-tplg.bin /lib/firmware/qcom/x1e80100/X1E80100-LENOVO-Yoga-Slim7x-tplg.bin
  • reboot
  • check there's no more error loading the tplg.bin file in dmesg

UCM

The digital volume in default ucm settings is set to 84, that is way too high, I set them to 5 check /usr/share/alsa/ucm2/codecs/qcom-lpass/wsa-macro/four-speakers/init.conf and /usr/share/alsa/ucm2/codecs/qcom-lpass/wsa-macro/init.conf

You should now see the speakers in GNOME (or whatever desktop you use). Note that it will sound very distorted. I have not yet been able to fix this. Somewhere there is too much gain applied, no idea why, I've set all values low. That said, if you set the volume in the app playing sound very low and turn up the speaker volume, it sounds quite nice.

If the speakers don't show up, try using sudo alsaucm reload, it may complain about some control that is not present on the machine.

Note: I've not tested the internal microphone yet.

@powpingdone
Copy link

Heads up, the TPLG main repo has the firmware now, so you can directly use https://github.com/linux-msm/audioreach-topology instead of the TPLG fork above.

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