Although probably not exact the same problem, but my webcam showed after start of (e.g.) the camera program a fraction of a second a normal view, then it freezes with distortion lines. A lot of research was executed, drivers were updated and even linux (Ubuntu 20.xx) was tried. Nothing helped. I was at the point of just buying an external USB webcam but decided to try it once again.
Long story short: the bezel on top of the screen where the webcam sits is probably of sub-quality material. Press (very careful!!!) the bezel from the outsides to the camera. The distortion disappears and the camera is working again.
Other checks you could do:
- no yellow exclamation marks in the devices list
- up to date drivers from the lenovo website
- no blocking by firewall or antivirus software
-->Lenovo S340-15IWL type 81N8 laptop, running Windows 11, McAfee antivirus
Hope this helps someone, best,
Gertjan