Solved: Lenovo P15 Gen 2, no sound devices

I was having sound issues, and bumped into this thread about Lenovo Thinkpad sound issues

That thread offered the solution to set snd_hda_intel to use the ‘legacy driver’.
Basically via setting the driver param:

sudo modinfo snd_intel_dspcfg
parm:           dsp_driver:Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF, 4=AVS) (int)

I came across another solution, which may be more up-to-date:

dmesg |grep snd_
[   10.090693] [    T824] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver

So, my Lenovo Thinkpad is wanting to use SOF for the driver. After a bit of Googling, I found out that SOF needs some particular firmware. (Sorry, forgot to check dmesg |grep dsp for reference, before installing the firmware…)

sudo zypper in sof-firmware
reboot

And now I have sound devices on my Lenovo Thinkpad P15, without going for ‘legacy’.