Skip to content

scripts: run find-best-profile hook before running apply-profile hook

stefanu21 requested to merge stefanu21/wireplumber:bugfix/next-set-profile into next

We have to run find-best-profile before running apply-profile. Without this it is possible that we set the default profile and not the best profile.

I 15:55:09.665907           s-device apply-profile.lua:29:chunk: <WpDevice:165:0x55fa5f235a40> No profile found to set on alsa_card.pci-0000_01_00.0
I 15:55:09.666455           s-device find-best-profile.lua:61:chunk: <WpDevice:165:0x55fa5f235a40> Found best profile 'output:stereo-fallback+input:stereo-fallback' (1) for device 'alsa_card.pci-0000_01_00.0'
I 15:55:09.666849           s-device select-routes.lua:96:chunk: <WpDevice:165:0x55fa5f235a40> restore routes for profile(pro-audio) of device(alsa_card.pci-0000_01_00.0)
I 15:55:09.667791           s-device state-routes.lua:121:chunk: <WpDevice:165:0x55fa5f235a40> No routes selected to set on alsa_card.pci-0000_01_00.0

Merge request reports