All these posts about hardware issue.
I had the same problem. I read about people finding issues with Flashlight apps. So I uninstalled Tesla Flashlight and the camera works. If it's a hardware issue then why does the camera work without Tesla Flashlight and not work when that app is installed?