Unhappy [Q] AOSP Rom Camera Problem

Hi I'm in need of help!
I just received my HTC One after sending it for replacement of the camera module.
On stock sense rom, the camera works fine.
However i tried CM and Omni roms, both returned 'camera error - can't connect to camera'
3rd party camera apps not working, but gallery can be opened.
I've googled for hours and can't seem to find a solution.
Any advises are greatly appreciated. Thank You!